Fix build break
[chromium-blink-merge.git] / ui / aura / aura.gyp
blobf6ec2ceb70d3e7fdc180aad279015d3b1b46f440
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   },
9   'targets': [
10     {
11       'target_name': 'aura',
12       'type': '<(component)',
13       'dependencies': [
14         '../../base/base.gyp:base',
15         '../../base/base.gyp:base_i18n',
16         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17         '../../skia/skia.gyp:skia',
18         '../compositor/compositor.gyp:compositor',
19         '../ui.gyp:ui',
20         '../ui.gyp:ui_resources',
21       ],
22       'defines': [
23         'AURA_IMPLEMENTATION',
24       ],
25       'sources': [
26         'client/activation_change_observer.h',
27         'client/activation_change_observer.cc',
28         'client/activation_client.cc',
29         'client/activation_client.h',
30         'client/activation_delegate.cc',
31         'client/activation_delegate.h',
32         'client/animation_host.cc',
33         'client/animation_host.h',
34         'client/aura_constants.cc',
35         'client/aura_constants.h',
36         'client/capture_client.cc',
37         'client/capture_client.h',
38         'client/capture_delegate.h',
39         'client/cursor_client.cc',
40         'client/cursor_client.h',
41         'client/default_capture_client.cc',
42         'client/default_capture_client.h',
43         'client/dispatcher_client.cc',
44         'client/dispatcher_client.h',
45         'client/drag_drop_client.cc',
46         'client/drag_drop_client.h',
47         'client/drag_drop_delegate.cc',
48         'client/drag_drop_delegate.h',
49         'client/event_client.cc',
50         'client/event_client.h',
51         'client/focus_change_observer.cc',
52         'client/focus_change_observer.h',
53         'client/focus_client.cc',
54         'client/focus_client.h',
55         'client/screen_position_client.cc',
56         'client/screen_position_client.h',
57         'client/stacking_client.cc',
58         'client/stacking_client.h',
59         'client/tooltip_client.cc',
60         'client/tooltip_client.h',
61         'client/user_action_client.cc',
62         'client/user_action_client.h',
63         'client/visibility_client.cc',
64         'client/visibility_client.h',
65         'client/window_move_client.cc',
66         'client/window_move_client.h',
67         'client/window_types.h',
68         'device_list_updater_aurax11.cc',
69         'device_list_updater_aurax11.h',
70         'dispatcher_win.cc',
71         'env.cc',
72         'env.h',
73         'env_observer.h',
74         'focus_manager.cc',
75         'focus_manager.h',
76         'layout_manager.cc',
77         'layout_manager.h',
78         'remote_root_window_host_win.cc',
79         'remote_root_window_host_win.h',
80         'root_window_host.h',
81         'root_window_host_delegate.h',
82         'root_window_host_mac.h',
83         'root_window_host_mac.mm',
84         'root_window_host_win.cc',
85         'root_window_host_win.h',
86         'root_window_host_x11.cc',
87         'root_window_host_x11.h',
88         'root_window_mac.h',
89         'root_window_mac.mm',
90         'root_window_transformer.h',
91         'root_window_view_mac.h',
92         'root_window_view_mac.mm',
93         'root_window.cc',
94         'root_window.h',
95         'window.cc',
96         'window.h',
97         'window_delegate.h',
98         'window_destruction_observer.cc',
99         'window_destruction_observer.h',
100         'window_observer.h',
101         'window_tracker.cc',
102         'window_tracker.h',
103       ],
104       'conditions': [
105         ['OS=="mac"', {
106           'sources/': [
107             ['exclude', 'client/dispatcher_client.cc'],
108             ['exclude', 'client/dispatcher_client.h'],
109           ],
110         }],
111         ['use_x11==1', {
112           'link_settings': {
113             'libraries': [
114               '-lX11',
115               '-lXi',
116               '-lXfixes',
117               '-lXrandr',
118             ],
119           },
120         }],
121         ['OS=="win"', {
122           'dependencies': [
123             '../metro_viewer/metro_viewer.gyp:metro_viewer',
124             '../../ipc/ipc.gyp:ipc',         
125           ],
126         }],
127       ],
128     },
129     {
130       'target_name': 'aura_test_support',
131       'type': 'static_library',
132       'dependencies': [
133         '../../skia/skia.gyp:skia',
134         '../../testing/gtest.gyp:gtest',
135         '../ui.gyp:ui',
136         '../ui.gyp:ui_test_support',
137         'aura',
138         'aura_test_support_pak',
139       ],
140       'include_dirs': [
141         '..',
142       ],
143       'sources': [
144         'test/aura_test_base.cc',
145         'test/aura_test_base.h',
146         'test/aura_test_helper.cc',
147         'test/aura_test_helper.h',
148         'test/event_generator.cc',
149         'test/event_generator.h',
150         'test/test_activation_client.cc',
151         'test/test_activation_client.h',
152         'test/test_aura_initializer.cc',
153         'test/test_aura_initializer.h',
154         'test/test_event_handler.cc',
155         'test/test_event_handler.h',
156         'test/test_screen.cc',
157         'test/test_screen.h',
158         'test/test_stacking_client.cc',
159         'test/test_stacking_client.h',
160         'test/test_windows.cc',
161         'test/test_windows.h',
162         'test/test_window_delegate.cc',
163         'test/test_window_delegate.h',
164         'test/window_test_api.cc',
165         'test/window_test_api.h',
166       ],
167       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
168       'msvs_disabled_warnings': [ 4267, ],
169     },
170     {
171       # We build a minimal set of resources required for aura_test_support.
172       'target_name': 'aura_test_support_pak',
173       'type': 'none',
174       'dependencies': [
175         '<(DEPTH)/ui/ui.gyp:ui_resources',
176       ],
177       'variables': {
178         'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
179       },
180       'actions': [
181         {
182           'action_name': 'repack_aura_test_support_pack',
183           'variables': {
184             'pak_inputs': [
185               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
186             ],
187           },
188           'inputs': [
189             '<(repack_path)',
190             '<@(pak_inputs)',
191           ],
192           'outputs': [
193             '<(PRODUCT_DIR)/aura_test_support_resources.pak',
194           ],
195           'action': ['python', '<(repack_path)', '<@(_outputs)',
196                      '<@(pak_inputs)'],
197         },
198       ],
199     },
200     {
201       'target_name': 'aura_demo',
202       'type': 'executable',
203       'dependencies': [
204         '../../base/base.gyp:base',
205         '../../base/base.gyp:base_i18n',
206         '../../skia/skia.gyp:skia',
207         '../../third_party/icu/icu.gyp:icui18n',
208         '../../third_party/icu/icu.gyp:icuuc',
209         '../compositor/compositor.gyp:compositor',
210         '../compositor/compositor.gyp:compositor_test_support',
211         '../ui.gyp:ui',
212         '../ui.gyp:ui_resources',
213         '../../ipc/ipc.gyp:ipc',
214         'aura',
215         'aura_test_support',
216       ],
217       'include_dirs': [
218         '..',
219       ],
220       'sources': [
221         'demo/demo_main.cc',
222       ],
223     },
224     {
225       'target_name': 'aura_bench',
226       'type': 'executable',
227       'dependencies': [
228         '../../base/base.gyp:base',
229         '../../base/base.gyp:base_i18n',
230         '../../skia/skia.gyp:skia',
231         '../../third_party/icu/icu.gyp:icui18n',
232         '../../third_party/icu/icu.gyp:icuuc',
233         '../compositor/compositor.gyp:compositor',
234         '../compositor/compositor.gyp:compositor_test_support',
235         '../ui.gyp:ui',
236         '../ui.gyp:ui_resources',
237         'aura',
238         'aura_test_support',
239       ],
240       'include_dirs': [
241         '..',
242       ],
243       'sources': [
244         'bench/bench_main.cc',
245       ],
246     },
247     {
248       'target_name': 'aura_unittests',
249       'type': 'executable',
250       'dependencies': [
251         '../../base/base.gyp:test_support_base',
252         '../../chrome/chrome_resources.gyp:packed_resources',
253         '../../skia/skia.gyp:skia',
254         '../../testing/gtest.gyp:gtest',
255         '../compositor/compositor.gyp:compositor_test_support',
256         '../compositor/compositor.gyp:compositor',
257         '../gl/gl.gyp:gl',
258         '../ui.gyp:ui',
259         '../ui.gyp:ui_resources',
260         '../ui.gyp:ui_test_support',
261         'aura_test_support',
262         'aura',
263       ],
264       'include_dirs': [
265         '..',
266       ],
267       'sources': [
268         'gestures/gesture_recognizer_unittest.cc',
269         'test/run_all_unittests.cc',
270         'test/test_suite.cc',
271         'test/test_suite.h',
272         'root_window_unittest.cc',
273         'window_unittest.cc',
274       ],
275       'conditions': [
276         # osmesa GL implementation is used on linux.
277         ['OS=="linux"', {
278           'dependencies': [
279             '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
280           ],
281         }],
282       ],
283     },
284   ],