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") { |
| 15 defines = [ "TOOLKIT_VIEWS=1" ] |
| 16 } |
| 17 |
14 component("views") { | 18 component("views") { |
| 19 all_dependent_configs = [ ":flags" ] |
15 sources = gypi_values.views_sources | 20 sources = gypi_values.views_sources |
16 | 21 |
17 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 22 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 23 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
19 | 24 |
20 defines = [ "VIEWS_IMPLEMENTATION" ] | 25 defines = [ "VIEWS_IMPLEMENTATION" ] |
21 | 26 |
22 deps = [ | 27 deps = [ |
23 "//base:i18n", | 28 "//base:i18n", |
24 "//base/third_party/dynamic_annotations", | 29 "//base/third_party/dynamic_annotations", |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 "//skia", | 292 "//skia", |
288 "//testing/gtest", | 293 "//testing/gtest", |
289 "//ui/base:test_support", | 294 "//ui/base:test_support", |
290 "//ui/compositor", | 295 "//ui/compositor", |
291 "//ui/resources", | 296 "//ui/resources", |
292 "//ui/resources:ui_test_pak", | 297 "//ui/resources:ui_test_pak", |
293 "//ui/strings", | 298 "//ui/strings", |
294 ] | 299 ] |
295 } | 300 } |
296 } | 301 } |
OLD | NEW |