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") ], |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 if (is_linux) { | 126 if (is_linux) { |
127 sources += gypi_values.views_desktop_aura_linux_sources | 127 sources += gypi_values.views_desktop_aura_linux_sources |
128 } | 128 } |
129 } | 129 } |
130 if (is_android) { | 130 if (is_android) { |
131 sources += gypi_values.views_android_sources | 131 sources += gypi_values.views_android_sources |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 if (is_mac) { | 135 if (is_mac) { |
136 deps += [ "//ui/accelerated_widget_mac" ] | 136 deps += [ |
| 137 "//ui/accelerated_widget_mac", |
| 138 "//ui/events:dom_keycode_converter", |
| 139 ] |
137 libs = [ | 140 libs = [ |
138 # Required by bridged_native_widget.mm. | 141 # Required by bridged_native_widget.mm. |
139 "QuartzCore.framework", | 142 "QuartzCore.framework", |
140 ] | 143 ] |
141 } | 144 } |
142 } | 145 } |
143 | 146 |
144 static_library("test_support") { | 147 static_library("test_support") { |
145 testonly = true | 148 testonly = true |
146 sources = gypi_values.views_test_support_sources | 149 sources = gypi_values.views_test_support_sources |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 191 |
189 test("views_unittests") { | 192 test("views_unittests") { |
190 sources = gypi_values.views_unittests_sources | 193 sources = gypi_values.views_unittests_sources |
191 | 194 |
192 deps = [ | 195 deps = [ |
193 ":test_support", | 196 ":test_support", |
194 "//base", | 197 "//base", |
195 "//base:i18n", | 198 "//base:i18n", |
196 "//base/allocator", | 199 "//base/allocator", |
197 "//base/test:test_support", | 200 "//base/test:test_support", |
| 201 "//cc", |
198 "//skia", | 202 "//skia", |
199 "//testing/gtest", | 203 "//testing/gtest", |
200 "//third_party/icu", | 204 "//third_party/icu", |
201 "//ui/accessibility", | 205 "//ui/accessibility", |
202 "//ui/base", | 206 "//ui/base", |
203 "//ui/base:test_support", | 207 "//ui/base:test_support", |
204 "//ui/base/ime", | 208 "//ui/base/ime", |
205 "//ui/compositor:test_support", | 209 "//ui/compositor:test_support", |
| 210 "//ui/events:dom_keycode_converter", |
206 "//ui/events:events_base", | 211 "//ui/events:events_base", |
207 "//ui/events:test_support", | 212 "//ui/events:test_support", |
208 "//ui/events/platform", | 213 "//ui/events/platform", |
209 "//ui/gfx", | 214 "//ui/gfx:test_support", |
210 "//ui/gfx/geometry", | 215 "//ui/gfx/geometry", |
211 "//ui/gl", | 216 "//ui/gl:test_support", |
212 "//ui/resources", | 217 "//ui/resources", |
213 "//ui/strings", | 218 "//ui/strings", |
214 "//url", | 219 "//url", |
215 ] | 220 ] |
216 | 221 |
217 data_deps = [ | 222 data_deps = [ |
218 "//ui/resources:ui_test_pak", | 223 "//ui/resources:ui_test_pak", |
219 ] | 224 ] |
220 | 225 |
221 if (is_win) { | 226 if (is_win) { |
222 deps += [ | 227 deps += [ |
| 228 "//build/win:default_exe_manifest", |
223 "//third_party/iaccessible2", | 229 "//third_party/iaccessible2", |
224 "//third_party/wtl", | 230 "//third_party/wtl", |
225 ] | 231 ] |
226 libs = [ | 232 libs = [ |
227 "imm32.lib", | 233 "imm32.lib", |
228 "oleacc.lib", | 234 "oleacc.lib", |
229 "comctl32.lib", | 235 "comctl32.lib", |
230 ] | 236 ] |
231 | |
232 # TOOD(GYP) | |
233 #'msvs_settings': { | |
234 # 'VCManifestTool': { | |
235 # 'AdditionalManifestFiles': [ | |
236 # '$(ProjectDir)\\test\\views_unittest.manifest', | |
237 # ], | |
238 # }, | |
239 #}, | |
240 } | 237 } |
241 | 238 |
242 if (use_x11) { | 239 if (use_x11) { |
243 configs += [ | 240 configs += [ |
244 "//build/config/linux:x11", | 241 "//build/config/linux:x11", |
245 "//build/config/linux:xext", | 242 "//build/config/linux:xext", |
246 ] | 243 ] |
247 deps += [ | 244 deps += [ |
248 "//ui/events/devices", | 245 "//ui/events/devices", |
249 "//ui/events/platform/x11", | 246 "//ui/events/platform/x11", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 ] | 293 ] |
297 deps = [ | 294 deps = [ |
298 ":test_support", | 295 ":test_support", |
299 ":views", | 296 ":views", |
300 "//base", | 297 "//base", |
301 "//base/test:test_support", | 298 "//base/test:test_support", |
302 "//skia", | 299 "//skia", |
303 "//testing/gtest", | 300 "//testing/gtest", |
304 "//ui/base:test_support", | 301 "//ui/base:test_support", |
305 "//ui/compositor", | 302 "//ui/compositor", |
| 303 "//ui/events:test_support", |
| 304 "//ui/gl:test_support", |
306 "//ui/resources", | 305 "//ui/resources", |
307 "//ui/resources:ui_test_pak", | 306 "//ui/resources:ui_test_pak", |
308 "//ui/strings", | 307 "//ui/strings", |
309 ] | 308 ] |
310 } | 309 } |
311 } | 310 } |
OLD | NEW |