Keep the browser process more alive while GCF is running.
[chromium-blink-merge.git] / ash / ash.gyp
blobb53af601cd6c58501103cbe22b911013367086a5
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.
6   'variables': {
7     'chromium_code': 1,
8     'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
9   },
10   'includes': [
11     'ash_resources.gypi',
12   ],
13   'targets': [
14     {
15       'target_name': 'ash',
16       'type': '<(component)',
17       'dependencies': [
18         '../base/base.gyp:base',
19         '../base/base.gyp:base_i18n',
20         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
21         '../cc/cc.gyp:cc',
22         '../content/content.gyp:content',
23         '../content/content.gyp:content_browser',
24         '../ipc/ipc.gyp:ipc',
25         '../net/net.gyp:net',
26         '../skia/skia.gyp:skia',
27         '../third_party/icu/icu.gyp:icui18n',
28         '../third_party/icu/icu.gyp:icuuc',
29         '../ui/app_list/app_list.gyp:app_list',
30         '../ui/aura/aura.gyp:aura',
31         '../ui/base/strings/ui_strings.gyp:ui_strings',
32         '../ui/compositor/compositor.gyp:compositor',
33         '../ui/keyboard/keyboard.gyp:keyboard',
34         '../ui/message_center/message_center.gyp:message_center',
35         '../ui/oak/oak.gyp:oak',
36         '../ui/ui.gyp:ui',
37         '../ui/ui.gyp:ui_resources',
38         '../ui/views/controls/webview/webview.gyp:webview',
39         '../ui/views/views.gyp:views',
40         '../ui/web_dialogs/web_dialogs.gyp:web_dialogs',
41         '../url/url.gyp:url_lib',
42         'ash_strings.gyp:ash_strings',
43         'ash_resources',
44       ],
45       'defines': [
46         'ASH_IMPLEMENTATION',
47       ],
48       'sources': [
49         # All .cc, .h under ash, except unittests
50         'accelerators/accelerator_controller.cc',
51         'accelerators/accelerator_controller.h',
52         'accelerators/accelerator_dispatcher.cc',
53         'accelerators/accelerator_dispatcher.h',
54         'accelerators/accelerator_filter.cc',
55         'accelerators/accelerator_filter.h',
56         'accelerators/accelerator_table.cc',
57         'accelerators/accelerator_table.h',
58         'accelerators/exit_warning_handler.cc',
59         'accelerators/exit_warning_handler.h',
60         'accelerators/focus_manager_factory.cc',
61         'accelerators/focus_manager_factory.h',
62         'accelerators/nested_dispatcher_controller.cc',
63         'accelerators/nested_dispatcher_controller.h',
64         'ash_constants.cc',
65         'ash_constants.h',
66         'ash_switches.cc',
67         'ash_switches.h',
68         'cancel_mode.cc',
69         'cancel_mode.h',
70         'caps_lock_delegate.h',
71         'caps_lock_delegate_stub.cc',
72         'caps_lock_delegate_stub.h',
73         'debug.cc',
74         'debug.h',
75         'desktop_background/desktop_background_controller.cc',
76         'desktop_background/desktop_background_controller.h',
77         'desktop_background/desktop_background_controller_observer.h',
78         'desktop_background/desktop_background_view.cc',
79         'desktop_background/desktop_background_view.h',
80         'desktop_background/desktop_background_widget_controller.cc',
81         'desktop_background/desktop_background_widget_controller.h',
82         'desktop_background/user_wallpaper_delegate.h',
83         'desktop_background/wallpaper_resizer.cc',
84         'desktop_background/wallpaper_resizer.h',
85         'desktop_background/wallpaper_resizer_observer.h',
86         'display/display_change_observer_x11.cc',
87         'display/display_change_observer_x11.h',
88         'display/display_controller.cc',
89         'display/display_controller.h',
90         'display/display_error_observer.cc',
91         'display/display_error_observer.h',
92         'display/display_info.h',
93         'display/display_info.cc',
94         'display/display_layout.h',
95         'display/display_layout.cc',
96         'display/display_layout_store.h',
97         'display/display_layout_store.cc',
98         'display/display_manager.cc',
99         'display/display_manager.h',
100         'display/display_pref_util.h',
101         'display/event_transformation_handler.cc',
102         'display/event_transformation_handler.h',
103         'display/mirror_window_controller.cc',
104         'display/mirror_window_controller.h',
105         'display/mouse_cursor_event_filter.cc',
106         'display/mouse_cursor_event_filter.h',
107         'display/output_configurator_animation.cc',
108         'display/output_configurator_animation.h',
109         'display/root_window_transformers.cc',
110         'display/root_window_transformers.h',
111         'display/screen_position_controller.cc',
112         'display/screen_position_controller.h',
113         'display/shared_display_edge_indicator.cc',
114         'display/shared_display_edge_indicator.h',
115         'drag_drop/drag_drop_controller.cc',
116         'drag_drop/drag_drop_controller.h',
117         'drag_drop/drag_drop_tracker.cc',
118         'drag_drop/drag_drop_tracker.h',
119         'drag_drop/drag_image_view.cc',
120         'drag_drop/drag_image_view.h',
121         'event_rewriter_delegate.h',
122         'focus_cycler.cc',
123         'focus_cycler.h',
124         'high_contrast/high_contrast_controller.cc',
125         'high_contrast/high_contrast_controller.h',
126         'host/root_window_host_factory.cc',
127         'host/root_window_host_factory.h',
128         'host/root_window_host_factory_win.cc',
129         'keyboard_overlay/keyboard_overlay_delegate.cc',
130         'keyboard_overlay/keyboard_overlay_delegate.h',
131         'keyboard_overlay/keyboard_overlay_view.cc',
132         'keyboard_overlay/keyboard_overlay_view.h',
133         'launcher/alternate_app_list_button.cc',
134         'launcher/alternate_app_list_button.h',
135         'launcher/app_list_button.cc',
136         'launcher/app_list_button.h',
137         'launcher/launcher.cc',
138         'launcher/launcher.h',
139         'launcher/launcher_alignment_menu.cc',
140         'launcher/launcher_alignment_menu.h',
141         'launcher/launcher_button.cc',
142         'launcher/launcher_button.h',
143         'launcher/launcher_delegate.h',
144         'launcher/launcher_icon_observer.h',
145         'launcher/launcher_model.cc',
146         'launcher/launcher_model.h',
147         'launcher/launcher_model_observer.h',
148         'launcher/launcher_navigator.cc',
149         'launcher/launcher_navigator.h',
150         'launcher/launcher_tooltip_manager.cc',
151         'launcher/launcher_tooltip_manager.h',
152         'launcher/launcher_types.cc',
153         'launcher/launcher_types.h',
154         'launcher/launcher_util.cc',
155         'launcher/launcher_util.h',
156         'launcher/launcher_view.cc',
157         'launcher/launcher_view.h',
158         'launcher/overflow_bubble.cc',
159         'launcher/overflow_bubble.h',
160         'launcher/overflow_button.cc',
161         'launcher/overflow_button.h',
162         'launcher/tabbed_launcher_button.cc',
163         'launcher/tabbed_launcher_button.h',
164         'magnifier/magnification_controller.cc',
165         'magnifier/magnification_controller.h',
166         'magnifier/magnifier_constants.h',
167         'magnifier/partial_magnification_controller.cc',
168         'magnifier/partial_magnification_controller.h',
169         'popup_message.cc',
170         'popup_message.h',
171         'root_window_controller.cc',
172         'root_window_controller.h',
173         'rotator/screen_rotation.cc',
174         'rotator/screen_rotation.h',
175         'screen_ash.cc',
176         'screen_ash.h',
177         'screensaver/screensaver_view.cc',
178         'screensaver/screensaver_view.h',
179         'screenshot_delegate.h',
180         'session_state_delegate.h',
181         'session_state_observer.h',
182         'shelf/background_animator.cc',
183         'shelf/background_animator.h',
184         'shelf/shelf_bezel_event_filter.cc',
185         'shelf/shelf_bezel_event_filter.h',
186         'shelf/shelf_layout_manager.cc',
187         'shelf/shelf_layout_manager.h',
188         'shelf/shelf_layout_manager_observer.h',
189         'shelf/shelf_types.h',
190         'shelf/shelf_widget.cc',
191         'shelf/shelf_widget.h',
192         'shell.cc',
193         'shell.h',
194         'shell_delegate.h',
195         'shell_factory.h',
196         'shell_window_ids.h',
197         'system/bluetooth/bluetooth_observer.h',
198         'system/bluetooth/tray_bluetooth.cc',
199         'system/bluetooth/tray_bluetooth.h',
200         'system/brightness/brightness_observer.h',
201         'system/brightness/brightness_control_delegate.h',
202         'system/brightness/tray_brightness.cc',
203         'system/brightness/tray_brightness.h',
204         'system/chromeos/audio/audio_observer.h',
205         'system/chromeos/audio/tray_audio.cc',
206         'system/chromeos/audio/tray_audio.h',
207         'system/chromeos/enterprise/enterprise_domain_observer.h',
208         'system/chromeos/enterprise/tray_enterprise.h',
209         'system/chromeos/enterprise/tray_enterprise.cc',
210         'system/chromeos/keyboard_brightness_controller.cc',
211         'system/chromeos/keyboard_brightness_controller.h',
212         'system/chromeos/label_tray_view.h',
213         'system/chromeos/label_tray_view.cc',
214         'system/chromeos/managed/tray_locally_managed_user.h',
215         'system/chromeos/managed/tray_locally_managed_user.cc',
216         'system/chromeos/network/network_connect.cc',
217         'system/chromeos/network/network_connect.h',
218         'system/chromeos/network/network_detailed_view.h',
219         'system/chromeos/network/network_icon.cc',
220         'system/chromeos/network/network_icon.h',
221         'system/chromeos/network/network_icon_animation.cc',
222         'system/chromeos/network/network_icon_animation.h',
223         'system/chromeos/network/network_icon_animation_observer.h',
224         'system/chromeos/network/network_observer.cc',
225         'system/chromeos/network/network_observer.h',
226         'system/chromeos/network/network_state_list_detailed_view.cc',
227         'system/chromeos/network/network_state_list_detailed_view.h',
228         'system/chromeos/network/network_state_notifier.cc',
229         'system/chromeos/network/network_state_notifier.h',
230         'system/chromeos/network/network_tray_delegate.h',
231         'system/chromeos/network/tray_network.cc',
232         'system/chromeos/network/tray_network.h',
233         'system/chromeos/network/tray_network_state_observer.cc',
234         'system/chromeos/network/tray_network_state_observer.h',
235         'system/chromeos/network/tray_sms.cc',
236         'system/chromeos/network/tray_sms.h',
237         'system/chromeos/network/tray_vpn.cc',
238         'system/chromeos/network/tray_vpn.h',
239         'system/chromeos/power/power_status.cc',
240         'system/chromeos/power/power_status.h',
241         'system/chromeos/power/power_status_view.cc',
242         'system/chromeos/power/power_status_view.h',
243         'system/chromeos/power/tray_power.cc',
244         'system/chromeos/power/tray_power.h',
245         'system/chromeos/screen_security/screen_capture_observer.h',
246         'system/chromeos/screen_security/screen_capture_tray_item.cc',
247         'system/chromeos/screen_security/screen_capture_tray_item.h',
248         'system/chromeos/screen_security/screen_share_observer.h',
249         'system/chromeos/screen_security/screen_share_tray_item.cc',
250         'system/chromeos/screen_security/screen_share_tray_item.h',
251         'system/chromeos/screen_security/screen_tray_item.cc',
252         'system/chromeos/screen_security/screen_tray_item.h',
253         'system/chromeos/settings/tray_settings.cc',
254         'system/chromeos/settings/tray_settings.h',
255         'system/chromeos/tray_display.cc',
256         'system/chromeos/tray_display.h',
257         'system/date/clock_observer.h',
258         'system/date/date_view.cc',
259         'system/date/date_view.h',
260         'system/date/tray_date.cc',
261         'system/date/tray_date.h',
262         'system/drive/drive_observer.h',
263         'system/drive/tray_drive.cc',
264         'system/drive/tray_drive.h',
265         'system/ime/ime_observer.h',
266         'system/ime/tray_ime.cc',
267         'system/ime/tray_ime.h',
268         'system/keyboard_brightness/keyboard_brightness_control_delegate.h',
269         'system/locale/tray_locale.cc',
270         'system/locale/tray_locale.h',
271         'system/logout_button/logout_button_observer.h',
272         'system/logout_button/tray_logout_button.cc',
273         'system/logout_button/tray_logout_button.h',
274         'system/monitor/tray_monitor.cc',
275         'system/monitor/tray_monitor.h',
276         'system/session_length_limit/session_length_limit_observer.h',
277         'system/session_length_limit/tray_session_length_limit.cc',
278         'system/session_length_limit/tray_session_length_limit.h',
279         'system/status_area_widget.cc',
280         'system/status_area_widget.h',
281         'system/status_area_widget_delegate.cc',
282         'system/status_area_widget_delegate.h',
283         'system/tray/actionable_view.cc',
284         'system/tray/actionable_view.h',
285         'system/tray/fixed_sized_image_view.cc',
286         'system/tray/fixed_sized_image_view.h',
287         'system/tray/fixed_sized_scroll_view.cc',
288         'system/tray/fixed_sized_scroll_view.h',
289         'system/tray/hover_highlight_view.cc',
290         'system/tray/hover_highlight_view.h',
291         'system/tray/special_popup_row.cc',
292         'system/tray/special_popup_row.h',
293         'system/tray/system_tray.cc',
294         'system/tray/system_tray.h',
295         'system/tray/system_tray_bubble.cc',
296         'system/tray/system_tray_bubble.h',
297         'system/tray/system_tray_delegate.cc',
298         'system/tray/system_tray_delegate.h',
299         'system/tray/system_tray_item.cc',
300         'system/tray/system_tray_item.h',
301         'system/tray/system_tray_notifier.cc',
302         'system/tray/system_tray_notifier.h',
303         'system/tray/test_system_tray_delegate.cc',
304         'system/tray/test_system_tray_delegate.h',
305         'system/tray/throbber_view.cc',
306         'system/tray/throbber_view.h',
307         'system/tray/tray_background_view.cc',
308         'system/tray/tray_background_view.h',
309         'system/tray/tray_bar_button_with_title.cc',
310         'system/tray/tray_bar_button_with_title.h',
311         'system/tray/tray_bubble_wrapper.cc',
312         'system/tray/tray_bubble_wrapper.h',
313         'system/tray/tray_constants.cc',
314         'system/tray/tray_constants.h',
315         'system/tray/tray_details_view.cc',
316         'system/tray/tray_details_view.h',
317         'system/tray/tray_empty.cc',
318         'system/tray/tray_empty.h',
319         'system/tray/tray_event_filter.cc',
320         'system/tray/tray_event_filter.h',
321         'system/tray/tray_image_item.cc',
322         'system/tray/tray_image_item.h',
323         'system/tray/tray_item_more.cc',
324         'system/tray/tray_item_more.h',
325         'system/tray/tray_item_view.cc',
326         'system/tray/tray_item_view.h',
327         'system/tray/tray_notification_view.cc',
328         'system/tray/tray_notification_view.h',
329         'system/tray/tray_popup_header_button.cc',
330         'system/tray/tray_popup_header_button.h',
331         'system/tray/tray_popup_label_button.cc',
332         'system/tray/tray_popup_label_button.cc',
333         'system/tray/tray_popup_label_button.h',
334         'system/tray/tray_popup_label_button_border.cc',
335         'system/tray/tray_popup_label_button_border.h',
336         'system/tray/tray_utils.cc',
337         'system/tray/tray_utils.h',
338         'system/tray/view_click_listener.h',
339         'system/tray_accessibility.cc',
340         'system/tray_accessibility.h',
341         'system/tray_caps_lock.cc',
342         'system/tray_caps_lock.h',
343         'system/tray_update.cc',
344         'system/tray_update.h',
345         'system/user/login_status.cc',
346         'system/user/login_status.h',
347         'system/user/tray_user.cc',
348         'system/user/tray_user.h',
349         'system/user/update_observer.h',
350         'system/user/user_observer.h',
351         'system/web_notification/web_notification_tray.cc',
352         'system/web_notification/web_notification_tray.h',
353         'touch/touch_hud_debug.cc',
354         'touch/touch_hud_debug.h',
355         'touch/touch_hud_projection.cc',
356         'touch/touch_hud_projection.h',
357         'touch/touch_observer_hud.cc',
358         'touch/touch_observer_hud.h',
359         'touch/touch_uma.cc',
360         'touch/touch_uma.h',
361         'volume_control_delegate.h',
362         'wm/app_list_controller.cc',
363         'wm/app_list_controller.h',
364         'wm/activation_controller.cc',
365         'wm/activation_controller.h',
366         'wm/activation_controller_delegate.h',
367         'wm/always_on_top_controller.cc',
368         'wm/always_on_top_controller.h',
369         'wm/ash_activation_controller.cc',
370         'wm/ash_activation_controller.h',
371         'wm/ash_native_cursor_manager.cc',
372         'wm/ash_native_cursor_manager.h',
373         'wm/ash_focus_rules.cc',
374         'wm/ash_focus_rules.h',
375         'wm/base_layout_manager.cc',
376         'wm/base_layout_manager.h',
377         'wm/boot_splash_screen.cc',
378         'wm/boot_splash_screen.h',
379         'wm/capture_controller.cc',
380         'wm/capture_controller.h',
381         'wm/coordinate_conversion.cc',
382         'wm/coordinate_conversion.h',
383         'wm/custom_frame_view_ash.cc',
384         'wm/custom_frame_view_ash.h',
385         'wm/default_window_resizer.cc',
386         'wm/default_window_resizer.h',
387         'wm/dock/docked_window_layout_manager.cc',
388         'wm/dock/docked_window_layout_manager.h',
389         'wm/dock/docked_window_layout_manager_observer.h',
390         'wm/dock/docked_window_resizer.cc',
391         'wm/dock/docked_window_resizer.h',
392         'wm/drag_window_controller.cc',
393         'wm/drag_window_controller.h',
394         'wm/drag_window_resizer.cc',
395         'wm/drag_window_resizer.h',
396         'wm/event_client_impl.cc',
397         'wm/event_client_impl.h',
398         'wm/event_rewriter_event_filter.cc',
399         'wm/event_rewriter_event_filter.h',
400         'wm/frame_painter.cc',
401         'wm/frame_painter.h',
402         'wm/gestures/long_press_affordance_handler.cc',
403         'wm/gestures/long_press_affordance_handler.h',
404         'wm/gestures/shelf_gesture_handler.cc',
405         'wm/gestures/shelf_gesture_handler.h',
406         'wm/gestures/system_pinch_handler.cc',
407         'wm/gestures/system_pinch_handler.h',
408         'wm/gestures/tray_gesture_handler.cc',
409         'wm/gestures/tray_gesture_handler.h',
410         'wm/gestures/two_finger_drag_handler.cc',
411         'wm/gestures/two_finger_drag_handler.h',
412         'wm/image_cursors.cc',
413         'wm/image_cursors.h',
414         'wm/lock_state_controller.cc',
415         'wm/lock_state_controller.h',
416         'wm/lock_state_controller_impl2.cc',
417         'wm/lock_state_controller_impl2.h',
418         'wm/lock_state_observer.h',
419         'wm/maximize_bubble_controller.cc',
420         'wm/maximize_bubble_controller.h',
421         'wm/overlay_event_filter.cc',
422         'wm/overlay_event_filter.h',
423         'wm/panels/panel_frame_view.cc',
424         'wm/panels/panel_frame_view.h',
425         'wm/panels/panel_layout_manager.cc',
426         'wm/panels/panel_layout_manager.h',
427         'wm/panels/panel_window_event_handler.cc',
428         'wm/panels/panel_window_event_handler.h',
429         'wm/panels/panel_window_resizer.cc',
430         'wm/panels/panel_window_resizer.h',
431         'wm/partial_screenshot_view.cc',
432         'wm/partial_screenshot_view.h',
433         'wm/power_button_controller.cc',
434         'wm/power_button_controller.h',
435         'wm/property_util.cc',
436         'wm/property_util.h',
437         'wm/resize_shadow.cc',
438         'wm/resize_shadow.h',
439         'wm/resize_shadow_controller.cc',
440         'wm/resize_shadow_controller.h',
441         'wm/root_window_layout_manager.cc',
442         'wm/root_window_layout_manager.h',
443         'wm/screen_dimmer.cc',
444         'wm/screen_dimmer.h',
445         'wm/session_state_animator.cc',
446         'wm/session_state_animator.h',
447         'wm/session_state_controller_impl.cc',
448         'wm/session_state_controller_impl.h',
449         'wm/stacking_controller.cc',
450         'wm/stacking_controller.h',
451         'wm/status_area_layout_manager.cc',
452         'wm/status_area_layout_manager.h',
453         'wm/sticky_keys.cc',
454         'wm/sticky_keys.h',
455         'wm/system_background_controller.cc',
456         'wm/system_background_controller.h',
457         'wm/system_gesture_event_filter.cc',
458         'wm/system_gesture_event_filter.h',
459         'wm/system_modal_container_event_filter.cc',
460         'wm/system_modal_container_event_filter.h',
461         'wm/system_modal_container_event_filter_delegate.h',
462         'wm/system_modal_container_layout_manager.cc',
463         'wm/system_modal_container_layout_manager.h',
464         'wm/toplevel_window_event_handler.cc',
465         'wm/toplevel_window_event_handler.h',
466         'wm/user_activity_detector.cc',
467         'wm/user_activity_detector.h',
468         'wm/user_activity_observer.h',
469         'wm/video_detector.cc',
470         'wm/video_detector.h',
471         'wm/window_animations.cc',
472         'wm/window_animations.h',
473         'wm/window_cycle_controller.cc',
474         'wm/window_cycle_controller.h',
475         'wm/window_cycle_list.cc',
476         'wm/window_cycle_list.h',
477         'wm/window_properties.cc',
478         'wm/window_properties.h',
479         'wm/window_resizer.cc',
480         'wm/window_resizer.h',
481         'wm/window_util.cc',
482         'wm/window_util.h',
483         'wm/workspace_controller.cc',
484         'wm/workspace_controller.h',
485         'wm/workspace/auto_window_management.cc',
486         'wm/workspace/auto_window_management.h',
487         'wm/workspace/colored_window_controller.cc',
488         'wm/workspace/colored_window_controller.h',
489         'wm/workspace/desktop_background_fade_controller.cc',
490         'wm/workspace/desktop_background_fade_controller.h',
491         'wm/workspace/frame_maximize_button.cc',
492         'wm/workspace/frame_maximize_button.h',
493         'wm/workspace/magnetism_matcher.cc',
494         'wm/workspace/magnetism_matcher.h',
495         'wm/workspace/maximize_bubble_frame_state.h',
496         'wm/workspace/multi_window_resize_controller.cc',
497         'wm/workspace/multi_window_resize_controller.h',
498         'wm/workspace/phantom_window_controller.cc',
499         'wm/workspace/phantom_window_controller.h',
500         'wm/workspace/snap_sizer.cc',
501         'wm/workspace/snap_sizer.h',
502         'wm/workspace/snap_types.h',
503         'wm/workspace/workspace.cc',
504         'wm/workspace/workspace.h',
505         'wm/workspace/workspace_animations.cc',
506         'wm/workspace/workspace_animations.h',
507         'wm/workspace/workspace_event_handler.cc',
508         'wm/workspace/workspace_event_handler.h',
509         'wm/workspace/workspace_layout_manager.cc',
510         'wm/workspace/workspace_layout_manager.h',
511         'wm/workspace/workspace_manager.cc',
512         'wm/workspace/workspace_manager.h',
513         'wm/workspace/workspace_types.h',
514         'wm/workspace/workspace_window_resizer.cc',
515         'wm/workspace/workspace_window_resizer.h',
516       ],
517       'conditions': [
518         ['OS=="mac"', {
519           'sources/': [
520             ['exclude', 'accelerators/accelerator_controller.cc'],
521             ['exclude', 'accelerators/accelerator_controller.h'],
522             ['exclude', 'accelerators/accelerator_dispatcher.cc'],
523             ['exclude', 'accelerators/accelerator_dispatcher.h'],
524             ['exclude', 'accelerators/accelerator_filter.cc'],
525             ['exclude', 'accelerators/accelerator_filter.h'],
526             ['exclude', 'accelerators/exit_warning_handler.cc'],
527             ['exclude', 'accelerators/exit_warning_handler.h'],
528             ['exclude', 'accelerators/nested_dispatcher_controller.cc'],
529             ['exclude', 'accelerators/nested_dispatcher_controller.h'],
530           ],
531         }],
532         ['OS=="win"', {
533           'sources/': [
534             ['exclude', 'host/root_window_host_factory.cc'],
535             ['exclude', 'wm/sticky_keys.cc'],
536             ['exclude', 'wm/sticky_keys.h'],
537           ],
538           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
539           'msvs_disabled_warnings': [ 4267, ],
540         }],
541         ['OS!="linux"', {
542           'sources/': [
543             ['exclude', 'system/monitor/tray_monitor.cc'],
544             ['exclude', 'system/monitor/tray_monitor.h'],
545           ],
546         }],
547         ['chromeos==1', {
548           'dependencies': [
549             '../chromeos/chromeos.gyp:chromeos',
550             # Ash #includes power_supply_properties.pb.h directly.
551             '../chromeos/chromeos.gyp:power_manager_proto',
552           ],
553         }, { # else: chromeos!=1
554           'sources/': [
555             ['exclude', '/chromeos/'],
556             ['exclude', 'display/display_error_observer.cc'],
557             ['exclude', 'display/display_error_observer.h'],
558             ['exclude', 'display/output_configurator_animation.cc'],
559             ['exclude', 'display/output_configurator_animation.h'],
560           ],
561         }],
562       ],
563     },
564     {
565       'target_name': 'ash_test_support',
566       'type': 'static_library',
567       'dependencies': [
568         '../skia/skia.gyp:skia',
569         '../testing/gtest.gyp:gtest',
570         'ash',
571         'ash_resources',
572       ],
573       'sources': [
574         'test/ash_test_base.cc',
575         'test/ash_test_base.h',
576         'test/ash_test_helper.cc',
577         'test/ash_test_helper.h',
578         'test/cursor_manager_test_api.cc',
579         'test/cursor_manager_test_api.h',
580         'test/launcher_view_test_api.cc',
581         'test/launcher_view_test_api.h',
582         'test/display_manager_test_api.cc',
583         'test/display_manager_test_api.h',
584         'test/mirror_window_test_api.cc',
585         'test/mirror_window_test_api.h',
586         'test/shell_test_api.cc',
587         'test/shell_test_api.h',
588         'test/test_activation_delegate.cc',
589         'test/test_activation_delegate.h',
590         'test/test_launcher_delegate.cc',
591         'test/test_launcher_delegate.h',
592         'test/test_session_state_delegate.cc',
593         'test/test_session_state_delegate.cc',
594         'test/test_shell_delegate.cc',
595         'test/test_shell_delegate.h',
596         'test/test_suite.cc',
597         'test/test_suite.h',
598         'test/test_suite_init.h',
599         'test/test_suite_init.mm',
600         'test/ui_controls_factory_ash.cc',
601         'test/ui_controls_factory_ash.h',
602       ],
603       'conditions': [
604         ['OS=="win"', {
605           'dependencies': [
606             '../ipc/ipc.gyp:ipc',
607             '../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages',
608             '../win8/win8.gyp:metro_viewer',
609             '../win8/win8.gyp:test_support_win8',
610             '../win8/win8_tests.gyp:test_registrar',
611           ],
612           'sources': [
613             'test/test_metro_viewer_process_host.cc',
614             'test/test_metro_viewer_process_host.h',
615           ],
616         }],
617       ],
618     },
619     {
620       'target_name': 'ash_unittests',
621       'type': 'executable',
622       'dependencies': [
623         '../base/base.gyp:base',
624         '../base/base.gyp:test_support_base',
625         '../chrome/chrome_resources.gyp:packed_resources',
626         '../content/content.gyp:content_browser',
627         '../content/content.gyp:test_support_content',
628         '../skia/skia.gyp:skia',
629         '../testing/gtest.gyp:gtest',
630         '../third_party/icu/icu.gyp:icui18n',
631         '../third_party/icu/icu.gyp:icuuc',
632         '../ui/app_list/app_list.gyp:app_list',
633         '../ui/aura/aura.gyp:aura',
634         '../ui/aura/aura.gyp:aura_test_support',
635         '../ui/compositor/compositor.gyp:compositor',
636         '../ui/keyboard/keyboard.gyp:keyboard',
637         '../ui/message_center/message_center.gyp:message_center',
638         '../ui/message_center/message_center.gyp:message_center_test_support',
639         '../ui/ui.gyp:ui',
640         '../ui/ui.gyp:ui_resources',
641         '../ui/ui.gyp:ui_test_support',
642         '../ui/views/views.gyp:views',
643         '../ui/views/views.gyp:views_examples_with_content_lib',
644         '../ui/views/views.gyp:views_test_support',
645         '../ui/views/views.gyp:views_with_content_test_support',
646         '../ui/web_dialogs/web_dialogs.gyp:web_dialogs_test_support',
647         '../url/url.gyp:url_lib',
648         'ash_strings.gyp:ash_strings',
649         'ash',
650         'ash_resources',
651         'ash_test_support',
652       ],
653       'sources': [
654         '../ui/compositor/test/layer_animator_test_controller.cc',
655         '../ui/compositor/test/layer_animator_test_controller.h',
656         '../ui/views/test/test_views_delegate.cc',
657         '../ui/views/test/test_views_delegate.h',
658         'accelerators/accelerator_controller_unittest.cc',
659         'accelerators/accelerator_filter_unittest.cc',
660         'accelerators/accelerator_table_unittest.cc',
661         'accelerators/nested_dispatcher_controller_unittest.cc',
662         'desktop_background/desktop_background_controller_unittest.cc',
663         'desktop_background/wallpaper_resizer_unittest.cc',
664         'dip_unittest.cc',
665         'display/display_controller_unittest.cc',
666         'display/display_error_observer_unittest.cc',
667         'display/display_info_unittest.cc',
668         'display/display_manager_unittest.cc',
669         'display/mirror_window_controller_unittest.cc',
670         'display/mouse_cursor_event_filter_unittest.cc',
671         'display/root_window_transformers_unittest.cc',
672         'display/screen_position_controller_unittest.cc',
673         'drag_drop/drag_drop_controller_unittest.cc',
674         'drag_drop/drag_drop_tracker_unittest.cc',
675         'extended_desktop_unittest.cc',
676         'focus_cycler_unittest.cc',
677         'keyboard_overlay/keyboard_overlay_delegate_unittest.cc',
678         'keyboard_overlay/keyboard_overlay_view_unittest.cc',
679         'launcher/launcher_model_unittest.cc',
680         'launcher/launcher_navigator_unittest.cc',
681         'launcher/launcher_tooltip_manager_unittest.cc',
682         'launcher/launcher_unittest.cc',
683         'launcher/launcher_view_unittest.cc',
684         'magnifier/magnification_controller_unittest.cc',
685         'root_window_controller_unittest.cc',
686         'screen_ash_unittest.cc',
687         'screensaver/screensaver_view_unittest.cc',
688         'session_state_delegate_stub.cc',
689         'session_state_delegate_stub.h',
690         'shelf/shelf_layout_manager_unittest.cc',
691         'shelf/shelf_widget_unittest.cc',
692         'shell_unittest.cc',
693         'shell/app_list.cc',
694         'shell/bubble.cc',
695         'shell/context_menu.cc',
696         'shell/context_menu.h',
697         'shell/launcher_delegate_impl.cc',
698         'shell/lock_view.cc',
699         'shell/panel_window.cc',
700         'shell/shell_delegate_impl.cc',
701         'shell/shell_delegate_impl.h',
702         'shell/toplevel_window.cc',
703         'shell/widgets.cc',
704         'shell/window_type_launcher.cc',
705         'shell/window_watcher.cc',
706         'shell/window_watcher_unittest.cc',
707         'system/chromeos/network/network_state_notifier_unittest.cc',
708         'system/chromeos/power/power_status_unittest.cc',
709         'system/chromeos/power/tray_power_unittest.cc',
710         'system/chromeos/screen_security/screen_tray_item_unittest.cc',
711         'system/chromeos/tray_display_unittest.cc',
712         'system/tray/system_tray_unittest.cc',
713         'system/user/tray_user_unittest.cc',
714         'system/web_notification/web_notification_tray_unittest.cc',
715         'test/ash_test_helper_unittest.cc',
716         'test/ash_unittests.cc',
717         'tooltips/tooltip_controller_unittest.cc',
718         'touch/touch_observer_hud_unittest.cc',
719         'wm/activation_controller_unittest.cc',
720         'wm/ash_activation_controller_unittest.cc',
721         'wm/ash_native_cursor_manager_unittest.cc',
722         'wm/base_layout_manager_unittest.cc',
723         'wm/custom_frame_view_ash_unittest.cc',
724         'wm/dock/docked_window_layout_manager_unittest.cc',
725         'wm/dock/docked_window_resizer_unittest.cc',
726         'wm/drag_window_resizer_unittest.cc',
727         'wm/frame_painter_unittest.cc',
728         'wm/lock_state_controller_impl2_unittest.cc',
729         'wm/panels/panel_layout_manager_unittest.cc',
730         'wm/panels/panel_window_resizer_unittest.cc',
731         'wm/partial_screenshot_view_unittest.cc',
732         'wm/power_button_controller_unittest.cc',
733         'wm/screen_dimmer_unittest.cc',
734         'wm/stacking_controller_unittest.cc',
735         'wm/sticky_keys_unittest.cc',
736         'wm/system_gesture_event_filter_unittest.cc',
737         'wm/system_modal_container_layout_manager_unittest.cc',
738         'wm/toplevel_window_event_handler_unittest.cc',
739         'wm/user_activity_detector_unittest.cc',
740         'wm/video_detector_unittest.cc',
741         'wm/window_animations_unittest.cc',
742         'wm/window_cycle_controller_unittest.cc',
743         'wm/window_manager_unittest.cc',
744         'wm/window_modality_controller_unittest.cc',
745         'wm/window_util_unittest.cc',
746         'wm/workspace_controller_test_helper.cc',
747         'wm/workspace_controller_test_helper.h',
748         'wm/workspace/magnetism_matcher_unittest.cc',
749         'wm/workspace/multi_window_resize_controller_unittest.cc',
750         'wm/workspace/workspace_event_handler_test_helper.cc',
751         'wm/workspace/workspace_event_handler_test_helper.h',
752         'wm/workspace/workspace_event_handler_unittest.cc',
753         'wm/workspace/workspace_layout_manager_unittest.cc',
754         'wm/workspace/workspace_manager_unittest.cc',
755         'wm/workspace/workspace_window_resizer_unittest.cc',
756       ],
757       'conditions': [
758         ['OS=="win"', {
759           'sources/': [
760             # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906
761             ['exclude', 'focus_cycler_unittest.cc'],
762             # All tests for multiple displays: not supported on Windows Ash.
763             ['exclude', 'accelerators/nested_dispatcher_controller_unittest.cc'],
764             ['exclude', 'wm/drag_window_resizer_unittest.cc'],
765             # Can't resize on Windows Ash. http://crbug.com/165962
766             ['exclude', 'ash_root_window_transformer_unittest.cc'],
767             ['exclude', 'magnifier/magnification_controller_unittest.cc'],
768             ['exclude', 'wm/workspace/workspace_window_resizer_unittest.cc'],
769             ['exclude', 'wm/sticky_keys_unittest.cc'],
770           ],
771           'sources': [
772             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_unscaled_resources.rc',
773           ],
774           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
775           'msvs_disabled_warnings': [ 4267, ],
776         }],
777         ['OS=="mac"', {
778           'sources/': [
779             ['exclude', 'accelerators/accelerator_controller_unittest.cc'],
780             ['exclude', 'accelerators/accelerator_filter_unittest.cc'],
781             ['exclude', 'accelerators/nested_dispatcher_controller_unittest.cc'],
782             ['exclude', 'drag_drop/drag_drop_controller_unittest.cc'],
783             ['exclude', 'tooltips/tooltip_controller_unittest.cc'],
784           ],
785           'dependencies': [
786             # Mac tests access resources via the 'AuraShell.app' directory.
787             'ash_shell',
788           ],
789           # Special linker instructions that avoids stripping Obj-C classes that
790           # are not referenced in code, but are referenced in nibs.
791           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
792         }],
793         ['use_x11==1', {
794           'sources': [
795             'display/display_change_observer_x11_unittest.cc'
796           ],
797         }],
798         ['chromeos!=1', {
799           'sources/': [
800             ['exclude', 'display/display_error_observer_unittest.cc'],
801           ],
802         }, {  # chromeos==1
803           'dependencies': [
804             '../chromeos/chromeos.gyp:power_manager_proto',
805           ],
806         }],
807         ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
808           'dependencies': [
809             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
810           ],
811           'link_settings': {
812             'ldflags': ['-rdynamic'],
813           },
814         }],
815       ],
816     },
817     {
818       'target_name': 'ash_shell',
819       'type': 'executable',
820       'dependencies': [
821         'ash_strings.gyp:ash_strings',
822         '../base/base.gyp:base',
823         '../base/base.gyp:base_i18n',
824         '../chrome/chrome_resources.gyp:packed_resources',
825         '../content/content.gyp:content_shell_lib',
826         '../content/content.gyp:content',
827         '../skia/skia.gyp:skia',
828         '../third_party/icu/icu.gyp:icui18n',
829         '../third_party/icu/icu.gyp:icuuc',
830         '../ui/app_list/app_list.gyp:app_list',
831         '../ui/aura/aura.gyp:aura',
832         '../ui/compositor/compositor.gyp:compositor',
833         '../ui/keyboard/keyboard.gyp:keyboard',
834         '../ui/message_center/message_center.gyp:message_center',
835         '../ui/ui.gyp:ui',
836         '../ui/ui.gyp:ui_resources',
837         '../ui/views/views.gyp:views',
838         '../ui/views/views.gyp:views_examples_lib',
839         '../ui/views/views.gyp:views_examples_with_content_lib',
840         '../ui/views/views.gyp:views_test_support',
841         'ash',
842         'ash_resources',
843       ],
844       'sources': [
845         'session_state_delegate_stub.cc',
846         'session_state_delegate_stub.h',
847         'shell/app_list.cc',
848         'shell/bubble.cc',
849         'shell/content_client/shell_browser_main_parts.cc',
850         'shell/content_client/shell_browser_main_parts.h',
851         'shell/content_client/shell_content_browser_client.cc',
852         'shell/content_client/shell_content_browser_client.h',
853         'shell/content_client/shell_main_delegate.cc',
854         'shell/content_client/shell_main_delegate.h',
855         'shell/context_menu.cc',
856         'shell/context_menu.h',
857         'shell/example_factory.h',
858         'shell/launcher_delegate_impl.cc',
859         'shell/launcher_delegate_impl.h',
860         'shell/lock_view.cc',
861         'shell/panel_window.cc',
862         'shell/panel_window.h',
863         'shell/shell_delegate_impl.cc',
864         'shell/shell_delegate_impl.h',
865         'shell/shell_main.cc',
866         'shell/shell_main_parts.cc',
867         'shell/shell_main_parts.h',
868         'shell/shell_main_parts_mac.mm',
869         'shell/toplevel_window.cc',
870         'shell/toplevel_window.h',
871         'shell/widgets.cc',
872         'shell/window_type_launcher.cc',
873         'shell/window_type_launcher.h',
874         'shell/window_watcher.cc',
875         'shell/window_watcher.h',
876         '../content/app/startup_helper_win.cc',
877         '../ui/views/test/test_views_delegate.cc',
878       ],
879       'conditions': [
880         ['OS=="win"', {
881           'msvs_settings': {
882             'VCLinkerTool': {
883               'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
884             },
885           },
886           'dependencies': [
887             '../sandbox/sandbox.gyp:sandbox',
888           ],
889         }],
890         ['OS=="mac"', {
891           'product_name': 'AuraShell',
892           'mac_bundle': 1,
893           'sources/': [
894             ['exclude', 'shell/shell_main_parts.cc'],
895           ],
896           'mac_bundle_resources': [
897             'shell/cocoa/app.icns',
898             'shell/cocoa/app-Info.plist',
899             'shell/cocoa/nibs/MainMenu.xib',
900             'shell/cocoa/nibs/RootWindow.xib',
901             '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
902             '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
903           ],
904           'mac_bundle_resources!': [
905             'shell/cocoa/app-Info.plist',
906           ],
907           'xcode_settings': {
908             'INFOPLIST_FILE': 'shell/cocoa/app-Info.plist',
909           },
910         }],
911       ],
912     },
913   ],