Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: ui/gfx/BUILD.gn

Issue 1228923002: Revert vector icon CLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge_aide_oobe_completion
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/config.gni") 9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 } 11 }
12 12
13 # Several targets want to include this header file, and some of them are 13 # Several targets want to include this header file, and some of them are
14 # child dependencies of "gfx". Therefore, we separate it out here so multiple 14 # child dependencies of "gfx". Therefore, we separate it out here so multiple
15 # targets can all have a dependency for header checking purposes without 15 # targets can all have a dependency for header checking purposes without
16 # creating circular dependencies. 16 # creating circular dependencies.
17 source_set("gfx_export") { 17 source_set("gfx_export") {
18 sources = [ 18 sources = [
19 "gfx_export.h", 19 "gfx_export.h",
20 ] 20 ]
21 } 21 }
22 22
23 vector_icons_cc_file = "$target_gen_dir/vector_icons.cc"
24 vector_icons_public_h_file = "$target_gen_dir/vector_icons_public.h"
25
26 component("gfx") { 23 component("gfx") {
27 sources = [ 24 sources = [
28 "android/device_display_info.cc", 25 "android/device_display_info.cc",
29 "android/device_display_info.h", 26 "android/device_display_info.h",
30 "android/gfx_jni_registrar.cc", 27 "android/gfx_jni_registrar.cc",
31 "android/gfx_jni_registrar.h", 28 "android/gfx_jni_registrar.h",
32 "android/java_bitmap.cc", 29 "android/java_bitmap.cc",
33 "android/java_bitmap.h", 30 "android/java_bitmap.h",
34 "android/shared_device_display_info.cc", 31 "android/shared_device_display_info.cc",
35 "android/shared_device_display_info.h", 32 "android/shared_device_display_info.h",
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 "//base:base_java", 314 "//base:base_java",
318 ] 315 ]
319 libs = [ 316 libs = [
320 "android", 317 "android",
321 "jnigraphics", 318 "jnigraphics",
322 ] 319 ]
323 } else { 320 } else {
324 sources -= [ "canvas_notimplemented.cc" ] 321 sources -= [ "canvas_notimplemented.cc" ]
325 } 322 }
326 323
327 # Desktop only.
328 if (use_aura || (!is_ios && !is_android)) {
329 sources += [
330 "paint_vector_icon.cc",
331 "paint_vector_icon.h",
332 "vector_icons.h",
333 vector_icons_cc_file,
334 vector_icons_public_h_file,
335 ]
336 deps += [ ":aggregate_vector_icons" ]
337 }
338
339 # Windows. 324 # Windows.
340 if (is_win) { 325 if (is_win) {
341 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), w hich is 326 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), w hich is
342 # uninteresting. 327 # uninteresting.
343 } else { 328 } else {
344 sources -= [ 329 sources -= [
345 "gdi_util.cc", 330 "gdi_util.cc",
346 "gdi_util.h", 331 "gdi_util.h",
347 "icon_util.cc", 332 "icon_util.cc",
348 "icon_util.h", 333 "icon_util.h",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 configs += [ "//build/config/linux:x11" ] 366 configs += [ "//build/config/linux:x11" ]
382 } else { 367 } else {
383 sources -= [ "path_x11.cc" ] 368 sources -= [ "path_x11.cc" ]
384 } 369 }
385 370
386 if (use_cairo) { 371 if (use_cairo) {
387 configs += [ "//build/config/linux:pangocairo" ] 372 configs += [ "//build/config/linux:pangocairo" ]
388 } 373 }
389 } 374 }
390 375
391 # GYP version: ui/gfx/gfx.gyp:aggregate_vector_icons
392 action("aggregate_vector_icons") {
393 script = "vector_icons/aggregate_vector_icons.py"
394 sources = [
395 "vector_icons",
396 ]
397 outputs = [
398 vector_icons_cc_file,
399 vector_icons_public_h_file,
400 ]
401
402 args = [
403 "--working_directory=" + rebase_path("vector_icons/"),
404 "--output_cc=" + rebase_path(vector_icons_cc_file, root_build_dir),
405 "--output_h=" + rebase_path(vector_icons_public_h_file, root_build_dir),
406 ]
407 }
408
409 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry 376 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry
410 377
411 source_set("test_support") { 378 source_set("test_support") {
412 testonly = true 379 testonly = true
413 sources = [ 380 sources = [
414 "image/image_unittest_util.cc", 381 "image/image_unittest_util.cc",
415 "image/image_unittest_util.h", 382 "image/image_unittest_util.h",
416 "image/image_unittest_util_ios.mm", 383 "image/image_unittest_util_ios.mm",
417 "image/image_unittest_util_mac.mm", 384 "image/image_unittest_util_mac.mm",
418 "test/fontconfig_util_linux.cc", 385 "test/fontconfig_util_linux.cc",
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 if (is_android) { 552 if (is_android) {
586 generate_jni("gfx_jni_headers") { 553 generate_jni("gfx_jni_headers") {
587 sources = [ 554 sources = [
588 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 555 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
589 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 556 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
590 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 557 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
591 ] 558 ]
592 jni_package = "gfx" 559 jni_package = "gfx"
593 } 560 }
594 } 561 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698