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