MD Downloads: prevent search text from overlapping with the cancel search (X)
[chromium-blink-merge.git] / ui / aura / aura.gyp
blobefaa46368ca11f50adfcaefda02822c41eb007a7
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       # GN version: //ui/aura
12       'target_name': 'aura',
13       'type': '<(component)',
14       'dependencies': [
15         '../../base/base.gyp:base',
16         '../../base/base.gyp:base_i18n',
17         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
18         '../../skia/skia.gyp:skia',
19         '../base/ime/ui_base_ime.gyp:ui_base_ime',
20         '../base/ui_base.gyp:ui_base',
21         '../compositor/compositor.gyp:compositor',
22         '../events/events.gyp:events',
23         '../events/events.gyp:events_base',
24         '../events/platform/events_platform.gyp:events_platform',
25         '../gfx/gfx.gyp:gfx',
26         '../gfx/gfx.gyp:gfx_geometry',
27       ],
28       'defines': [
29         'AURA_IMPLEMENTATION',
30       ],
31       'sources': [
32         '../wm/public/activation_change_observer.cc',
33         '../wm/public/activation_change_observer.h',
34         '../wm/public/activation_client.cc',
35         '../wm/public/activation_client.h',
36         '../wm/public/activation_delegate.cc',
37         '../wm/public/activation_delegate.h',
38         '../wm/public/animation_host.cc',
39         '../wm/public/animation_host.h',
40         '../wm/public/dispatcher_client.cc',
41         '../wm/public/dispatcher_client.h',
42         '../wm/public/drag_drop_client.cc',
43         '../wm/public/drag_drop_client.h',
44         '../wm/public/drag_drop_delegate.cc',
45         '../wm/public/drag_drop_delegate.h',
46         '../wm/public/scoped_drag_drop_disabler.cc',
47         '../wm/public/scoped_drag_drop_disabler.h',
48         '../wm/public/scoped_tooltip_disabler.cc',
49         '../wm/public/scoped_tooltip_disabler.h',
50         '../wm/public/tooltip_client.cc',
51         '../wm/public/tooltip_client.h',
52         '../wm/public/transient_window_client.cc',
53         '../wm/public/transient_window_client.h',
54         '../wm/public/window_move_client.cc',
55         '../wm/public/window_move_client.h',
56         '../wm/public/window_types.h',
57         'client/aura_constants.cc',
58         'client/aura_constants.h',
59         'client/capture_client.cc',
60         'client/capture_client.h',
61         'client/capture_delegate.h',
62         'client/cursor_client.cc',
63         'client/cursor_client.h',
64         'client/cursor_client_observer.cc',
65         'client/cursor_client_observer.h',
66         'client/default_capture_client.cc',
67         'client/default_capture_client.h',
68         'client/event_client.cc',
69         'client/event_client.h',
70         'client/focus_change_observer.cc',
71         'client/focus_change_observer.h',
72         'client/focus_client.cc',
73         'client/focus_client.h',
74         'client/screen_position_client.cc',
75         'client/screen_position_client.h',
76         'client/visibility_client.cc',
77         'client/visibility_client.h',
78         'client/window_stacking_client.cc',
79         'client/window_stacking_client.h',
80         'client/window_tree_client.cc',
81         'client/window_tree_client.h',
82         'env.cc',
83         'env.h',
84         'env_observer.h',
85         'input_state_lookup.cc',
86         'input_state_lookup.h',
87         'input_state_lookup_win.cc',
88         'input_state_lookup_win.h',
89         'layout_manager.cc',
90         'layout_manager.h',
91         'remote_window_tree_host_win.cc',
92         'remote_window_tree_host_win.h',
93         'scoped_window_targeter.cc',
94         'scoped_window_targeter.h',
95         'window.cc',
96         'window.h',
97         'window_delegate.h',
98         'window_event_dispatcher.cc',
99         'window_event_dispatcher.h',
100         'window_observer.cc',
101         'window_observer.h',
102         'window_targeter.cc',
103         'window_targeter.h',
104         'window_tracker.cc',
105         'window_tracker.h',
106         'window_tree_host.cc',
107         'window_tree_host.h',
108         'window_tree_host_mac.h',
109         'window_tree_host_mac.mm',
110         'window_tree_host_observer.h',
111         'window_tree_host_ozone.cc',
112         'window_tree_host_ozone.h',
113         'window_tree_host_win.cc',
114         'window_tree_host_win.h',
115         'window_tree_host_x11.cc',
116         'window_tree_host_x11.h',
117       ],
118       'conditions': [
119         ['use_x11==1', {
120           'dependencies': [
121             '../../build/linux/system.gyp:x11',
122             '../../build/linux/system.gyp:xrandr',
123             '../../build/linux/system.gyp:xi',
124             '../events/devices/events_devices.gyp:events_devices',
125             '../events/platform/x11/x11_events_platform.gyp:x11_events_platform',
126             '../gfx/x/gfx_x11.gyp:gfx_x11',
127           ],
128         }],
129         ['OS=="win"', {
130           'dependencies': [
131             '../metro_viewer/metro_viewer.gyp:metro_viewer_messages',
132             '../platform_window/win/win_window.gyp:win_window',
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             '../ozone/ozone.gyp:ozone_base',
143           ],
144         }],
145       ],
146     },
147     {
148       # GN version: //ui/aura:test_support
149       'target_name': 'aura_test_support',
150       'type': 'static_library',
151       'dependencies': [
152         '../../skia/skia.gyp:skia',
153         '../../testing/gtest.gyp:gtest',
154         '../base/ime/ui_base_ime.gyp:ui_base_ime',
155         '../base/ui_base.gyp:ui_base',
156         '../base/ui_base.gyp:ui_base_test_support',
157         '../compositor/compositor.gyp:compositor_test_support',
158         '../events/events.gyp:events',
159         '../events/events.gyp:events_base',
160         '../events/events.gyp:events_test_support',
161         '../gfx/gfx.gyp:gfx',
162         '../gfx/gfx.gyp:gfx_geometry',
163         'aura',
164       ],
165       'include_dirs': [
166         '..',
167       ],
168       'sources': [
169         'test/aura_test_base.cc',
170         'test/aura_test_base.h',
171         'test/aura_test_helper.cc',
172         'test/aura_test_helper.h',
173         'test/aura_test_utils.cc',
174         'test/aura_test_utils.h',
175         'test/env_test_helper.h',
176         'test/event_generator_delegate_aura.cc',
177         'test/event_generator_delegate_aura.h',
178         'test/test_cursor_client.cc',
179         'test/test_cursor_client.h',
180         'test/test_focus_client.cc',
181         'test/test_focus_client.h',
182         'test/test_screen.cc',
183         'test/test_screen.h',
184         'test/test_window_delegate.cc',
185         'test/test_window_delegate.h',
186         'test/test_window_tree_client.cc',
187         'test/test_window_tree_client.h',
188         'test/test_windows.cc',
189         'test/test_windows.h',
190         'test/ui_controls_factory_aura.h',
191         'test/ui_controls_factory_aurawin.cc',
192         'test/ui_controls_factory_aurax11.cc',
193         'test/ui_controls_factory_ozone.cc',
194         'test/window_event_dispatcher_test_api.cc',
195         'test/window_event_dispatcher_test_api.h',
196         'test/window_test_api.cc',
197         'test/window_test_api.h',
198         'test/x11_event_sender.cc',
199         'test/x11_event_sender.h',
200       ],
201       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
202       'msvs_disabled_warnings': [ 4267, ],
203     },
204     {
205       'target_name': 'aura_demo',
206       'type': 'executable',
207       'dependencies': [
208         '../../base/base.gyp:base',
209         '../../base/base.gyp:base_i18n',
210         '../../skia/skia.gyp:skia',
211         '../../third_party/icu/icu.gyp:icui18n',
212         '../../third_party/icu/icu.gyp:icuuc',
213         '../base/ui_base.gyp:ui_base',
214         '../compositor/compositor.gyp:compositor',
215         '../compositor/compositor.gyp:compositor_test_support',
216         '../events/events.gyp:events',
217         '../gfx/gfx.gyp:gfx',
218         '../gfx/gfx.gyp:gfx_geometry',
219         'aura',
220         'aura_test_support',
221       ],
222       'include_dirs': [
223         '..',
224       ],
225       'sources': [
226         'demo/demo_main.cc',
227       ],
228       'conditions': [
229         ['use_x11==1', {
230           'dependencies': [
231             '../gfx/x/gfx_x11.gyp:gfx_x11',
232           ],
233         }],
234       ]
235     },
236     {
237       'target_name': 'aura_bench',
238       'type': 'executable',
239       'dependencies': [
240         '../../base/base.gyp:base',
241         '../../base/base.gyp:base_i18n',
242         '../../cc/cc.gyp:cc',
243         '../../gpu/gpu.gyp:gles2_implementation',
244         '../../skia/skia.gyp:skia',
245         '../../third_party/icu/icu.gyp:icui18n',
246         '../../third_party/icu/icu.gyp:icuuc',
247         '../base/ui_base.gyp:ui_base',
248         '../compositor/compositor.gyp:compositor',
249         '../compositor/compositor.gyp:compositor_test_support',
250         '../events/events.gyp:events',
251         '../gfx/gfx.gyp:gfx',
252         '../gfx/gfx.gyp:gfx_geometry',
253         'aura',
254         'aura_test_support',
255       ],
256       'include_dirs': [
257         '..',
258       ],
259       'sources': [
260         'bench/bench_main.cc',
261       ],
262       'conditions': [
263         ['use_x11==1', {
264           'dependencies': [
265             '../gfx/x/gfx_x11.gyp:gfx_x11',
266           ],
267         }],
268       ]
269     },
270     {
271       'target_name': 'aura_unittests',
272       'type': 'executable',
273       'dependencies': [
274         '../../base/base.gyp:test_support_base',
275         '../../skia/skia.gyp:skia',
276         '../../testing/gtest.gyp:gtest',
277         '../base/ime/ui_base_ime.gyp:ui_base_ime',
278         '../base/ui_base.gyp:ui_base',
279         '../base/ui_base.gyp:ui_base_test_support',
280         '../compositor/compositor.gyp:compositor',
281         '../compositor/compositor.gyp:compositor_test_support',
282         '../events/events.gyp:events',
283         '../events/events.gyp:events_base',
284         '../events/events.gyp:gesture_detection',
285         '../gfx/gfx.gyp:gfx',
286         '../gfx/gfx.gyp:gfx_geometry',
287         '../gl/gl.gyp:gl',
288         'aura_test_support',
289         'aura',
290       ],
291       'include_dirs': [
292         '..',
293       ],
294       'sources': [
295         'gestures/gesture_recognizer_unittest.cc',
296         'test/run_all_unittests.cc',
297         'window_event_dispatcher_unittest.cc',
298         'window_targeter_unittest.cc',
299         'window_unittest.cc',
300       ],
301       'conditions': [
302         # osmesa GL implementation is used on linux.
303         ['OS=="linux"', {
304           'dependencies': [
305             '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
306           ],
307         }],
308         ['OS=="linux" and use_allocator!="none"', {
309           'dependencies': [
310            # See http://crbug.com/162998#c4 for why this is needed.
311             '../../base/allocator/allocator.gyp:allocator',
312           ],
313         }],
314       ],
315     },
316   ],
317   'conditions': [
318     ['test_isolation_mode != "noop"', {
319       'targets': [
320         {
321           'target_name': 'aura_unittests_run',
322           'type': 'none',
323           'dependencies': [
324             'aura_unittests',
325           ],
326           'includes': [
327             '../../build/isolate.gypi',
328           ],
329           'sources': [
330             'aura_unittests.isolate',
331           ],
332           'conditions': [
333             ['use_x11 == 1', {
334               'dependencies': [
335                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
336               ],
337             }],
338           ],
339         },
340       ],
341     }],
342   ],