Get foreground tab on Android
[chromium-blink-merge.git] / ui / aura / aura.gyp
blobb0a7335f732619ec8850f08a68fe7d6e51ed8117
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         '../../cc/cc.gyp:cc',
18         '../../gpu/gpu.gyp:gpu',
19         '../../skia/skia.gyp:skia',
20         '../compositor/compositor.gyp:compositor',
21         '../events/events.gyp:events',
22         '../events/events.gyp:events_base',
23         '../gfx/gfx.gyp:gfx',
24         '../resources/ui_resources.gyp:ui_resources',
25         '../ui.gyp:ui',
26       ],
27       'defines': [
28         'AURA_IMPLEMENTATION',
29       ],
30       'sources': [
31         'client/activation_change_observer.h',
32         'client/activation_change_observer.cc',
33         'client/activation_client.cc',
34         'client/activation_client.h',
35         'client/activation_delegate.cc',
36         'client/activation_delegate.h',
37         'client/animation_host.cc',
38         'client/animation_host.h',
39         'client/aura_constants.cc',
40         'client/aura_constants.h',
41         'client/capture_client.cc',
42         'client/capture_client.h',
43         'client/capture_delegate.h',
44         'client/cursor_client.cc',
45         'client/cursor_client.h',
46         'client/cursor_client_observer.h',
47         'client/cursor_client_observer.cc',
48         'client/default_activation_client.cc',
49         'client/default_activation_client.h',
50         'client/default_capture_client.cc',
51         'client/default_capture_client.h',
52         'client/dispatcher_client.cc',
53         'client/dispatcher_client.h',
54         'client/drag_drop_client.cc',
55         'client/drag_drop_client.h',
56         'client/drag_drop_delegate.cc',
57         'client/drag_drop_delegate.h',
58         'client/event_client.cc',
59         'client/event_client.h',
60         'client/focus_change_observer.cc',
61         'client/focus_change_observer.h',
62         'client/focus_client.cc',
63         'client/focus_client.h',
64         'client/screen_position_client.cc',
65         'client/screen_position_client.h',
66         'client/tooltip_client.cc',
67         'client/tooltip_client.h',
68         'client/user_action_client.cc',
69         'client/user_action_client.h',
70         'client/visibility_client.cc',
71         'client/visibility_client.h',
72         'client/window_move_client.cc',
73         'client/window_move_client.h',
74         'client/window_tree_client.cc',
75         'client/window_tree_client.h',
76         'client/window_types.h',
77         'device_list_updater_aurax11.cc',
78         'device_list_updater_aurax11.h',
79         'dispatcher_win.cc',
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_root_window_host_win.cc',
90         'remote_root_window_host_win.h',
91         'root_window_host_ozone.cc',
92         'root_window_host_ozone.h',
93         'root_window_host_win.cc',
94         'root_window_host_win.h',
95         'root_window_host_x11.cc',
96         'root_window_host_x11.h',
97         'root_window_transformer.h',
98         'root_window.cc',
99         'root_window.h',
100         'window.cc',
101         'window.h',
102         'window_delegate.h',
103         'window_observer.h',
104         'window_tracker.cc',
105         'window_tracker.h',
106         'window_tree_host.cc',
107         'window_tree_host.h',
108         'window_tree_host_delegate.h',
109       ],
110       'conditions': [
111         ['use_x11==1', {
112           'link_settings': {
113             'libraries': [
114               '-lX11',
115               '-lXi',
116               '-lXfixes',
117               '-lXrandr',
118             ],
119           },
120         }],
121         ['OS=="win"', {
122           'dependencies': [
123             '../metro_viewer/metro_viewer.gyp:metro_viewer_messages',
124             '../../ipc/ipc.gyp:ipc',
125           ],
126           'sources!': [
127             'input_state_lookup.cc',
128           ],
129         }],
130         ['use_ozone==1', {
131           'dependencies': [
132             '../ozone/ozone.gyp:ozone',
133           ],
134         }],
135       ],
136     },
137     {
138       'target_name': 'aura_test_support',
139       'type': 'static_library',
140       'dependencies': [
141         '../../skia/skia.gyp:skia',
142         '../../testing/gtest.gyp:gtest',
143         '../compositor/compositor.gyp:compositor_test_support',
144         '../events/events.gyp:events',
145         '../events/events.gyp:events_base',
146         '../gfx/gfx.gyp:gfx',
147         '../ui.gyp:ui',
148         '../ui_unittests.gyp:ui_test_support',
149         'aura',
150         'aura_test_support_pak',
151       ],
152       'include_dirs': [
153         '..',
154       ],
155       'sources': [
156         'test/aura_test_base.cc',
157         'test/aura_test_base.h',
158         'test/aura_test_helper.cc',
159         'test/aura_test_helper.h',
160         'test/env_test_helper.h',
161         'test/event_generator.cc',
162         'test/event_generator.h',
163         'test/test_aura_initializer.cc',
164         'test/test_aura_initializer.h',
165         'test/test_cursor_client.cc',
166         'test/test_cursor_client.h',
167         'test/test_event_handler.cc',
168         'test/test_event_handler.h',
169         'test/test_focus_client.cc',
170         'test/test_focus_client.h',
171         'test/test_screen.cc',
172         'test/test_screen.h',
173         'test/test_window_tree_client.cc',
174         'test/test_window_tree_client.h',
175         'test/test_windows.cc',
176         'test/test_windows.h',
177         'test/test_window_delegate.cc',
178         'test/test_window_delegate.h',
179         'test/ui_controls_factory_aura.h',
180         'test/ui_controls_factory_aurawin.cc',
181         'test/ui_controls_factory_aurax11.cc',
182         'test/window_test_api.cc',
183         'test/window_test_api.h',
184       ],
185       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
186       'msvs_disabled_warnings': [ 4267, ],
187     },
188     {
189       # We build a minimal set of resources required for aura_test_support.
190       'target_name': 'aura_test_support_pak',
191       'type': 'none',
192       'dependencies': [
193         '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
194         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
195       ],
196       'variables': {
197         'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
198       },
199       'actions': [
200         {
201           'action_name': 'repack_aura_test_support_pack',
202           'variables': {
203             'pak_inputs': [
204               '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
205               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
206             ],
207           },
208           'inputs': [
209             '<(repack_path)',
210             '<@(pak_inputs)',
211           ],
212           'outputs': [
213             '<(PRODUCT_DIR)/aura_test_support_resources.pak',
214           ],
215           'action': ['python', '<(repack_path)', '<@(_outputs)',
216                      '<@(pak_inputs)'],
217         },
218       ],
219     },
220     {
221       'target_name': 'aura_demo',
222       'type': 'executable',
223       'dependencies': [
224         '../../base/base.gyp:base',
225         '../../base/base.gyp:base_i18n',
226         '../../skia/skia.gyp:skia',
227         '../../third_party/icu/icu.gyp:icui18n',
228         '../../third_party/icu/icu.gyp:icuuc',
229         '../compositor/compositor.gyp:compositor',
230         '../compositor/compositor.gyp:compositor_test_support',
231         '../events/events.gyp:events',
232         '../gfx/gfx.gyp:gfx',
233         '../resources/ui_resources.gyp:ui_resources',
234         '../ui.gyp:ui',
235         'aura',
236         'aura_test_support',
237       ],
238       'include_dirs': [
239         '..',
240       ],
241       'sources': [
242         'demo/demo_main.cc',
243       ],
244     },
245     {
246       'target_name': 'aura_bench',
247       'type': 'executable',
248       'dependencies': [
249         '../../base/base.gyp:base',
250         '../../base/base.gyp:base_i18n',
251         '../../skia/skia.gyp:skia',
252         '../../third_party/icu/icu.gyp:icui18n',
253         '../../third_party/icu/icu.gyp:icuuc',
254         '../compositor/compositor.gyp:compositor',
255         '../compositor/compositor.gyp:compositor_test_support',
256         '../events/events.gyp:events',
257         '../gfx/gfx.gyp:gfx',
258         '../resources/ui_resources.gyp:ui_resources',
259         '../ui.gyp:ui',
260         'aura',
261         'aura_test_support',
262       ],
263       'include_dirs': [
264         '..',
265       ],
266       'sources': [
267         'bench/bench_main.cc',
268       ],
269     },
270     {
271       'target_name': 'aura_unittests',
272       'type': 'executable',
273       'dependencies': [
274         '../../base/base.gyp:test_support_base',
275         '../../chrome/chrome_resources.gyp:packed_resources',
276         '../../skia/skia.gyp:skia',
277         '../../testing/gtest.gyp:gtest',
278         '../compositor/compositor.gyp:compositor',
279         '../compositor/compositor.gyp:compositor_test_support',
280         '../events/events.gyp:events',
281         '../events/events.gyp:events_base',
282         '../gfx/gfx.gyp:gfx',
283         '../gl/gl.gyp:gl',
284         '../resources/ui_resources.gyp:ui_resources',
285         '../ui.gyp:ui',
286         '../ui_unittests.gyp:ui_test_support',
287         'aura_test_support',
288         'aura',
289       ],
290       'include_dirs': [
291         '..',
292       ],
293       'sources': [
294         'gestures/gesture_recognizer_unittest.cc',
295         'root_window_host_x11_unittest.cc',
296         'root_window_unittest.cc',
297         'test/run_all_unittests.cc',
298         'test/test_suite.cc',
299         'test/test_suite.h',
300         'window_unittest.cc',
301       ],
302       'conditions': [
303         # osmesa GL implementation is used on linux.
304         ['OS=="linux"', {
305           'dependencies': [
306             '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
307           ],
308         }],
309         ['OS=="linux" and linux_use_tcmalloc==1', {
310           'dependencies': [
311            # See http://crbug.com/162998#c4 for why this is needed.
312             '../../base/allocator/allocator.gyp:allocator',
313           ],
314         }],
315       ],
316     },
317   ],