OLD | NEW |
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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
10 [ rebase_path("views.gyp") ], | 10 [ rebase_path("views.gyp") ], |
11 "scope", | 11 "scope", |
12 [ "views.gyp" ]) | 12 [ "views.gyp" ]) |
13 | 13 |
14 config("flags") { | 14 config("flags") { |
15 defines = [ "TOOLKIT_VIEWS=1" ] | 15 defines = [ "TOOLKIT_VIEWS=1" ] |
16 } | 16 } |
17 | 17 |
18 component("views") { | 18 component("views") { |
19 all_dependent_configs = [ ":flags" ] | 19 all_dependent_configs = [ ":flags" ] |
20 sources = gypi_values.views_sources | 20 sources = gypi_values.views_sources |
21 | 21 |
22 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 22 configs += [ |
23 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 23 "//build/config:precompiled_headers", |
| 24 |
| 25 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 26 "//build/config/compiler:no_size_t_to_int_warning", |
| 27 ] |
24 | 28 |
25 defines = [ "VIEWS_IMPLEMENTATION" ] | 29 defines = [ "VIEWS_IMPLEMENTATION" ] |
26 | 30 |
27 deps = [ | 31 deps = [ |
28 "//base:i18n", | 32 "//base:i18n", |
29 "//base/third_party/dynamic_annotations", | 33 "//base/third_party/dynamic_annotations", |
30 "//skia", | 34 "//skia", |
31 "//third_party/icu", | 35 "//third_party/icu", |
32 "//ui/accessibility", | 36 "//ui/accessibility", |
33 "//ui/native_theme", | 37 "//ui/native_theme", |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 # Required by bridged_native_widget.mm. | 135 # Required by bridged_native_widget.mm. |
132 "QuartzCore.framework", | 136 "QuartzCore.framework", |
133 ] | 137 ] |
134 } | 138 } |
135 } | 139 } |
136 | 140 |
137 static_library("test_support") { | 141 static_library("test_support") { |
138 testonly = true | 142 testonly = true |
139 sources = gypi_values.views_test_support_sources | 143 sources = gypi_values.views_test_support_sources |
140 | 144 |
| 145 configs += [ "//build/config:precompiled_headers" ] |
| 146 |
141 public_deps = [ | 147 public_deps = [ |
142 ":views", | 148 ":views", |
143 ] | 149 ] |
144 deps = [ | 150 deps = [ |
145 "//base", | 151 "//base", |
146 "//ipc:test_support", | 152 "//ipc:test_support", |
147 "//skia", | 153 "//skia", |
148 "//testing/gtest", | 154 "//testing/gtest", |
149 "//ui/base", | 155 "//ui/base", |
150 "//ui/base/ime", | 156 "//ui/base/ime", |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 "//skia", | 295 "//skia", |
290 "//testing/gtest", | 296 "//testing/gtest", |
291 "//ui/base:test_support", | 297 "//ui/base:test_support", |
292 "//ui/compositor", | 298 "//ui/compositor", |
293 "//ui/resources", | 299 "//ui/resources", |
294 "//ui/resources:ui_test_pak", | 300 "//ui/resources:ui_test_pak", |
295 "//ui/strings", | 301 "//ui/strings", |
296 ] | 302 ] |
297 } | 303 } |
298 } | 304 } |
OLD | NEW |