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