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