Remove the extension puzzle pieces from the chrome://settings page.
[chromium-blink-merge.git] / ppapi / ppapi_tests.gypi
blob0a35aed20e62e99b935dc8ef3f4dea27c96d9df2
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             'tests/ppapi_nacl_tests_newlib.nmf',
33             'tests/ppapi_nacl_tests_pnacl_nonsfi.nmf',
34           ],
35         },
36         {
37           'destination': '<(PRODUCT_DIR)/test_url_loader_data',
38           'files': [
39             'tests/test_url_loader_data/hello.txt',
40           ],
41         },
42       ],
43       'run_as': {
44         'action': [
45           '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
46           '--enable-pepper-testing',
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           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
60           'msvs_disabled_warnings': [ 4267, ],
61         }],
62         ['OS=="mac"', {
63           'mac_bundle': 1,
64           'product_name': 'ppapi_tests',
65           'product_extension': 'plugin',
66         }],
67       ],
68       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
69       'msvs_disabled_warnings': [ 4267, ],
70 # TODO(dmichael):  Figure out what is wrong with the script on Windows and add
71 #                  it as an automated action.
72 #      'actions': [
73 #        {
74 #          'action_name': 'generate_ppapi_include_tests',
75 #          'inputs': [],
76 #          'outputs': [
77 #            'tests/test_c_includes.c',
78 #            'tests/test_cc_includes.cc',
79 #          ],
80 #          'action': [
81 #            '<!@(python generate_ppapi_include_tests.py)',
82 #          ],
83 #        },
84 #      ],
85     },
86     {
87       'target_name': 'ppapi_unittest_shared',
88       'type': 'static_library',
89       'dependencies': [
90         'ppapi_proxy',
91         'ppapi_shared',
92         '../base/base.gyp:test_support_base',
93         '../ipc/ipc.gyp:ipc',
94         '../ipc/ipc.gyp:test_support_ipc',
95         '../testing/gmock.gyp:gmock',
96         '../testing/gtest.gyp:gtest',
97       ],
98       'sources': [
99         'proxy/ppapi_proxy_test.cc',
100         'proxy/ppapi_proxy_test.h',
101         'proxy/resource_message_test_sink.cc',
102         'proxy/resource_message_test_sink.h',
103         'shared_impl/test_globals.cc',
104         'shared_impl/test_globals.h',
105         'shared_impl/unittest_utils.cc',
106         'shared_impl/unittest_utils.h',
107       ],
108     },
110     {
111       'target_name': 'ppapi_perftests',
112       'type': 'executable',
113       'variables': {
114         'chromium_code': 1,
115       },
116       'dependencies': [
117         'ppapi_proxy',
118         'ppapi_shared',
119         'ppapi_unittest_shared',
120         '../base/base.gyp:test_support_base',
121         '../testing/gtest.gyp:gtest',
122       ],
123       'sources': [
124         'proxy/ppapi_perftests.cc',
125         'proxy/ppp_messaging_proxy_perftest.cc',
126       ],
127       'conditions': [
128         # See http://crbug.com/162998#c4 for why this is needed.
129         # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
130         ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
131           'dependencies': [
132             '../base/allocator/allocator.gyp:allocator',
133           ],
134         }],
135       ],
136     },
137     {
138       'target_name': 'ppapi_unittests',
139       'type': 'executable',
140       'variables': {
141         'chromium_code': 1,
142       },
143       'dependencies': [
144         'ppapi_host',
145         'ppapi_proxy',
146         'ppapi_shared',
147         'ppapi_unittest_shared',
148         '../base/base.gyp:run_all_unittests',
149         '../base/base.gyp:test_support_base',
150         '../gpu/gpu.gyp:gpu_ipc',
151         '../ipc/ipc.gyp:ipc',
152         '../ipc/ipc.gyp:test_support_ipc',
153         '../media/media.gyp:shared_memory_support',
154         '../testing/gmock.gyp:gmock',
155         '../testing/gtest.gyp:gtest',
156         '../ui/surface/surface.gyp:surface',
157       ],
158       # For the nacl_http_response_headers_unittest below.
159       'include_dirs': [
160         '../ppapi',
161       ],
162       'sources': [
163         'host/resource_message_filter_unittest.cc',
164         # Piggy back on ppapi_unittests for a simple NaCl unittest,
165         # which must not have dependencies on anything other than stdlibs.
166         # We add the source file, not just the test to ensure that the object
167         # is built.  Otherwise, we would need to depend on the NaCl trusted
168         # plugin being built to build the object.
169         # TODO(jvoung): move this to unit_tests instead of ppapi_unittests
170         # once this moves into chrome.
171         'native_client/src/trusted/plugin/nacl_http_response_headers.cc',
172         'native_client/src/trusted/plugin/nacl_http_response_headers_unittest.cc',
173         'proxy/device_enumeration_resource_helper_unittest.cc',
174         'proxy/file_chooser_resource_unittest.cc',
175         'proxy/file_system_resource_unittest.cc',
176         'proxy/flash_resource_unittest.cc',
177         'proxy/interface_list_unittest.cc',
178         'proxy/mock_resource.cc',
179         'proxy/mock_resource.h',
180         'proxy/nacl_message_scanner_unittest.cc',
181         'proxy/pdf_resource_unittest.cc',
182         'proxy/plugin_dispatcher_unittest.cc',
183         'proxy/plugin_resource_tracker_unittest.cc',
184         'proxy/plugin_var_tracker_unittest.cc',
185         'proxy/ppb_var_unittest.cc',
186         'proxy/ppp_instance_private_proxy_unittest.cc',
187         'proxy/ppp_instance_proxy_unittest.cc',
188         'proxy/ppp_messaging_proxy_unittest.cc',
189         'proxy/printing_resource_unittest.cc',
190         'proxy/raw_var_data_unittest.cc',
191         'proxy/serialized_var_unittest.cc',
192         'proxy/talk_resource_unittest.cc',
193         'proxy/websocket_resource_unittest.cc',
194         'shared_impl/media_stream_buffer_manager_unittest.cc',
195         'shared_impl/media_stream_video_track_shared_unittest.cc',
196         'shared_impl/proxy_lock_unittest.cc',
197         'shared_impl/resource_tracker_unittest.cc',
198         'shared_impl/thread_aware_callback_unittest.cc',
199         'shared_impl/time_conversion_unittest.cc',
200         'shared_impl/tracked_callback_unittest.cc',
201         'shared_impl/var_tracker_unittest.cc',
202         'shared_impl/var_value_conversions_unittest.cc',
203       ],
204       'conditions': [
205         [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
206           'conditions': [
207             # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
208             [ '(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', {
209               'dependencies': [
210                 '../base/allocator/allocator.gyp:allocator',
211               ],
212             }],
213           ],
214         }],
215       ],
216       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
217       'msvs_disabled_warnings': [ 4267, ],
218     },
219     {
220       'target_name': 'ppapi_example_skeleton',
221       'suppress_wildcard': 1,
222       'type': 'none',
223       'direct_dependent_settings': {
224         'product_name': '>(_target_name)',
225         'conditions': [
226           ['os_posix==1 and OS!="mac"', {
227             'cflags': ['-fvisibility=hidden'],
228             'type': 'shared_library',
229           }],
230           ['OS=="win"', {
231             'type': 'shared_library',
232           }],
233           ['OS=="mac"', {
234             'type': 'loadable_module',
235             'mac_bundle': 1,
236             'product_extension': 'plugin',
237             'xcode_settings': {
238               'OTHER_LDFLAGS': [
239                 # Not to strip important symbols by -Wl,-dead_strip.
240                 '-Wl,-exported_symbol,_PPP_GetInterface',
241                 '-Wl,-exported_symbol,_PPP_InitializeModule',
242                 '-Wl,-exported_symbol,_PPP_ShutdownModule'
243               ]},
244           }],
245         ],
246       },
247     },
248     {
249       'target_name': 'ppapi_example_mouse_cursor',
250       'dependencies': [
251         'ppapi_example_skeleton',
252         'ppapi.gyp:ppapi_cpp',
253       ],
254       'sources': [
255         'examples/mouse_cursor/mouse_cursor.cc',
256       ],
257     },
258     {
259       'target_name': 'ppapi_example_mouse_lock',
260       'dependencies': [
261         'ppapi_example_skeleton',
262         'ppapi.gyp:ppapi_cpp',
263       ],
264       'sources': [
265         'examples/mouse_lock/mouse_lock.cc',
266       ],
267     },
269     {
270       'target_name': 'ppapi_example_gamepad',
271       'dependencies': [
272         'ppapi_example_skeleton',
273         'ppapi.gyp:ppapi_cpp',
274       ],
275       'sources': [
276         'examples/gamepad/gamepad.cc',
277       ],
278       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
279       'msvs_disabled_warnings': [ 4267, ],
280     },
282     {
283       'target_name': 'ppapi_example_c_stub',
284       'dependencies': [
285         'ppapi_example_skeleton',
286         'ppapi.gyp:ppapi_c',
287       ],
288       'sources': [
289         'examples/stub/stub.c',
290       ],
291     },
292     {
293       'target_name': 'ppapi_example_cc_stub',
294       'dependencies': [
295         'ppapi_example_skeleton',
296         'ppapi.gyp:ppapi_cpp',
297       ],
298       'sources': [
299         'examples/stub/stub.cc',
300       ],
301     },
302     {
303       'target_name': 'ppapi_example_crxfs',
304       'dependencies': [
305         'ppapi_example_skeleton',
306         'ppapi.gyp:ppapi_cpp',
307       ],
308       'sources': [
309         'examples/crxfs/crxfs.cc',
310       ],
311     },
312     {
313       'target_name': 'ppapi_example_audio',
314       'dependencies': [
315         'ppapi_example_skeleton',
316         'ppapi.gyp:ppapi_cpp',
317       ],
318       'sources': [
319         'examples/audio/audio.cc',
320       ],
321     },
322     {
323       'target_name': 'ppapi_example_audio_input',
324       'dependencies': [
325         'ppapi_example_skeleton',
326         'ppapi.gyp:ppapi_cpp',
327       ],
328       'sources': [
329         'examples/audio_input/audio_input.cc',
330       ],
331     },
332     {
333       'target_name': 'ppapi_example_file_chooser',
334       'dependencies': [
335         'ppapi_example_skeleton',
336         'ppapi.gyp:ppapi_cpp',
337       ],
338       'sources': [
339         'examples/file_chooser/file_chooser.cc',
340       ],
341     },
342     {
343       'target_name': 'ppapi_example_graphics_2d',
344       'dependencies': [
345         'ppapi_example_skeleton',
346         'ppapi.gyp:ppapi_c',
347       ],
348       'sources': [
349         'examples/2d/graphics_2d_example.c',
350       ],
351     },
352     {
353       'target_name': 'ppapi_example_ime',
354       'dependencies': [
355         'ppapi_example_skeleton',
356         'ppapi.gyp:ppapi_cpp',
357       ],
358       'sources': [
359         'examples/ime/ime.cc',
360       ],
361       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
362       'msvs_disabled_warnings': [ 4267, ],
363     },
364     {
365       'target_name': 'ppapi_example_paint_manager',
366       'dependencies': [
367         'ppapi_example_skeleton',
368         'ppapi.gyp:ppapi_cpp',
369       ],
370       'sources': [
371         'examples/2d/paint_manager_example.cc',
372       ],
373     },
374     {
375       'target_name': 'ppapi_example_input',
376       'dependencies': [
377         'ppapi_example_skeleton',
378         'ppapi.gyp:ppapi_cpp',
379       ],
380       'sources': [
381         'examples/input/pointer_event_input.cc',
382       ],
383     },
384     {
385       'target_name': 'ppapi_example_post_message',
386       'dependencies': [
387         'ppapi_example_skeleton',
388         'ppapi.gyp:ppapi_cpp',
389       ],
390       'sources': [
391         'examples/scripting/post_message.cc',
392       ],
393     },
394     {
395       'target_name': 'ppapi_example_scaling',
396       'dependencies': [
397         'ppapi_example_skeleton',
398         'ppapi.gyp:ppapi_cpp',
399       ],
400       'sources': [
401         'examples/scaling/scaling.cc',
402       ],
403     },
404     {
405       'target_name': 'ppapi_example_scroll',
406       'dependencies': [
407         'ppapi_example_skeleton',
408         'ppapi.gyp:ppapi_cpp',
409       ],
410       'sources': [
411         'examples/2d/scroll.cc',
412       ],
413     },
414     {
415       'target_name': 'ppapi_example_simple_font',
416       'dependencies': [
417         'ppapi_example_skeleton',
418         'ppapi.gyp:ppapi_cpp',
419       ],
420       'sources': [
421         'examples/font/simple_font.cc',
422       ],
423     },
424     {
425       'target_name': 'ppapi_example_url_loader',
426       'dependencies': [
427         'ppapi_example_skeleton',
428         'ppapi.gyp:ppapi_cpp',
429       ],
430       'sources': [
431         'examples/url_loader/streaming.cc',
432       ],
433     },
434     {
435       'target_name': 'ppapi_example_url_loader_file',
436       'dependencies': [
437         'ppapi_example_skeleton',
438         'ppapi.gyp:ppapi_cpp',
439       ],
440       'sources': [
441         'examples/url_loader/stream_to_file.cc',
442       ],
443     },
444     {
445       'target_name': 'ppapi_example_gles2',
446       'dependencies': [
447         'ppapi_example_skeleton',
448         'ppapi.gyp:ppapi_cpp',
449         'ppapi.gyp:ppapi_gles2',
450       ],
451       'include_dirs': [
452         'lib/gl/include',
453       ],
454       'sources': [
455         'examples/gles2/gles2.cc',
456       ],
457     },
458     {
459       'target_name': 'ppapi_example_video_decode',
460       'dependencies': [
461         'ppapi_example_skeleton',
462         'ppapi.gyp:ppapi_cpp',
463         'ppapi.gyp:ppapi_gles2',
464       ],
465       'include_dirs': [
466         'lib/gl/include',
467       ],
468       'sources': [
469         'examples/video_decode/video_decode.cc',
470         'examples/video_decode/testdata.h',
471       ],
472       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
473       'msvs_disabled_warnings': [ 4267, ],
474     },
475     {
476       'target_name': 'ppapi_example_vc',
477       'dependencies': [
478         'ppapi_example_skeleton',
479         'ppapi.gyp:ppapi_cpp',
480         'ppapi.gyp:ppapi_gles2',
481       ],
482       'include_dirs': [
483         'lib/gl/include',
484       ],
485       'sources': [
486         'examples/video_capture/video_capture.cc',
487       ],
488     },
489     {
490       'target_name': 'ppapi_example_video_effects',
491       'dependencies': [
492         'ppapi_example_skeleton',
493         'ppapi.gyp:ppapi_cpp',
494       ],
495       'sources': [
496         'examples/video_effects/video_effects.cc',
497       ],
498     },
499     {
500       'target_name': 'ppapi_example_enumerate_devices',
501       'dependencies': [
502         'ppapi_example_skeleton',
503         'ppapi.gyp:ppapi_cpp',
504       ],
505       'sources': [
506         'examples/enumerate_devices/enumerate_devices.cc',
507       ],
508     },
509     {
510       'target_name': 'ppapi_example_flash_topmost',
511       'dependencies': [
512         'ppapi_example_skeleton',
513         'ppapi.gyp:ppapi_cpp',
514       ],
515       'sources': [
516         'examples/flash_topmost/flash_topmost.cc',
517       ],
518     },
519     {
520       'target_name': 'ppapi_example_printing',
521       'dependencies': [
522         'ppapi_example_skeleton',
523         'ppapi.gyp:ppapi_cpp',
524       ],
525       'sources': [
526         'examples/printing/printing.cc',
527       ],
528       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
529       'msvs_disabled_warnings': [ 4267, ],
530     },
531     {
532       'target_name': 'ppapi_example_media_stream_audio',
533       'dependencies': [
534         'ppapi_example_skeleton',
535         'ppapi.gyp:ppapi_cpp',
536       ],
537       'sources': [
538         'examples/media_stream_audio/media_stream_audio.cc',
539       ],
540     },
541     {
542       'target_name': 'ppapi_example_media_stream_video',
543       'dependencies': [
544         'ppapi_example_skeleton',
545         'ppapi.gyp:ppapi_cpp',
546         'ppapi.gyp:ppapi_gles2',
547       ],
548       'include_dirs': [
549         'lib/gl/include',
550       ],
551       'sources': [
552         'examples/media_stream_video/media_stream_video.cc',
553       ],
554     },
555     {
556       'target_name': 'ppapi_example_gles2_spinning_cube',
557       'dependencies': [
558         'ppapi_example_skeleton',
559         'ppapi.gyp:ppapi_cpp',
560         'ppapi.gyp:ppapi_gles2',
561       ],
562       'include_dirs': [
563         'lib/gl/include',
564       ],
565       'sources': [
566         'examples/gles2_spinning_cube/gles2_spinning_cube.cc',
567         'examples/gles2_spinning_cube/spinning_cube.cc',
568         'examples/gles2_spinning_cube/spinning_cube.h',
569       ],
570     },
571   ],