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