Move functions for controlling Caps Lock to CapsLockDelegate from SystemTrayDelegate.
[chromium-blink-merge.git] / ppapi / ppapi_tests.gypi
blobba244c98e1bb6abce76f045ed913bc54d70cc71c
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   'targets': [
7     {
8       'target_name': 'ppapi_tests',
9       'type': 'loadable_module',
10       'include_dirs': [
11         'lib/gl/include',
12       ],
13       'defines': [
14         'GL_GLEXT_PROTOTYPES',
15       ],
16       'sources': [
17         '<@(test_common_source_files)',
18         '<@(test_trusted_source_files)',
19       ],
20       'dependencies': [
21         'ppapi.gyp:ppapi_cpp',
22         'ppapi_internal.gyp:ppapi_shared',
23       ],
24       'copies': [
25         {
26           'destination': '<(PRODUCT_DIR)',
27           'files': [
28             # Keep 'test_case.html.mock-http-headers' with 'test_case.html'.
29             'tests/test_case.html',
30             'tests/test_case.html.mock-http-headers',
31             'tests/test_page.css',
32             'native_client/tests/ppapi_tests/ppapi_nacl_tests_newlib.nmf',
33           ],
34         },
35         {
36           'destination': '<(PRODUCT_DIR)/test_url_loader_data',
37           'files': [
38             'tests/test_url_loader_data/hello.txt',
39           ],
40         },
41       ],
42       'run_as': {
43         'action': [
44           '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
45           '--enable-pepper-testing',
46           '--enable-accelerated-plugins',
47           '--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests',
48           'file://$(ProjectDir)/tests/test_case.html?testcase=',
49         ],
50       },
51       'conditions': [
52         ['OS=="win"', {
53           'defines': [
54             '_CRT_SECURE_NO_DEPRECATE',
55             '_CRT_NONSTDC_NO_WARNINGS',
56             '_CRT_NONSTDC_NO_DEPRECATE',
57             '_SCL_SECURE_NO_DEPRECATE',
58           ],
59         }],
60         ['OS=="mac"', {
61           'mac_bundle': 1,
62           'product_name': 'ppapi_tests',
63           'product_extension': 'plugin',
64         }],
65       ],
66 # TODO(dmichael):  Figure out what is wrong with the script on Windows and add
67 #                  it as an automated action.
68 #      'actions': [
69 #        {
70 #          'action_name': 'generate_ppapi_include_tests',
71 #          'inputs': [],
72 #          'outputs': [
73 #            'tests/test_c_includes.c',
74 #            'tests/test_cc_includes.cc',
75 #          ],
76 #          'action': [
77 #            '<!@(python generate_ppapi_include_tests.py)',
78 #          ],
79 #        },
80 #      ],
81     },
82     {
83       'target_name': 'ppapi_unittest_shared',
84       'type': 'static_library',
85       'dependencies': [
86         'ppapi_proxy',
87         'ppapi_shared',
88         '../base/base.gyp:test_support_base',
89         '../ipc/ipc.gyp:ipc',
90         '../ipc/ipc.gyp:test_support_ipc',
91         '../testing/gmock.gyp:gmock',
92         '../testing/gtest.gyp:gtest',
93       ],
94       'sources': [
95         'proxy/ppapi_proxy_test.cc',
96         'proxy/ppapi_proxy_test.h',
97         'proxy/resource_message_test_sink.cc',
98         'proxy/resource_message_test_sink.h',
99         'shared_impl/test_globals.cc',
100         'shared_impl/test_globals.h',
101       ],
102     },
104     {
105       'target_name': 'ppapi_perftests',
106       'type': 'executable',
107       'variables': {
108         'chromium_code': 1,
109       },
110       'dependencies': [
111         'ppapi_proxy',
112         'ppapi_shared',
113         'ppapi_unittest_shared',
114         '../base/base.gyp:test_support_base',
115         '../testing/gtest.gyp:gtest',
116       ],
117       'sources': [
118         'proxy/ppapi_perftests.cc',
119         'proxy/ppp_messaging_proxy_perftest.cc',
120       ],
121     },
122     {
123       'target_name': 'ppapi_unittests',
124       'type': 'executable',
125       'variables': {
126         'chromium_code': 1,
127       },
128       'dependencies': [
129         'ppapi_proxy',
130         'ppapi_shared',
131         'ppapi_unittest_shared',
132         '../base/base.gyp:test_support_base',
133         '../gpu/gpu.gyp:gpu_ipc',
134         '../ipc/ipc.gyp:ipc',
135         '../ipc/ipc.gyp:test_support_ipc',
136         '../media/media.gyp:shared_memory_support',
137         '../testing/gmock.gyp:gmock',
138         '../testing/gtest.gyp:gtest',
139         '../ui/surface/surface.gyp:surface',
140       ],
141       'sources': [
142         'proxy/run_all_unittests.cc',
144         'proxy/file_chooser_resource_unittest.cc',
145         'proxy/mock_resource.cc',
146         'proxy/mock_resource.h',
147         'proxy/plugin_dispatcher_unittest.cc',
148         'proxy/plugin_resource_tracker_unittest.cc',
149         'proxy/plugin_var_tracker_unittest.cc',
150         'proxy/ppb_var_unittest.cc',
151         'proxy/ppp_instance_private_proxy_unittest.cc',
152         'proxy/ppp_instance_proxy_unittest.cc',
153         'proxy/ppp_messaging_proxy_unittest.cc',
154         'proxy/serialized_var_unittest.cc',
155         'shared_impl/resource_tracker_unittest.cc',
156         'shared_impl/tracked_callback_unittest.cc',
157         'shared_impl/var_tracker_unittest.cc',
158       ],
159     },
160     {
161       'target_name': 'ppapi_example_skeleton',
162       'suppress_wildcard': 1,
163       'type': 'none',
164       'direct_dependent_settings': {
165         'product_name': '>(_target_name)',
166         'conditions': [
167           ['os_posix==1 and OS!="mac"', {
168             'cflags': ['-fvisibility=hidden'],
169             'type': 'shared_library',
170             # -gstabs, used in the official builds, causes an ICE. Simply remove
171             # it.
172             'cflags!': ['-gstabs'],
173           }],
174           ['OS=="win"', {
175             'type': 'shared_library',
176           }],
177           ['OS=="mac"', {
178             'type': 'loadable_module',
179             'mac_bundle': 1,
180             'product_extension': 'plugin',
181             'xcode_settings': {
182               'OTHER_LDFLAGS': [
183                 # Not to strip important symbols by -Wl,-dead_strip.
184                 '-Wl,-exported_symbol,_PPP_GetInterface',
185                 '-Wl,-exported_symbol,_PPP_InitializeModule',
186                 '-Wl,-exported_symbol,_PPP_ShutdownModule'
187               ]},
188           }],
189         ],
190       },
191     },
192     {
193       'target_name': 'ppapi_example_mouse_cursor',
194       'dependencies': [
195         'ppapi_example_skeleton',
196         'ppapi.gyp:ppapi_cpp',
197       ],
198       'sources': [
199         'examples/mouse_cursor/mouse_cursor.cc',
200       ],
201     },
202     {
203       'target_name': 'ppapi_example_mouse_lock',
204       'dependencies': [
205         'ppapi_example_skeleton',
206         'ppapi.gyp:ppapi_cpp',
207       ],
208       'sources': [
209         'examples/mouse_lock/mouse_lock.cc',
210       ],
211     },
213     {
214       'target_name': 'ppapi_example_gamepad',
215       'dependencies': [
216         'ppapi_example_skeleton',
217         'ppapi.gyp:ppapi_cpp',
218       ],
219       'sources': [
220         'examples/gamepad/gamepad.cc',
221       ],
222     },
224     {
225       'target_name': 'ppapi_example_c_stub',
226       'dependencies': [
227         'ppapi_example_skeleton',
228         'ppapi.gyp:ppapi_c',
229       ],
230       'sources': [
231         'examples/stub/stub.c',
232       ],
233     },
234     {
235       'target_name': 'ppapi_example_cc_stub',
236       'dependencies': [
237         'ppapi_example_skeleton',
238         'ppapi.gyp:ppapi_cpp',
239       ],
240       'sources': [
241         'examples/stub/stub.cc',
242       ],
243     },
244     {
245       'target_name': 'ppapi_example_audio',
246       'dependencies': [
247         'ppapi_example_skeleton',
248         'ppapi.gyp:ppapi_cpp',
249       ],
250       'sources': [
251         'examples/audio/audio.cc',
252       ],
253     },
254     {
255       'target_name': 'ppapi_example_audio_input',
256       'dependencies': [
257         'ppapi_example_skeleton',
258         'ppapi.gyp:ppapi_cpp',
259       ],
260       'sources': [
261         'examples/audio_input/audio_input.cc',
262       ],
263     },
264     {
265       'target_name': 'ppapi_example_file_chooser',
266       'dependencies': [
267         'ppapi_example_skeleton',
268         'ppapi.gyp:ppapi_cpp',
269       ],
270       'sources': [
271         'examples/file_chooser/file_chooser.cc',
272       ],
273     },
274     {
275       'target_name': 'ppapi_example_graphics_2d',
276       'dependencies': [
277         'ppapi_example_skeleton',
278         'ppapi.gyp:ppapi_c',
279       ],
280       'sources': [
281         'examples/2d/graphics_2d_example.c',
282       ],
283     },
284     {
285       'target_name': 'ppapi_example_ime',
286       'dependencies': [
287         'ppapi_example_skeleton',
288         'ppapi.gyp:ppapi_cpp',
289       ],
290       'sources': [
291         'examples/ime/ime.cc',
292       ],
293     },
294     {
295       'target_name': 'ppapi_example_paint_manager',
296       'dependencies': [
297         'ppapi_example_skeleton',
298         'ppapi.gyp:ppapi_cpp',
299       ],
300       'sources': [
301         'examples/2d/paint_manager_example.cc',
302       ],
303     },
304     {
305       'target_name': 'ppapi_example_post_message',
306       'dependencies': [
307         'ppapi_example_skeleton',
308         'ppapi.gyp:ppapi_cpp',
309       ],
310       'sources': [
311         'examples/scripting/post_message.cc',
312       ],
313     },
314     {
315       'target_name': 'ppapi_example_scroll',
316       'dependencies': [
317         'ppapi_example_skeleton',
318         'ppapi.gyp:ppapi_cpp',
319       ],
320       'sources': [
321         'examples/2d/scroll.cc',
322       ],
323     },
324     {
325       'target_name': 'ppapi_example_simple_font',
326       'dependencies': [
327         'ppapi_example_skeleton',
328         'ppapi.gyp:ppapi_cpp',
329       ],
330       'sources': [
331         'examples/font/simple_font.cc',
332       ],
333     },
334     {
335       'target_name': 'ppapi_example_url_loader',
336       'dependencies': [
337         'ppapi_example_skeleton',
338         'ppapi.gyp:ppapi_cpp',
339       ],
340       'sources': [
341         'examples/url_loader/streaming.cc',
342       ],
343     },
344     {
345       'target_name': 'ppapi_example_gles2',
346       'dependencies': [
347         'ppapi_example_skeleton',
348         'ppapi.gyp:ppapi_cpp',
349         'ppapi.gyp:ppapi_gles2',
350         'ppapi.gyp:ppapi_egl',
351       ],
352       'include_dirs': [
353         'lib/gl/include',
354       ],
355       'sources': [
356         'examples/gles2/gles2.cc',
357       ],
358     },
359     {
360       'target_name': 'ppapi_example_video_decode',
361       'dependencies': [
362         'ppapi_example_skeleton',
363         'ppapi.gyp:ppapi_cpp',
364         'ppapi.gyp:ppapi_gles2',
365         'ppapi.gyp:ppapi_egl',
366       ],
367       'include_dirs': [
368         'lib/gl/include',
369       ],
370       'sources': [
371         'examples/video_decode/video_decode.cc',
372         'examples/video_decode/testdata.h',
373       ],
374     },
375     {
376       'target_name': 'ppapi_example_vc',
377       'dependencies': [
378         'ppapi_example_skeleton',
379         'ppapi.gyp:ppapi_cpp',
380         'ppapi.gyp:ppapi_gles2',
381         'ppapi.gyp:ppapi_egl',
382       ],
383       'include_dirs': [
384         'lib/gl/include',
385       ],
386       'sources': [
387         'examples/video_capture/video_capture.cc',
388       ],
389     },
390     {
391       'target_name': 'ppapi_example_flash_topmost',
392       'dependencies': [
393         'ppapi_example_skeleton',
394         'ppapi.gyp:ppapi_cpp',
395       ],
396       'sources': [
397         'examples/flash_topmost/flash_topmost.cc',
398       ],
399     },
400     {
401       'target_name': 'ppapi_example_printing',
402       'dependencies': [
403         'ppapi_example_skeleton',
404         'ppapi.gyp:ppapi_cpp',
405       ],
406       'sources': [
407         'examples/printing/printing.cc',
408       ],
409     },
410   ],