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