1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
14 'type': '<(component)',
16 'ash_strings.gyp:ash_strings',
17 '../base/base.gyp:base',
18 '../base/base.gyp:base_i18n',
19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
20 '../build/temp_gyp/googleurl.gyp:googleurl',
21 '../content/content.gyp:content',
22 '../content/content.gyp:content_browser',
25 '../skia/skia.gyp:skia',
26 '../third_party/icu/icu.gyp:icui18n',
27 '../third_party/icu/icu.gyp:icuuc',
28 '../ui/app_list/app_list.gyp:app_list',
29 '../ui/aura/aura.gyp:aura',
30 '../ui/base/strings/ui_strings.gyp:ui_strings',
31 '../ui/compositor/compositor.gyp:compositor',
32 '../ui/oak/oak.gyp:oak',
34 '../ui/ui.gyp:ui_resources',
35 '../ui/views/views.gyp:views',
41 # All .cc, .h under ash, except unittests
42 'accelerators/accelerator_controller.cc',
43 'accelerators/accelerator_controller.h',
44 'accelerators/accelerator_dispatcher.cc',
45 'accelerators/accelerator_dispatcher.h',
46 'accelerators/accelerator_filter.cc',
47 'accelerators/accelerator_filter.h',
48 'accelerators/accelerator_table.cc',
49 'accelerators/accelerator_table.h',
50 'accelerators/focus_manager_factory.cc',
51 'accelerators/focus_manager_factory.h',
52 'accelerators/nested_dispatcher_controller.cc',
53 'accelerators/nested_dispatcher_controller.h',
56 'caps_lock_delegate.h',
57 'desktop_background/desktop_background_controller.cc',
58 'desktop_background/desktop_background_controller.h',
59 'desktop_background/desktop_background_resources.cc',
60 'desktop_background/desktop_background_resources.h',
61 'desktop_background/desktop_background_view.cc',
62 'desktop_background/desktop_background_view.h',
63 'drag_drop/drag_drop_controller.cc',
64 'drag_drop/drag_drop_controller.h',
65 'drag_drop/drag_image_view.cc',
66 'drag_drop/drag_image_view.h',
67 'event_rewriter_delegate.h',
70 'high_contrast/high_contrast_controller.cc',
71 'high_contrast/high_contrast_controller.h',
72 'launcher/app_list_button.cc',
73 'launcher/app_list_button.h',
74 'launcher/background_animator.cc',
75 'launcher/background_animator.h',
76 'launcher/launcher.cc',
77 'launcher/launcher.h',
78 'launcher/launcher_alignment_menu.cc',
79 'launcher/launcher_alignment_menu.h',
80 'launcher/launcher_button.cc',
81 'launcher/launcher_button.h',
82 'launcher/launcher_context_menu.cc',
83 'launcher/launcher_context_menu.h',
84 'launcher/launcher_delegate.h',
85 'launcher/launcher_icon_observer.h',
86 'launcher/launcher_model.cc',
87 'launcher/launcher_model.h',
88 'launcher/launcher_model_observer.h',
89 'launcher/launcher_navigator.cc',
90 'launcher/launcher_navigator.h',
91 'launcher/launcher_tooltip_manager.cc',
92 'launcher/launcher_tooltip_manager.h',
93 'launcher/launcher_types.cc',
94 'launcher/launcher_types.h',
95 'launcher/launcher_view.cc',
96 'launcher/launcher_view.h',
97 'launcher/overflow_bubble.cc',
98 'launcher/overflow_bubble.h',
99 'launcher/tabbed_launcher_button.cc',
100 'launcher/tabbed_launcher_button.h',
101 'magnifier/magnification_controller.cc',
102 'magnifier/magnification_controller.h',
103 'display/display_controller.cc',
104 'display/display_controller.h',
105 'display/mouse_cursor_event_filter.cc',
106 'display/mouse_cursor_event_filter.h',
107 'display/multi_display_manager.cc',
108 'display/multi_display_manager.h',
109 'display/secondary_display_view.cc',
110 'display/secondary_display_view.h',
111 'root_window_controller.cc',
112 'root_window_controller.h',
113 'rotator/screen_rotation.cc',
114 'rotator/screen_rotation.h',
117 'screensaver/screensaver_view.cc',
118 'screensaver/screensaver_view.h',
119 'screenshot_delegate.h',
122 'shell_context_menu.cc',
123 'shell_context_menu.h',
126 'shell_window_ids.h',
127 'system/audio/audio_observer.h',
128 'system/audio/tray_volume.cc',
129 'system/audio/tray_volume.h',
130 'system/bluetooth/bluetooth_observer.h',
131 'system/bluetooth/tray_bluetooth.cc',
132 'system/bluetooth/tray_bluetooth.h',
133 'system/brightness/brightness_observer.h',
134 'system/brightness/brightness_control_delegate.h',
135 'system/brightness/tray_brightness.cc',
136 'system/brightness/tray_brightness.h',
137 'system/date/clock_observer.h',
138 'system/date/date_view.cc',
139 'system/date/date_view.h',
140 'system/date/tray_date.cc',
141 'system/date/tray_date.h',
142 'system/drive/drive_observer.h',
143 'system/drive/tray_drive.cc',
144 'system/drive/tray_drive.h',
145 'system/ime/ime_observer.h',
146 'system/ime/tray_ime.cc',
147 'system/ime/tray_ime.h',
148 'system/keyboard_brightness/keyboard_brightness_control_delegate.h',
149 'system/locale/tray_locale.cc',
150 'system/locale/tray_locale.h',
151 'system/network/network_observer.h',
152 'system/network/tray_network.cc',
153 'system/network/tray_network.h',
154 'system/network/tray_sms.cc',
155 'system/network/tray_sms.h',
156 'system/power/power_status_observer.h',
157 'system/power/power_status_view.cc',
158 'system/power/power_status_view.h',
159 'system/power/power_supply_status.cc',
160 'system/power/power_supply_status.h',
161 'system/power/tray_power.cc',
162 'system/power/tray_power.h',
163 'system/settings/tray_settings.cc',
164 'system/settings/tray_settings.h',
165 'system/status_area_widget.cc',
166 'system/status_area_widget.h',
167 'system/status_area_widget_delegate.cc',
168 'system/status_area_widget_delegate.h',
169 'system/tray/system_tray.cc',
170 'system/tray/system_tray.h',
171 'system/tray/system_tray_bubble.cc',
172 'system/tray/system_tray_bubble.h',
173 'system/tray/system_tray_delegate.cc',
174 'system/tray/system_tray_delegate.h',
175 'system/tray/system_tray_item.cc',
176 'system/tray/system_tray_item.h',
177 'system/tray/tray_background_view.cc',
178 'system/tray/tray_background_view.h',
179 'system/tray/tray_bubble_view.cc',
180 'system/tray/tray_bubble_view.h',
181 'system/tray/tray_constants.cc',
182 'system/tray/tray_constants.h',
183 'system/tray/tray_details_view.cc',
184 'system/tray/tray_details_view.h',
185 'system/tray/tray_empty.cc',
186 'system/tray/tray_empty.h',
187 'system/tray/tray_image_item.cc',
188 'system/tray/tray_image_item.h',
189 'system/tray/tray_item_more.cc',
190 'system/tray/tray_item_more.h',
191 'system/tray/tray_item_view.cc',
192 'system/tray/tray_item_view.h',
193 'system/tray/tray_notification_view.cc',
194 'system/tray/tray_notification_view.h',
195 'system/tray/tray_views.cc',
196 'system/tray/tray_views.h',
197 'system/tray_accessibility.cc',
198 'system/tray_accessibility.h',
199 'system/tray_caps_lock.cc',
200 'system/tray_caps_lock.h',
201 'system/tray_update.cc',
202 'system/tray_update.h',
203 'system/user/login_status.h',
204 'system/user/tray_user.cc',
205 'system/user/tray_user.h',
206 'system/user/update_observer.h',
207 'system/user/user_observer.h',
208 'system/web_notification/web_notification_tray.cc',
209 'system/web_notification/web_notification_tray.h',
210 'tooltips/tooltip_controller.cc',
211 'tooltips/tooltip_controller.h',
212 'touch/touch_observer_hud.cc',
213 'touch/touch_observer_hud.h',
214 'touch/touch_uma.cc',
216 'ui_controls_ash.cc',
217 'volume_control_delegate.h',
218 'wm/app_list_controller.cc',
219 'wm/app_list_controller.h',
220 'wm/activation_controller.cc',
221 'wm/activation_controller.h',
222 'wm/always_on_top_controller.cc',
223 'wm/always_on_top_controller.h',
224 'wm/base_layout_manager.cc',
225 'wm/base_layout_manager.h',
226 'wm/capture_controller.cc',
227 'wm/capture_controller.h',
228 'wm/custom_frame_view_ash.cc',
229 'wm/custom_frame_view_ash.h',
230 'wm/default_window_resizer.cc',
231 'wm/default_window_resizer.h',
232 'wm/dialog_frame_view.cc',
233 'wm/dialog_frame_view.h',
234 'wm/event_client_impl.cc',
235 'wm/event_client_impl.h',
236 'wm/event_rewriter_event_filter.cc',
237 'wm/event_rewriter_event_filter.h',
238 'wm/frame_painter.cc',
239 'wm/frame_painter.h',
242 'wm/panel_frame_view.cc',
243 'wm/panel_frame_view.h',
244 'wm/panel_layout_manager.cc',
245 'wm/panel_layout_manager.h',
246 'wm/panel_window_event_filter.cc',
247 'wm/panel_window_event_filter.h',
248 'wm/partial_screenshot_event_filter.cc',
249 'wm/partial_screenshot_event_filter.h',
250 'wm/partial_screenshot_view.cc',
251 'wm/partial_screenshot_view.h',
252 'wm/power_button_controller.cc',
253 'wm/power_button_controller.h',
254 'wm/property_util.cc',
255 'wm/property_util.h',
256 'wm/resize_shadow.cc',
257 'wm/resize_shadow.h',
258 'wm/resize_shadow_controller.cc',
259 'wm/resize_shadow_controller.h',
260 'wm/root_window_layout_manager.cc',
261 'wm/root_window_layout_manager.h',
262 'wm/screen_dimmer.cc',
263 'wm/screen_dimmer.h',
266 'wm/shadow_controller.cc',
267 'wm/shadow_controller.h',
268 'wm/shadow_types.cc',
270 'wm/shelf_layout_manager.cc',
271 'wm/shelf_layout_manager.h',
273 'wm/slow_animation_event_filter.cc',
274 'wm/slow_animation_event_filter.h',
275 'wm/stacking_controller.cc',
276 'wm/stacking_controller.h',
277 'wm/status_area_layout_manager.cc',
278 'wm/status_area_layout_manager.h',
279 'wm/system_gesture_event_filter.cc',
280 'wm/system_gesture_event_filter.h',
281 'wm/system_modal_container_event_filter.cc',
282 'wm/system_modal_container_event_filter.h',
283 'wm/system_modal_container_event_filter_delegate.h',
284 'wm/system_modal_container_layout_manager.cc',
285 'wm/system_modal_container_layout_manager.h',
286 'wm/toplevel_window_event_filter.cc',
287 'wm/toplevel_window_event_filter.h',
288 'wm/user_activity_detector.cc',
289 'wm/user_activity_detector.h',
290 'wm/user_activity_observer.h',
291 'wm/video_detector.cc',
292 'wm/video_detector.h',
293 'wm/visibility_controller.cc',
294 'wm/visibility_controller.h',
295 'wm/window_animations.cc',
296 'wm/window_animations.h',
297 'wm/window_cycle_controller.cc',
298 'wm/window_cycle_controller.h',
299 'wm/window_cycle_list.cc',
300 'wm/window_cycle_list.h',
301 'wm/window_frame.cc',
303 'wm/window_modality_controller.cc',
304 'wm/window_modality_controller.h',
305 'wm/window_properties.cc',
306 'wm/window_properties.h',
307 'wm/window_resizer.cc',
308 'wm/window_resizer.h',
311 'wm/workspace_controller.cc',
312 'wm/workspace_controller.h',
313 'wm/workspace/frame_maximize_button.cc',
314 'wm/workspace/frame_maximize_button.h',
315 'wm/workspace/managed_workspace.cc',
316 'wm/workspace/managed_workspace.h',
317 'wm/workspace/maximized_workspace.cc',
318 'wm/workspace/maximized_workspace.h',
319 'wm/workspace/multi_window_resize_controller.cc',
320 'wm/workspace/multi_window_resize_controller.h',
321 'wm/workspace/phantom_window_controller.cc',
322 'wm/workspace/phantom_window_controller.h',
323 'wm/workspace/snap_sizer.cc',
324 'wm/workspace/snap_sizer.h',
325 'wm/workspace/workspace.cc',
326 'wm/workspace/workspace.h',
327 'wm/workspace/workspace_event_filter.cc',
328 'wm/workspace/workspace_event_filter.h',
329 'wm/workspace/workspace_layout_manager.cc',
330 'wm/workspace/workspace_layout_manager.h',
331 'wm/workspace/workspace_manager.cc',
332 'wm/workspace/workspace_manager.h',
333 'wm/workspace/workspace_window_resizer.cc',
334 'wm/workspace/workspace_window_resizer.h',
339 ['exclude', 'accelerators/accelerator_controller.cc'],
340 ['exclude', 'accelerators/accelerator_controller.h'],
341 ['exclude', 'accelerators/accelerator_dispatcher.cc'],
342 ['exclude', 'accelerators/accelerator_dispatcher.h'],
343 ['exclude', 'accelerators/accelerator_filter.cc'],
344 ['exclude', 'accelerators/accelerator_filter.h'],
345 ['exclude', 'accelerators/nested_dispatcher_controller.cc'],
346 ['exclude', 'accelerators/nested_dispatcher_controller.h'],
351 '../chromeos/chromeos.gyp:chromeos',
357 'target_name': 'ash_unittests',
358 'type': 'executable',
360 '../base/base.gyp:base',
361 '../base/base.gyp:test_support_base',
362 '../chrome/chrome_resources.gyp:packed_resources',
363 '../content/content.gyp:content_browser',
364 '../content/content.gyp:test_support_content',
365 '../build/temp_gyp/googleurl.gyp:googleurl',
366 '../skia/skia.gyp:skia',
367 '../testing/gtest.gyp:gtest',
368 '../third_party/icu/icu.gyp:icui18n',
369 '../third_party/icu/icu.gyp:icuuc',
370 '../ui/aura/aura.gyp:aura',
371 '../ui/aura/aura.gyp:test_support_aura',
372 '../ui/compositor/compositor.gyp:compositor',
373 '../ui/compositor/compositor.gyp:compositor_test_support',
375 '../ui/ui.gyp:ui_resources',
376 '../ui/ui.gyp:ui_test_support',
377 '../ui/views/views.gyp:views',
378 '../ui/views/views.gyp:test_support_views',
382 '../ui/views/test/test_views_delegate.cc',
383 '../ui/views/test/test_views_delegate.h',
384 'accelerators/accelerator_controller_unittest.cc',
385 'accelerators/accelerator_filter_unittest.cc',
386 'accelerators/accelerator_table_unittest.cc',
387 'accelerators/nested_dispatcher_controller_unittest.cc',
389 'display/display_controller_unittest.cc',
390 'display/multi_display_manager_unittest.cc',
391 'drag_drop/drag_drop_controller_unittest.cc',
392 'extended_desktop_unittest.cc',
393 'focus_cycler_unittest.cc',
394 'launcher/launcher_context_menu_unittest.cc',
395 'launcher/launcher_model_unittest.cc',
396 'launcher/launcher_navigator_unittest.cc',
397 'launcher/launcher_tooltip_manager_unittest.cc',
398 'launcher/launcher_unittest.cc',
399 'launcher/launcher_view_unittest.cc',
400 'root_window_controller_unittest.cc',
401 'screensaver/screensaver_view_unittest.cc',
403 'system/tray/system_tray_unittest.cc',
404 'system/web_notification/web_notification_tray_unittest.cc',
405 'test/ash_test_base.cc',
406 'test/ash_test_base.h',
407 'test/ash_unittests.cc',
408 'test/capture_tracking_view.cc',
409 'test/capture_tracking_view.h',
410 'test/launcher_view_test_api.cc',
411 'test/launcher_view_test_api.h',
412 'test/test_activation_delegate.cc',
413 'test/test_activation_delegate.h',
414 'test/test_launcher_delegate.cc',
415 'test/test_launcher_delegate.h',
416 'test/test_shell_delegate.cc',
417 'test/test_shell_delegate.h',
418 'test/test_suite.cc',
420 'test/test_suite_init.h',
421 'test/test_suite_init.mm',
422 'tooltips/tooltip_controller_unittest.cc',
423 'wm/activation_controller_unittest.cc',
424 'wm/base_layout_manager_unittest.cc',
425 'wm/custom_frame_view_ash_unittest.cc',
426 'wm/frame_painter_unittest.cc',
427 'wm/image_grid_unittest.cc',
428 'wm/panel_layout_manager_unittest.cc',
429 'wm/power_button_controller_unittest.cc',
430 'wm/screen_dimmer_unittest.cc',
431 'wm/shadow_controller_unittest.cc',
432 'wm/shelf_layout_manager_unittest.cc',
433 'wm/slow_animation_event_filter_unittest.cc',
434 'wm/system_gesture_event_filter_unittest.cc',
435 'wm/system_modal_container_layout_manager_unittest.cc',
436 'wm/toplevel_window_event_filter_unittest.cc',
437 'wm/user_activity_detector_unittest.cc',
438 'wm/video_detector_unittest.cc',
439 'wm/visibility_controller_unittest.cc',
440 'wm/window_animations_unittest.cc',
441 'wm/window_cycle_controller_unittest.cc',
442 'wm/window_manager_unittest.cc',
443 'wm/window_modality_controller_unittest.cc',
444 'wm/workspace_controller_test_helper.cc',
445 'wm/workspace_controller_test_helper.h',
446 'wm/workspace/multi_window_resize_controller_unittest.cc',
447 'wm/workspace/workspace_event_filter_test_helper.cc',
448 'wm/workspace/workspace_event_filter_test_helper.h',
449 'wm/workspace/workspace_event_filter_unittest.cc',
450 'wm/workspace/workspace_manager_unittest.cc',
451 'wm/workspace/workspace_window_resizer_unittest.cc',
453 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_standard.rc',
458 '../build/linux/system.gyp:ibus',
462 # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906
464 ['exclude', 'focus_cycler_unittest.cc'],
469 ['exclude', 'accelerators/accelerator_controller_unittest.cc'],
470 ['exclude', 'accelerators/accelerator_filter_unittest.cc'],
471 ['exclude', 'accelerators/nested_dispatcher_controller_unittest.cc'],
472 ['exclude', 'drag_drop/drag_drop_controller_unittest.cc'],
473 ['exclude', 'tooltips/tooltip_controller_unittest.cc'],
476 # Mac tests access resources via the 'AuraShell.app' directory.
479 # Special linker instructions that avoids stripping Obj-C classes that
480 # are not referenced in code, but are referenced in nibs.
481 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
485 # ash_unittests was formerly named aura_shell_unittests. While the build
486 # bots are being switched to use the new name we need to support both
488 # TODO(jamescook): Remove this section when build bots are building and
489 # running ash_unittests.
491 'target_name': 'aura_shell_unittests',
498 'message': 'TEMPORARY: Copy ash_unittests to aura_shell_unittests',
499 'action_name': 'copy_ash_unittests',
501 'source_file': '<(PRODUCT_DIR)/ash_unittests<(EXECUTABLE_SUFFIX)',
502 'dest_file': '<(PRODUCT_DIR)/aura_shell_unittests<(EXECUTABLE_SUFFIX)',
505 '<(DEPTH)/build/cp.py',
512 'python', '<(DEPTH)/build/cp.py', '<(source_file)', '<(dest_file)',
518 'target_name': 'ash_shell',
519 'type': 'executable',
521 '../base/base.gyp:base',
522 '../base/base.gyp:base_i18n',
523 '../chrome/chrome_resources.gyp:packed_resources',
524 '../content/content.gyp:content_shell_lib',
525 '../content/content.gyp:content',
526 '../skia/skia.gyp:skia',
527 '../third_party/icu/icu.gyp:icui18n',
528 '../third_party/icu/icu.gyp:icuuc',
529 '../ui/app_list/app_list.gyp:app_list',
530 '../ui/aura/aura.gyp:aura',
531 '../ui/compositor/compositor.gyp:compositor',
532 '../ui/compositor/compositor.gyp:compositor_test_support',
534 '../ui/ui.gyp:ui_resources',
535 '../ui/views/views.gyp:views',
536 '../ui/views/views.gyp:views_examples_lib',
537 '../ui/views/views.gyp:test_support_views',
543 'shell/content_client/shell_browser_main_parts.cc',
544 'shell/content_client/shell_browser_main_parts.h',
545 'shell/content_client/shell_content_browser_client.cc',
546 'shell/content_client/shell_content_browser_client.h',
547 'shell/content_client/shell_main_delegate.cc',
548 'shell/content_client/shell_main_delegate.h',
549 'shell/example_factory.h',
550 'shell/launcher_delegate_impl.cc',
551 'shell/launcher_delegate_impl.h',
552 'shell/lock_view.cc',
553 'shell/panel_window.cc',
554 'shell/panel_window.h',
555 'shell/shell_delegate_impl.cc',
556 'shell/shell_delegate_impl.h',
557 'shell/shell_main.cc',
558 'shell/shell_main_parts.cc',
559 'shell/shell_main_parts.h',
560 'shell/shell_main_parts_mac.mm',
561 'shell/toplevel_window.cc',
562 'shell/toplevel_window.h',
564 'shell/window_type_launcher.cc',
565 'shell/window_type_launcher.h',
566 'shell/window_watcher.cc',
567 'shell/window_watcher.h',
568 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_standard.rc',
569 '../content/app/startup_helper_win.cc',
570 '../ui/views/test/test_views_delegate.cc',
576 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
580 '../sandbox/sandbox.gyp:sandbox',
584 'product_name': 'AuraShell',
587 ['exclude', 'shell/shell_main_parts.cc'],
589 'mac_bundle_resources': [
590 'shell/cocoa/app.icns',
591 'shell/cocoa/app-Info.plist',
592 'shell/cocoa/nibs/MainMenu.xib',
593 'shell/cocoa/nibs/RootWindow.xib',
594 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
595 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
597 'mac_bundle_resources!': [
598 'shell/cocoa/app-Info.plist',
601 'INFOPLIST_FILE': 'shell/cocoa/app-Info.plist',