testOobeLocalization implementation
[chromium-blink-merge.git] / ui / aura / aura.gyp
blob16326095494f5f41db657237a374f541c655b5bd
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         '../../gpu/gpu.gyp:gpu',
18         '../../skia/skia.gyp:skia',
19         '../compositor/compositor.gyp:compositor',
20         '../events/events.gyp:events',
21         '../events/events.gyp:events_base',
22         '../gfx/gfx.gyp:gfx',
23         '../gfx/gfx.gyp:gfx_geometry',
24         '../ui.gyp:ui',
25       ],
26       'defines': [
27         'AURA_IMPLEMENTATION',
28       ],
29       'sources': [
30         'client/activation_change_observer.h',
31         'client/activation_change_observer.cc',
32         'client/activation_client.cc',
33         'client/activation_client.h',
34         'client/activation_delegate.cc',
35         'client/activation_delegate.h',
36         'client/animation_host.cc',
37         'client/animation_host.h',
38         'client/aura_constants.cc',
39         'client/aura_constants.h',
40         'client/capture_client.cc',
41         'client/capture_client.h',
42         'client/capture_delegate.h',
43         'client/cursor_client.cc',
44         'client/cursor_client.h',
45         'client/cursor_client_observer.h',
46         'client/cursor_client_observer.cc',
47         'client/default_activation_client.cc',
48         'client/default_activation_client.h',
49         'client/default_capture_client.cc',
50         'client/default_capture_client.h',
51         'client/dispatcher_client.cc',
52         'client/dispatcher_client.h',
53         'client/drag_drop_client.cc',
54         'client/drag_drop_client.h',
55         'client/drag_drop_delegate.cc',
56         'client/drag_drop_delegate.h',
57         'client/event_client.cc',
58         'client/event_client.h',
59         'client/focus_change_observer.cc',
60         'client/focus_change_observer.h',
61         'client/focus_client.cc',
62         'client/focus_client.h',
63         'client/scoped_tooltip_disabler.cc',
64         'client/scoped_tooltip_disabler.h',
65         'client/screen_position_client.cc',
66         'client/screen_position_client.h',
67         'client/tooltip_client.cc',
68         'client/tooltip_client.h',
69         'client/transient_window_client.cc',
70         'client/transient_window_client.h',
71         'client/user_action_client.cc',
72         'client/user_action_client.h',
73         'client/visibility_client.cc',
74         'client/visibility_client.h',
75         'client/window_move_client.cc',
76         'client/window_move_client.h',
77         'client/window_stacking_client.cc',
78         'client/window_stacking_client.h',
79         'client/window_tree_client.cc',
80         'client/window_tree_client.h',
81         'device_list_updater_aurax11.cc',
82         'device_list_updater_aurax11.h',
83         'dispatcher_win.cc',
84         'env.cc',
85         'env.h',
86         'env_observer.h',
87         'input_state_lookup.cc',
88         'input_state_lookup.h',
89         'input_state_lookup_win.cc',
90         'input_state_lookup_win.h',
91         'layout_manager.cc',
92         'layout_manager.h',
93         'remote_root_window_host_win.cc',
94         'remote_root_window_host_win.h',
95         'root_window_host_mac.mm',
96         'root_window_host_mac.h',
97         'root_window_host_ozone.cc',
98         'root_window_host_ozone.h',
99         'root_window_host_win.cc',
100         'root_window_host_win.h',
101         'root_window_host_x11.cc',
102         'root_window_host_x11.h',
103         'root_window_transformer.h',
104         'root_window.cc',
105         'root_window.h',
106         'window.cc',
107         'window.h',
108         'window_targeter.cc',
109         'window_targeter.h',
110         'window_delegate.h',
111         'window_layer_type.h',
112         'window_observer.h',
113         'window_tracker.cc',
114         'window_tracker.h',
115         'window_tree_host.cc',
116         'window_tree_host.h',
117         'window_tree_host_delegate.h',
118       ],
119       'conditions': [
120         ['use_x11==1', {
121           'link_settings': {
122             'libraries': [
123               '-lX11',
124               '-lXi',
125               '-lXfixes',
126               '-lXrandr',
127             ],
128           },
129         }],
130         ['OS=="win"', {
131           'dependencies': [
132             '../metro_viewer/metro_viewer.gyp:metro_viewer_messages',
133             '../../ipc/ipc.gyp:ipc',
134           ],
135           'sources!': [
136             'input_state_lookup.cc',
137           ],
138         }],
139         ['use_ozone==1', {
140           'dependencies': [
141             '../ozone/ozone.gyp:ozone',
142           ],
143         }],
144       ],
145     },
146     {
147       'target_name': 'aura_test_support',
148       'type': 'static_library',
149       'dependencies': [
150         '../../skia/skia.gyp:skia',
151         '../../testing/gtest.gyp:gtest',
152         '../compositor/compositor.gyp:compositor_test_support',
153         '../events/events.gyp:events',
154         '../events/events.gyp:events_base',
155         '../events/events.gyp:events_test_support',
156         '../gfx/gfx.gyp:gfx',
157         '../gfx/gfx.gyp:gfx_geometry',
158         '../ui.gyp:ui',
159         '../ui_unittests.gyp:ui_test_support',
160         'aura',
161       ],
162       'include_dirs': [
163         '..',
164       ],
165       'sources': [
166         'test/aura_test_base.cc',
167         'test/aura_test_base.h',
168         'test/aura_test_helper.cc',
169         'test/aura_test_helper.h',
170         'test/env_test_helper.h',
171         'test/event_generator.cc',
172         'test/event_generator.h',
173         'test/test_cursor_client.cc',
174         'test/test_cursor_client.h',
175         'test/test_event_handler.cc',
176         'test/test_event_handler.h',
177         'test/test_focus_client.cc',
178         'test/test_focus_client.h',
179         'test/test_screen.cc',
180         'test/test_screen.h',
181         'test/test_window_tree_client.cc',
182         'test/test_window_tree_client.h',
183         'test/test_windows.cc',
184         'test/test_windows.h',
185         'test/test_window_delegate.cc',
186         'test/test_window_delegate.h',
187         'test/ui_controls_factory_aura.h',
188         'test/ui_controls_factory_aurawin.cc',
189         'test/ui_controls_factory_aurax11.cc',
190         'test/window_test_api.cc',
191         'test/window_test_api.h',
192       ],
193       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
194       'msvs_disabled_warnings': [ 4267, ],
195     },
196     {
197       'target_name': 'aura_demo',
198       'type': 'executable',
199       'dependencies': [
200         '../../base/base.gyp:base',
201         '../../base/base.gyp:base_i18n',
202         '../../skia/skia.gyp:skia',
203         '../../third_party/icu/icu.gyp:icui18n',
204         '../../third_party/icu/icu.gyp:icuuc',
205         '../compositor/compositor.gyp:compositor',
206         '../compositor/compositor.gyp:compositor_test_support',
207         '../events/events.gyp:events',
208         '../gfx/gfx.gyp:gfx',
209         '../gfx/gfx.gyp:gfx_geometry',
210         '../ui.gyp:ui',
211         'aura',
212         'aura_test_support',
213       ],
214       'include_dirs': [
215         '..',
216       ],
217       'sources': [
218         'demo/demo_main.cc',
219       ],
220     },
221     {
222       'target_name': 'aura_bench',
223       'type': 'executable',
224       'dependencies': [
225         '../../base/base.gyp:base',
226         '../../base/base.gyp:base_i18n',
227         '../../cc/cc.gyp:cc',
228         '../../skia/skia.gyp:skia',
229         '../../third_party/icu/icu.gyp:icui18n',
230         '../../third_party/icu/icu.gyp:icuuc',
231         '../compositor/compositor.gyp:compositor',
232         '../compositor/compositor.gyp:compositor_test_support',
233         '../events/events.gyp:events',
234         '../gfx/gfx.gyp:gfx',
235         '../gfx/gfx.gyp:gfx_geometry',
236         '../ui.gyp:ui',
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         '../../skia/skia.gyp:skia',
253         '../../testing/gtest.gyp:gtest',
254         '../compositor/compositor.gyp:compositor',
255         '../compositor/compositor.gyp:compositor_test_support',
256         '../events/events.gyp:events',
257         '../events/events.gyp:events_base',
258         '../gfx/gfx.gyp:gfx',
259         '../gfx/gfx.gyp:gfx_geometry',
260         '../gl/gl.gyp:gl',
261         '../ui.gyp:ui',
262         '../ui_unittests.gyp:ui_test_support',
263         'aura_test_support',
264         'aura',
265       ],
266       'include_dirs': [
267         '..',
268       ],
269       'sources': [
270         'gestures/gesture_recognizer_unittest.cc',
271         'root_window_host_x11_unittest.cc',
272         'root_window_unittest.cc',
273         'test/run_all_unittests.cc',
274         'window_targeter_unittest.cc',
275         'window_unittest.cc',
276       ],
277       'conditions': [
278         # osmesa GL implementation is used on linux.
279         ['OS=="linux"', {
280           'dependencies': [
281             '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
282           ],
283         }],
284         ['OS=="linux" and linux_use_tcmalloc==1', {
285           'dependencies': [
286            # See http://crbug.com/162998#c4 for why this is needed.
287             '../../base/allocator/allocator.gyp:allocator',
288           ],
289         }],
290       ],
291     },
292   ],