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