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

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

Issue 2286323004: Remove vector_icons.gypi (Closed)
Patch Set: Missing includes Created 4 years, 3 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 | « ash/common/wm/overview/window_selector_item.cc ('k') | ui/gfx/paint_vector_icon.cc » ('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 import("//testing/libfuzzer/fuzzer_test.gni") 7 import("//testing/libfuzzer/fuzzer_test.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni") 11 import("//build/config/android/rules.gni")
12 } 12 }
13 13
14 # Several targets want to include this header file, and some of them are 14 # Several targets want to include this header file, and some of them are
15 # child dependencies of "gfx". Therefore, we separate it out here so multiple 15 # child dependencies of "gfx". Therefore, we separate it out here so multiple
16 # targets can all have a dependency for header checking purposes without 16 # targets can all have a dependency for header checking purposes without
17 # creating circular dependencies. 17 # creating circular dependencies.
18 source_set("gfx_export") { 18 source_set("gfx_export") {
19 sources = [ 19 sources = [
20 "gfx_export.h", 20 "gfx_export.h",
21 ] 21 ]
22 } 22 }
23 23
24 vector_icons_sources_gypi =
25 exec_script("//build/gypi_to_gn.py",
26 [ rebase_path("vector_icons_sources.gypi") ],
27 "scope",
28 [ "vector_icons_sources.gypi" ])
29
30 vector_icons_cc_file = "$target_gen_dir/vector_icons.cc"
31 vector_icons_h_file = "$target_gen_dir/vector_icons.h"
32
33 component("gfx") { 24 component("gfx") {
34 sources = [ 25 sources = [
35 "android/device_display_info.cc", 26 "android/device_display_info.cc",
36 "android/device_display_info.h", 27 "android/device_display_info.h",
37 "android/gfx_jni_registrar.cc", 28 "android/gfx_jni_registrar.cc",
38 "android/gfx_jni_registrar.h", 29 "android/gfx_jni_registrar.h",
39 "android/java_bitmap.cc", 30 "android/java_bitmap.cc",
40 "android/java_bitmap.h", 31 "android/java_bitmap.h",
41 "android/shared_device_display_info.cc", 32 "android/shared_device_display_info.cc",
42 "android/shared_device_display_info.h", 33 "android/shared_device_display_info.h",
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 sources -= [ "canvas_notimplemented.cc" ] 333 sources -= [ "canvas_notimplemented.cc" ]
343 } 334 }
344 335
345 # Desktop only. 336 # Desktop only.
346 if (use_aura || (!is_ios && !is_android)) { 337 if (use_aura || (!is_ios && !is_android)) {
347 sources += [ 338 sources += [
348 "paint_vector_icon.cc", 339 "paint_vector_icon.cc",
349 "paint_vector_icon.h", 340 "paint_vector_icon.h",
350 "vector_icon_types.h", 341 "vector_icon_types.h",
351 "vector_icons_public.h", 342 "vector_icons_public.h",
352 vector_icons_cc_file,
353 vector_icons_h_file,
354 ] 343 ]
355 deps += [ ":aggregate_vector_icons" ] 344 deps += [ "//ui/gfx/vector_icons" ]
356 } 345 }
357 346
358 # Windows. 347 # Windows.
359 if (is_win) { 348 if (is_win) {
360 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), w hich is 349 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), w hich is
361 # uninteresting. 350 # uninteresting.
362 351
363 libs = [ 352 libs = [
364 "setupapi.lib", 353 "setupapi.lib",
365 "dwrite.lib", 354 "dwrite.lib",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 configs += [ "//build/config/linux:x11" ] 403 configs += [ "//build/config/linux:x11" ]
415 } else { 404 } else {
416 sources -= [ "path_x11.cc" ] 405 sources -= [ "path_x11.cc" ]
417 } 406 }
418 407
419 if (use_cairo) { 408 if (use_cairo) {
420 configs += [ "//build/config/linux/pangocairo" ] 409 configs += [ "//build/config/linux/pangocairo" ]
421 } 410 }
422 } 411 }
423 412
424 # GYP version: ui/gfx/gfx.gyp:aggregate_vector_icons
425 action("aggregate_vector_icons") {
426 script = "vector_icons/aggregate_vector_icons.py"
427
428 inputs = vector_icons_sources_gypi.common
429
430 outputs = [
431 vector_icons_cc_file,
432 vector_icons_h_file,
433 ]
434
435 response_file_contents = rebase_path(inputs, root_build_dir)
436
437 args = [
438 "--working_directory=" + rebase_path("vector_icons/"),
439 "--file_list={{response_file_name}}",
440 "--output_cc=" + rebase_path(vector_icons_cc_file, root_build_dir),
441 "--output_h=" + rebase_path(vector_icons_h_file, root_build_dir),
442 ]
443 }
444
445 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry
446
447 # Depend on this to use native_widget_types.h without pulling in all of gfx. 413 # Depend on this to use native_widget_types.h without pulling in all of gfx.
448 source_set("native_widget_types") { 414 source_set("native_widget_types") {
449 public = [ 415 public = [
450 "native_widget_types.h", 416 "native_widget_types.h",
451 ] 417 ]
452 418
453 public_deps = [ 419 public_deps = [
454 "//base", 420 "//base",
455 ] 421 ]
456 } 422 }
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 713
748 fuzzer_test("color_transform_fuzztest") { 714 fuzzer_test("color_transform_fuzztest") {
749 sources = [ 715 sources = [
750 "color_transform_fuzzer.cc", 716 "color_transform_fuzzer.cc",
751 ] 717 ]
752 deps = [ 718 deps = [
753 ":gfx", 719 ":gfx",
754 ] 720 ]
755 libfuzzer_options = [ "max_len=1024" ] 721 libfuzzer_options = [ "max_len=1024" ]
756 } 722 }
OLDNEW
« no previous file with comments | « ash/common/wm/overview/window_selector_item.cc ('k') | ui/gfx/paint_vector_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698