Chromium Code Reviews| Index: ui/gfx/BUILD.gn |
| diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn |
| index 89bcfbe020b448e37547770102e11fd84669799c..3e8949d83c289b7cdeed83e57f9f766dc1987974 100644 |
| --- a/ui/gfx/BUILD.gn |
| +++ b/ui/gfx/BUILD.gn |
| @@ -163,8 +163,6 @@ component("gfx") { |
| "shadow_value.h", |
| "skbitmap_operations.cc", |
| "skbitmap_operations.h", |
| - "switches.cc", |
| - "switches.h", |
| "sys_color_change_listener.cc", |
| "sys_color_change_listener.h", |
| "text_constants.h", |
| @@ -241,6 +239,7 @@ component("gfx") { |
| ":memory_buffer_sources", |
| ":native_widget_types", |
| ":selection_bound_sources", |
| + ":switches_sources", |
| "//base", |
| "//skia", |
| "//third_party/icu", |
| @@ -529,6 +528,7 @@ source_set("memory_buffer_sources") { |
| deps = [ |
| ":native_widget_types", |
| + ":switches_sources", |
| "//base", |
| "//ui/gfx/geometry", |
| ] |
| @@ -545,6 +545,22 @@ source_set("memory_buffer_sources") { |
| } |
| } |
| +source_set("switches_sources") { |
| + visibility = [ ":*" ] # Depend on through ":switches_sources". |
| + |
| + sources = [ |
| + "switches.cc", |
| + "switches.h", |
|
Nico
2017/05/09 21:41:11
These aren't generated or anything -- is the motiv
ccameron
2017/05/10 10:19:31
I don't think so.
The motivation was because
- I
|
| + ] |
| + |
| + defines = [ "GFX_IMPLEMENTATION" ] |
| + |
| + deps = [ |
| + ":gfx_export", |
| + "//base", |
| + ] |
| +} |
| + |
| static_library("test_support") { |
| testonly = true |
| sources = [ |