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 | 7 |
8 gypi_values = exec_script( | 8 gypi_values = exec_script( |
9 "//build/gypi_to_gn.py", | 9 "//build/gypi_to_gn.py", |
10 [ rebase_path("ash.gyp") ], | 10 [ rebase_path("ash.gyp") ], |
11 "scope", | 11 "scope", |
12 [ "ash.gyp" ]) | 12 [ "ash.gyp" ]) |
13 | 13 |
14 component("ash") { | 14 component("ash") { |
15 sources = gypi_values.ash_sources | 15 sources = gypi_values.ash_sources |
16 | 16 |
17 defines = [ "ASH_IMPLEMENTATION" ] | 17 defines = [ "ASH_IMPLEMENTATION" ] |
18 | 18 |
19 deps = [ | 19 deps = [ |
20 "//ash/resources", | 20 "//ash/resources", |
21 "//ash/strings", | 21 "//ash/strings", |
22 "//base", | 22 "//base", |
23 "//base:i18n", | 23 "//base:i18n", |
24 "//base/third_party/dynamic_annotations", | 24 "//base/third_party/dynamic_annotations", |
25 "//cc", | 25 "//cc", |
| 26 "//components/user_manager", |
26 "//content/public/browser", | 27 "//content/public/browser", |
27 "//media", | 28 "//media", |
28 "//net", | 29 "//net", |
29 "//skia", | 30 "//skia", |
30 "//third_party/icu", | 31 "//third_party/icu", |
31 "//ui/accessibility", | 32 "//ui/accessibility", |
32 "//ui/app_list", | 33 "//ui/app_list", |
33 "//ui/aura", | 34 "//ui/aura", |
34 "//ui/base", | 35 "//ui/base", |
35 "//ui/compositor", | 36 "//ui/compositor", |
36 "//ui/events", | 37 "//ui/events", |
37 "//ui/events:events_base", | 38 "//ui/events:events_base", |
38 "//ui/gfx", | 39 "//ui/gfx", |
39 "//ui/gfx/geometry", | 40 "//ui/gfx/geometry", |
40 "//ui/keyboard", | 41 "//ui/keyboard", |
41 "//ui/message_center", | 42 "//ui/message_center", |
42 "//ui/resources", | 43 "//ui/resources", |
43 "//ui/strings", | 44 "//ui/strings", |
44 "//ui/views", | 45 "//ui/views", |
45 "//ui/views/controls/webview", | 46 "//ui/views/controls/webview", |
46 "//ui/web_dialogs", | 47 "//ui/web_dialogs", |
47 "//ui/wm", | 48 "//ui/wm", |
48 "//url", | 49 "//url", |
49 #'../components/components.gyp:user_manager', TODO(GYP) | |
50 ] | 50 ] |
51 | 51 |
52 forward_dependent_configs_from = [ | 52 forward_dependent_configs_from = [ |
53 "//ash/resources", | 53 "//ash/resources", |
54 "//ash/strings", | 54 "//ash/strings", |
55 ] | 55 ] |
56 | 56 |
57 if (is_win) { | 57 if (is_win) { |
58 sources -= [ | 58 sources -= [ |
59 "sticky_keys/sticky_keys_controller.cc", | 59 "sticky_keys/sticky_keys_controller.cc", |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 "//ipc", | 145 "//ipc", |
146 "//skia", | 146 "//skia", |
147 "//ui/aura", | 147 "//ui/aura", |
148 "//ui/base", | 148 "//ui/base", |
149 "//ui/compositor", | 149 "//ui/compositor", |
150 "//ui/events", | 150 "//ui/events", |
151 "//ui/gfx", | 151 "//ui/gfx", |
152 "//ui/gfx/geometry", | 152 "//ui/gfx/geometry", |
153 "//ui/resources", | 153 "//ui/resources", |
154 "//ui/strings", | 154 "//ui/strings", |
| 155 "//ui/views", |
| 156 "//ui/views/controls/webview", |
155 "//ui/web_dialogs", | 157 "//ui/web_dialogs", |
156 "//url", | 158 "//url", |
157 #'../ui/views/controls/webview/webview.gyp:webview', TODO(GYP) | |
158 #'../ui/views/views.gyp:views', TODO(GYP) | |
159 ] | 159 ] |
160 | 160 |
161 forward_dependent_configs_from = [ | 161 forward_dependent_configs_from = [ |
162 ":ash", | 162 ":ash", |
163 ] | 163 ] |
164 } | 164 } |
165 | 165 |
166 static_library("test_support") { | 166 static_library("test_support") { |
167 sources = gypi_values.ash_test_support_sources | 167 sources = gypi_values.ash_test_support_sources |
168 | 168 |
(...skipping 28 matching lines...) Expand all Loading... |
197 deps = [ | 197 deps = [ |
198 ":ash", | 198 ":ash", |
199 ":ash_with_content", | 199 ":ash_with_content", |
200 ":test_support", | 200 ":test_support", |
201 "//ash/resources", | 201 "//ash/resources", |
202 "//ash/strings", | 202 "//ash/strings", |
203 "//base", | 203 "//base", |
204 "//base:i18n", | 204 "//base:i18n", |
205 #"//chrome:packed_resources", TODO(GYP) | 205 #"//chrome:packed_resources", TODO(GYP) |
206 "//content", | 206 "//content", |
| 207 "//content/shell:content_shell_lib", |
207 "//skia", | 208 "//skia", |
208 "//third_party/icu", | 209 "//third_party/icu", |
209 "//ui/app_list", | 210 "//ui/app_list", |
210 "//ui/aura", | 211 "//ui/aura", |
211 "//ui/base", | 212 "//ui/base", |
212 "//ui/compositor", | 213 "//ui/compositor", |
213 "//ui/events", | 214 "//ui/events", |
214 "//ui/gfx", | 215 "//ui/gfx", |
215 "//ui/gfx/geometry", | 216 "//ui/gfx/geometry", |
216 "//ui/keyboard", | 217 "//ui/keyboard", |
217 "//ui/message_center", | 218 "//ui/message_center", |
218 "//ui/resources", | 219 "//ui/resources", |
219 "//ui/views", | 220 "//ui/views", |
220 "//ui/views:test_support", | 221 "//ui/views:test_support", |
221 #'../content/content_shell_and_tests.gyp:content_shell_lib', TODO(GYP) | |
222 #'../ui/views/examples/examples.gyp:views_examples_lib', TODO(GYP) | 222 #'../ui/views/examples/examples.gyp:views_examples_lib', TODO(GYP) |
223 #'../ui/views/examples/examples.gyp:views_examples_with_content_lib', TODO(
GYP) | 223 #'../ui/views/examples/examples.gyp:views_examples_with_content_lib', TODO(
GYP) |
224 ] | 224 ] |
225 } | 225 } |
226 | 226 |
227 if (false) { # TODO(GYP) enable ash shell and unit tests when they link. | 227 if (false) { # TODO(GYP) enable ash shell and unit tests when they link. |
228 | 228 |
229 test("ash_unittests") { | 229 test("ash_unittests") { |
230 sources = gypi_values.ash_unittests_sources | 230 sources = gypi_values.ash_unittests_sources |
231 | 231 |
232 deps = [ | 232 deps = [ |
233 ":ash", | 233 ":ash", |
234 ":ash_with_content", | 234 ":ash_with_content", |
235 ":test_support", | 235 ":test_support", |
236 "//ash/resources", | 236 "//ash/resources", |
237 "//ash/strings", | 237 "//ash/strings", |
238 "//base", | 238 "//base", |
239 "//base/allocator", | 239 "//base/allocator", |
240 "//base/test:test_support", | 240 "//base/test:test_support", |
| 241 "//components/user_manager", |
241 "//content/public/browser", | 242 "//content/public/browser", |
| 243 "//content/test:test_support", |
242 "//skia", | 244 "//skia", |
243 "//testing/gtest", | 245 "//testing/gtest", |
244 "//third_party/icu", | 246 "//third_party/icu", |
245 "//ui/accessibility", | 247 "//ui/accessibility", |
246 "//ui/aura", | 248 "//ui/aura", |
247 "//ui/aura:test_support", | 249 "//ui/aura:test_support", |
248 "//ui/base", | 250 "//ui/base", |
249 "//ui/base:test_support", | 251 "//ui/base:test_support", |
250 "//ui/compositor", | 252 "//ui/compositor", |
251 "//ui/compositor:test_support", | 253 "//ui/compositor:test_support", |
252 "//ui/events", | 254 "//ui/events", |
253 "//ui/events:test_support", | 255 "//ui/events:test_support", |
254 "//ui/events:gesture_detection", | 256 "//ui/events:gesture_detection", |
255 "//ui/gfx", | 257 "//ui/gfx", |
256 "//ui/gfx/geometry", | 258 "//ui/gfx/geometry", |
257 "//ui/keyboard", | 259 "//ui/keyboard", |
258 "//ui/message_center", | 260 "//ui/message_center", |
259 "//ui/message_center:test_support", | 261 "//ui/message_center:test_support", |
260 "//ui/resources", | 262 "//ui/resources", |
261 "//ui/views", | 263 "//ui/views", |
262 "//ui/views:test_support", | 264 "//ui/views:test_support", |
263 "//ui/views/controls/webview:test_support", | 265 "//ui/views/controls/webview:test_support", |
264 "//ui/web_dialogs", | 266 "//ui/web_dialogs", |
265 "//ui/wm", | 267 "//ui/wm", |
266 "//url", | 268 "//url", |
267 #'../components/components.gyp:user_manager', TODO(GYP) | |
268 #'../content/content_shell_and_tests.gyp:test_support_content', TODO(GYP) | |
269 ] | 269 ] |
270 | 270 |
271 if (!is_chromeos) { | 271 if (!is_chromeos) { |
272 sources -= [ | 272 sources -= [ |
273 # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906 | 273 # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906 |
274 "focus_cycler_unittest.cc", | 274 "focus_cycler_unittest.cc", |
275 # All tests for multiple displays: not supported on Windows Ash. | 275 # All tests for multiple displays: not supported on Windows Ash. |
276 "accelerators/nested_dispatcher_controller_unittest.cc", | 276 "accelerators/nested_dispatcher_controller_unittest.cc", |
277 "wm/drag_window_resizer_unittest.cc", | 277 "wm/drag_window_resizer_unittest.cc", |
278 # Can't resize on Windows Ash. http://crbug.com/165962 | 278 # Can't resize on Windows Ash. http://crbug.com/165962 |
279 "ash_root_window_transformer_unittest.cc", | 279 "ash_root_window_transformer_unittest.cc", |
280 "magnifier/magnification_controller_unittest.cc", | 280 "magnifier/magnification_controller_unittest.cc", |
281 "wm/workspace/workspace_window_resizer_unittest.cc", | 281 "wm/workspace/workspace_window_resizer_unittest.cc", |
282 "sticky_keys/sticky_keys_overlay_unittest.cc", | 282 "sticky_keys/sticky_keys_overlay_unittest.cc", |
283 "sticky_keys/sticky_keys_unittest.cc", | 283 "sticky_keys/sticky_keys_unittest.cc", |
284 "system/tray/media_security/multi_profile_media_tray_item_unittest.cc", | 284 "system/tray/media_security/multi_profile_media_tray_item_unittest.cc", |
285 "autoclick/autoclick_unittest.cc", | 285 "autoclick/autoclick_unittest.cc", |
286 ] | 286 ] |
287 source += [ | 287 sources += [ |
288 #'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', TODO
(GYP) | 288 #'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', TODO
(GYP) |
289 ] | 289 ] |
290 } | 290 } |
291 | 291 |
292 if (is_win) { | 292 if (is_win) { |
293 cflags = [ "/wd4267" ] | 293 cflags = [ "/wd4267" ] |
294 } | 294 } |
295 | 295 |
296 if (!use_x11) { | 296 if (!use_x11) { |
297 sources -= [ | 297 sources -= [ |
(...skipping 30 matching lines...) Expand all Loading... |
328 } | 328 } |
329 } | 329 } |
330 | 330 |
331 executable("ash_shell") { | 331 executable("ash_shell") { |
332 sources = [ | 332 sources = [ |
333 "shell/shell_main.cc", | 333 "shell/shell_main.cc", |
334 ] | 334 ] |
335 | 335 |
336 deps = [ | 336 deps = [ |
337 ":ash_shell_lib", | 337 ":ash_shell_lib", |
338 #'../components/components.gyp:user_manager', TODO(GYP) | 338 "//components/user_manager", |
339 ] | 339 ] |
340 | 340 |
341 if (is_win) { | 341 if (is_win) { |
342 configs -= [ "//build/config/win:console" ] | 342 configs -= [ "//build/config/win:console" ] |
343 configs += [ "//build/config/win:windowed" ] | 343 configs += [ "//build/config/win:windowed" ] |
344 deps += [ | 344 deps += [ |
345 "//sandbox", | 345 "//sandbox", |
346 ] | 346 ] |
347 } | 347 } |
348 | 348 |
349 if (is_chromeos) { | 349 if (is_chromeos) { |
350 deps += [ | 350 deps += [ |
351 "../device/bluetooth/bluetooth.gyp:device_bluetooth", | 351 "../device/bluetooth/bluetooth.gyp:device_bluetooth", |
352 ] | 352 ] |
353 } | 353 } |
354 } | 354 } |
355 | 355 |
356 test("ash_shell_unittests") { | 356 test("ash_shell_unittests") { |
357 sources = [ | 357 sources = [ |
358 "shell/window_watcher_unittest.cc", | 358 "shell/window_watcher_unittest.cc", |
359 "test/ash_unittests.cc", | 359 "test/ash_unittests.cc", |
360 ] | 360 ] |
361 | 361 |
362 deps = [ | 362 deps = [ |
363 "//base/test:test_support", | 363 "//base/test:test_support", |
| 364 "//components/user_manager", |
| 365 "//content/test:test_support", |
364 "//skia", | 366 "//skia", |
365 "//testing/gtest", | 367 "//testing/gtest", |
366 "//ui/aaccessibility", | 368 "//ui/aaccessibility", |
367 #'../components/components.gyp:user_manager', TODO(GYP) | |
368 #'../content/content_shell_and_tests.gyp:test_support_content', TODO(GYP) | |
369 ] | 369 ] |
370 | 370 |
371 if (is_chromeos) { | 371 if (is_chromeos) { |
372 deps += [ "//ui/display" ] | 372 deps += [ "//ui/display" ] |
373 } | 373 } |
374 } | 374 } |
375 | 375 |
376 } # if false | 376 } # if false |
OLD | NEW |