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