1# Copyright 2013 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 }, 9 'targets': [ 10 { 11 'target_name': 'wm', 12 'type': '<(component)', 13 'dependencies': [ 14 '../../base/base.gyp:base', 15 '../../skia/skia.gyp:skia', 16 '../aura/aura.gyp:aura', 17 '../compositor/compositor.gyp:compositor', 18 '../events/events.gyp:events', 19 '../events/events.gyp:events_base', 20 '../gfx/gfx.gyp:gfx_geometry', 21 '../gfx/gfx.gyp:gfx', 22 '../resources/ui_resources.gyp:ui_resources', 23 '../base/ui_base.gyp:ui_base', 24 ], 25 'defines': [ 26 'WM_IMPLEMENTATION', 27 ], 28 'sources': [ 29 'core/accelerator_delegate.h', 30 'core/accelerator_filter.cc', 31 'core/accelerator_filter.h', 32 'core/base_focus_rules.h', 33 'core/base_focus_rules.cc', 34 'core/base_focus_rules.h', 35 'core/capture_controller.cc', 36 'core/capture_controller.h', 37 'core/compound_event_filter.cc', 38 'core/compound_event_filter.h', 39 'core/cursor_manager.cc', 40 'core/cursor_manager.h', 41 'core/default_activation_client.cc', 42 'core/default_activation_client.h', 43 'core/easy_resize_window_targeter.cc', 44 'core/easy_resize_window_targeter.h', 45 'core/focus_controller.cc', 46 'core/focus_controller.h', 47 'core/focus_rules.h', 48 'core/image_grid.cc', 49 'core/image_grid.h', 50 'core/input_method_event_filter.cc', 51 'core/input_method_event_filter.h', 52 'core/masked_window_targeter.cc', 53 'core/masked_window_targeter.h', 54 'core/native_cursor_manager.h', 55 'core/native_cursor_manager_delegate.h', 56 'core/nested_accelerator_dispatcher_linux.cc', 57 'core/nested_accelerator_dispatcher_win.cc', 58 'core/nested_accelerator_dispatcher.cc', 59 'core/nested_accelerator_dispatcher.h', 60 'core/nested_accelerator_delegate.h', 61 'core/nested_accelerator_controller.cc', 62 'core/nested_accelerator_controller.h', 63 'core/shadow.cc', 64 'core/shadow.h', 65 'core/shadow_controller.cc', 66 'core/shadow_controller.h', 67 'core/shadow_types.cc', 68 'core/shadow_types.h', 69 'core/transient_window_controller.cc', 70 'core/transient_window_controller.h', 71 'core/transient_window_manager.cc', 72 'core/transient_window_manager.h', 73 'core/transient_window_observer.h', 74 'core/transient_window_stacking_client.cc', 75 'core/transient_window_stacking_client.h', 76 'core/user_activity_detector.cc', 77 'core/user_activity_detector.h', 78 'core/user_activity_observer.h', 79 'core/visibility_controller.cc', 80 'core/visibility_controller.h', 81 'core/window_animations.cc', 82 'core/window_animations.h', 83 'core/window_modality_controller.cc', 84 'core/window_modality_controller.h', 85 'core/window_util.cc', 86 'core/window_util.h', 87 'core/wm_core_switches.cc', 88 'core/wm_core_switches.h', 89 'core/wm_state.cc', 90 'core/wm_state.h', 91 'public/window_types.h', 92 'wm_export.h', 93 ], 94 }, 95 { 96 'target_name': 'wm_test_support', 97 'type': 'static_library', 98 'dependencies': [ 99 '../../skia/skia.gyp:skia', 100 '../aura/aura.gyp:aura', 101 '../base/ui_base.gyp:ui_base', 102 '../events/events.gyp:events', 103 '../events/events.gyp:events_base', 104 ], 105 'sources': [ 106 'test/wm_test_helper.cc', 107 'test/wm_test_helper.h', 108 ], 109 }, 110 { 111 'target_name': 'wm_unittests', 112 'type': 'executable', 113 'dependencies': [ 114 '../../base/base.gyp:base', 115 '../../base/base.gyp:test_support_base', 116 '../../skia/skia.gyp:skia', 117 '../../testing/gtest.gyp:gtest', 118 '../aura/aura.gyp:aura', 119 '../aura/aura.gyp:aura_test_support', 120 '../base/ui_base.gyp:ui_base', 121 '../compositor/compositor.gyp:compositor', 122 '../events/events.gyp:events', 123 '../events/events.gyp:events_base', 124 '../gfx/gfx.gyp:gfx', 125 '../gfx/gfx.gyp:gfx_geometry', 126 'wm', 127 'wm_test_support', 128 ], 129 'sources': [ 130 'test/run_all_unittests.cc', 131 'core/compound_event_filter_unittest.cc', 132 'core/cursor_manager_unittest.cc', 133 'core/focus_controller_unittest.cc', 134 'core/input_method_event_filter_unittest.cc', 135 'core/image_grid_unittest.cc', 136 'core/nested_accelerator_controller_unittest.cc', 137 'core/shadow_controller_unittest.cc', 138 'core/transient_window_manager_unittest.cc', 139 'core/transient_window_stacking_client_unittest.cc', 140 'core/user_activity_detector_unittest.cc', 141 'core/visibility_controller_unittest.cc', 142 'core/window_animations_unittest.cc', 143 'core/window_util_unittest.cc', 144 ], 145 }, 146 ], 147} 148