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