NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / ui / aura / aura.gyp
blob9b37c6e77867ddc43c9c6c50e2eab01efad0f08e
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         'env.cc',
84         'env.h',
85         'env_observer.h',
86         'input_state_lookup.cc',
87         'input_state_lookup.h',
88         'input_state_lookup_win.cc',
89         'input_state_lookup_win.h',
90         'layout_manager.cc',
91         'layout_manager.h',
92         'remote_window_tree_host_win.cc',
93         'remote_window_tree_host_win.h',
94         'window_tree_host_mac.mm',
95         'window_tree_host_mac.h',
96         'window_tree_host_ozone.cc',
97         'window_tree_host_ozone.h',
98         'window_tree_host_win.cc',
99         'window_tree_host_win.h',
100         'window_tree_host_x11.cc',
101         'window_tree_host_x11.h',
102         'root_window_transformer.h',
103         'root_window.cc',
104         'root_window.h',
105         'scoped_window_targeter.cc',
106         'scoped_window_targeter.h',
107         'window.cc',
108         'window.h',
109         'window_targeter.cc',
110         'window_targeter.h',
111         'window_delegate.h',
112         'window_layer_type.h',
113         'window_observer.h',
114         'window_tracker.cc',
115         'window_tracker.h',
116         'window_tree_host.cc',
117         'window_tree_host.h',
118         'window_tree_host_delegate.h',
119       ],
120       'conditions': [
121         ['use_x11==1', {
122           'dependencies': [
123             '../../build/linux/system.gyp:x11',
124             '../../build/linux/system.gyp:xfixes',
125             '../../build/linux/system.gyp:xrandr',
126             '../../build/linux/system.gyp:xi',
127           ],
128         }],
129         ['OS=="win"', {
130           'dependencies': [
131             '../metro_viewer/metro_viewer.gyp:metro_viewer_messages',
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           ],
142         }],
143       ],
144     },
145     {
146       'target_name': 'aura_test_support',
147       'type': 'static_library',
148       'dependencies': [
149         '../../skia/skia.gyp:skia',
150         '../../testing/gtest.gyp:gtest',
151         '../compositor/compositor.gyp:compositor_test_support',
152         '../events/events.gyp:events',
153         '../events/events.gyp:events_base',
154         '../events/events.gyp:events_test_support',
155         '../gfx/gfx.gyp:gfx',
156         '../gfx/gfx.gyp:gfx_geometry',
157         '../ui.gyp:ui',
158         '../ui_unittests.gyp:ui_test_support',
159         'aura',
160       ],
161       'include_dirs': [
162         '..',
163       ],
164       'sources': [
165         'test/aura_test_base.cc',
166         'test/aura_test_base.h',
167         'test/aura_test_helper.cc',
168         'test/aura_test_helper.h',
169         'test/env_test_helper.h',
170         'test/event_generator.cc',
171         'test/event_generator.h',
172         'test/test_cursor_client.cc',
173         'test/test_cursor_client.h',
174         'test/test_event_handler.cc',
175         'test/test_event_handler.h',
176         'test/test_focus_client.cc',
177         'test/test_focus_client.h',
178         'test/test_screen.cc',
179         'test/test_screen.h',
180         'test/test_window_tree_client.cc',
181         'test/test_window_tree_client.h',
182         'test/test_windows.cc',
183         'test/test_windows.h',
184         'test/test_window_delegate.cc',
185         'test/test_window_delegate.h',
186         'test/ui_controls_factory_aura.h',
187         'test/ui_controls_factory_aurawin.cc',
188         'test/ui_controls_factory_aurax11.cc',
189         'test/window_test_api.cc',
190         'test/window_test_api.h',
191       ],
192       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
193       'msvs_disabled_warnings': [ 4267, ],
194     },
195     {
196       'target_name': 'aura_demo',
197       'type': 'executable',
198       'dependencies': [
199         '../../base/base.gyp:base',
200         '../../base/base.gyp:base_i18n',
201         '../../skia/skia.gyp:skia',
202         '../../third_party/icu/icu.gyp:icui18n',
203         '../../third_party/icu/icu.gyp:icuuc',
204         '../compositor/compositor.gyp:compositor',
205         '../compositor/compositor.gyp:compositor_test_support',
206         '../events/events.gyp:events',
207         '../gfx/gfx.gyp:gfx',
208         '../gfx/gfx.gyp:gfx_geometry',
209         '../ui.gyp:ui',
210         'aura',
211         'aura_test_support',
212       ],
213       'include_dirs': [
214         '..',
215       ],
216       'sources': [
217         'demo/demo_main.cc',
218       ],
219     },
220     {
221       'target_name': 'aura_bench',
222       'type': 'executable',
223       'dependencies': [
224         '../../base/base.gyp:base',
225         '../../base/base.gyp:base_i18n',
226         '../../cc/cc.gyp:cc',
227         '../../skia/skia.gyp:skia',
228         '../../third_party/icu/icu.gyp:icui18n',
229         '../../third_party/icu/icu.gyp:icuuc',
230         '../compositor/compositor.gyp:compositor',
231         '../compositor/compositor.gyp:compositor_test_support',
232         '../events/events.gyp:events',
233         '../gfx/gfx.gyp:gfx',
234         '../gfx/gfx.gyp:gfx_geometry',
235         '../ui.gyp:ui',
236         'aura',
237         'aura_test_support',
238       ],
239       'include_dirs': [
240         '..',
241       ],
242       'sources': [
243         'bench/bench_main.cc',
244       ],
245     },
246     {
247       'target_name': 'aura_unittests',
248       'type': 'executable',
249       'dependencies': [
250         '../../base/base.gyp:test_support_base',
251         '../../skia/skia.gyp:skia',
252         '../../testing/gtest.gyp:gtest',
253         '../compositor/compositor.gyp:compositor',
254         '../compositor/compositor.gyp:compositor_test_support',
255         '../events/events.gyp:events',
256         '../events/events.gyp:events_base',
257         '../gfx/gfx.gyp:gfx',
258         '../gfx/gfx.gyp:gfx_geometry',
259         '../gl/gl.gyp:gl',
260         '../ui.gyp:ui',
261         '../ui_unittests.gyp:ui_test_support',
262         'aura_test_support',
263         'aura',
264       ],
265       'include_dirs': [
266         '..',
267       ],
268       'sources': [
269         'gestures/gesture_recognizer_unittest.cc',
270         'window_tree_host_x11_unittest.cc',
271         'root_window_unittest.cc',
272         'test/run_all_unittests.cc',
273         'window_targeter_unittest.cc',
274         'window_unittest.cc',
275       ],
276       'conditions': [
277         # osmesa GL implementation is used on linux.
278         ['OS=="linux"', {
279           'dependencies': [
280             '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
281           ],
282         }],
283         ['OS=="linux" and linux_use_tcmalloc==1', {
284           'dependencies': [
285            # See http://crbug.com/162998#c4 for why this is needed.
286             '../../base/allocator/allocator.gyp:allocator',
287           ],
288         }],
289       ],
290     },
291   ],