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