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