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.
8 'target_name': 'ppapi_tests',
9 'type': 'loadable_module',
14 'GL_GLEXT_PROTOTYPES',
17 '<@(test_common_source_files)',
18 '<@(test_trusted_source_files)',
21 'ppapi.gyp:ppapi_cpp',
22 'ppapi_internal.gyp:ppapi_shared',
26 'destination': '<(PRODUCT_DIR)',
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',
36 'destination': '<(PRODUCT_DIR)/test_url_loader_data',
38 'tests/test_url_loader_data/hello.txt',
44 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
45 '--enable-pepper-testing',
46 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests',
47 'file://$(ProjectDir)/tests/test_case.html?testcase=',
53 '_CRT_SECURE_NO_DEPRECATE',
54 '_CRT_NONSTDC_NO_WARNINGS',
55 '_CRT_NONSTDC_NO_DEPRECATE',
56 '_SCL_SECURE_NO_DEPRECATE',
58 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
59 'msvs_disabled_warnings': [ 4267, ],
63 'product_name': 'ppapi_tests',
64 'product_extension': 'plugin',
67 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
68 'msvs_disabled_warnings': [ 4267, ],
69 # TODO(dmichael): Figure out what is wrong with the script on Windows and add
70 # it as an automated action.
73 # 'action_name': 'generate_ppapi_include_tests',
76 # 'tests/test_c_includes.c',
77 # 'tests/test_cc_includes.cc',
80 # '<!@(python generate_ppapi_include_tests.py)',
86 'target_name': 'ppapi_unittest_shared',
87 'type': 'static_library',
91 '../base/base.gyp:test_support_base',
93 '../ipc/ipc.gyp:test_support_ipc',
94 '../testing/gmock.gyp:gmock',
95 '../testing/gtest.gyp:gtest',
98 'proxy/ppapi_proxy_test.cc',
99 'proxy/ppapi_proxy_test.h',
100 'proxy/resource_message_test_sink.cc',
101 'proxy/resource_message_test_sink.h',
102 'shared_impl/test_globals.cc',
103 'shared_impl/test_globals.h',
104 'shared_impl/unittest_utils.cc',
105 'shared_impl/unittest_utils.h',
110 'target_name': 'ppapi_perftests',
111 'type': 'executable',
118 'ppapi_unittest_shared',
119 '../base/base.gyp:test_support_base',
120 '../testing/gtest.gyp:gtest',
123 'proxy/ppapi_perftests.cc',
124 'proxy/ppp_messaging_proxy_perftest.cc',
127 # See http://crbug.com/162998#c4 for why this is needed.
128 ['OS=="linux" and use_allocator!="none"', {
130 '../base/allocator/allocator.gyp:allocator',
136 'target_name': 'ppapi_unittests',
137 'type': 'executable',
145 'ppapi_unittest_shared',
146 '../base/base.gyp:run_all_unittests',
147 '../base/base.gyp:test_support_base',
148 '../gpu/gpu.gyp:gpu_ipc',
149 '../ipc/ipc.gyp:ipc',
150 '../ipc/ipc.gyp:test_support_ipc',
151 '../media/media.gyp:shared_memory_support',
152 '../testing/gmock.gyp:gmock',
153 '../testing/gtest.gyp:gtest',
154 '../ui/surface/surface.gyp:surface',
157 'host/resource_message_filter_unittest.cc',
158 'proxy/device_enumeration_resource_helper_unittest.cc',
159 'proxy/file_chooser_resource_unittest.cc',
160 'proxy/file_system_resource_unittest.cc',
161 'proxy/flash_resource_unittest.cc',
162 'proxy/interface_list_unittest.cc',
163 'proxy/mock_resource.cc',
164 'proxy/mock_resource.h',
165 'proxy/nacl_message_scanner_unittest.cc',
166 'proxy/pdf_resource_unittest.cc',
167 'proxy/plugin_dispatcher_unittest.cc',
168 'proxy/plugin_resource_tracker_unittest.cc',
169 'proxy/plugin_var_tracker_unittest.cc',
170 'proxy/ppb_var_unittest.cc',
171 'proxy/ppp_instance_private_proxy_unittest.cc',
172 'proxy/ppp_instance_proxy_unittest.cc',
173 'proxy/ppp_messaging_proxy_unittest.cc',
174 'proxy/printing_resource_unittest.cc',
175 'proxy/raw_var_data_unittest.cc',
176 'proxy/serialized_var_unittest.cc',
177 'proxy/talk_resource_unittest.cc',
178 'proxy/video_decoder_resource_unittest.cc',
179 'proxy/websocket_resource_unittest.cc',
180 'shared_impl/media_stream_audio_track_shared_unittest.cc',
181 'shared_impl/media_stream_buffer_manager_unittest.cc',
182 'shared_impl/media_stream_video_track_shared_unittest.cc',
183 'shared_impl/proxy_lock_unittest.cc',
184 'shared_impl/resource_tracker_unittest.cc',
185 'shared_impl/thread_aware_callback_unittest.cc',
186 'shared_impl/time_conversion_unittest.cc',
187 'shared_impl/tracked_callback_unittest.cc',
188 'shared_impl/var_tracker_unittest.cc',
191 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
193 [ 'use_allocator!="none"', {
195 '../base/allocator/allocator.gyp:allocator',
201 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
202 'msvs_disabled_warnings': [ 4267, ],
205 'target_name': 'ppapi_example_skeleton',
206 'suppress_wildcard': 1,
208 'direct_dependent_settings': {
209 'product_name': '>(_target_name)',
211 ['os_posix==1 and OS!="mac"', {
212 'cflags': ['-fvisibility=hidden'],
213 'type': 'shared_library',
216 'type': 'shared_library',
219 'type': 'loadable_module',
221 'product_extension': 'plugin',
224 # Not to strip important symbols by -Wl,-dead_strip.
225 '-Wl,-exported_symbol,_PPP_GetInterface',
226 '-Wl,-exported_symbol,_PPP_InitializeModule',
227 '-Wl,-exported_symbol,_PPP_ShutdownModule'
234 'target_name': 'ppapi_example_mouse_cursor',
236 'ppapi_example_skeleton',
237 'ppapi.gyp:ppapi_cpp',
240 'examples/mouse_cursor/mouse_cursor.cc',
244 'target_name': 'ppapi_example_mouse_lock',
246 'ppapi_example_skeleton',
247 'ppapi.gyp:ppapi_cpp',
250 'examples/mouse_lock/mouse_lock.cc',
255 'target_name': 'ppapi_example_gamepad',
257 'ppapi_example_skeleton',
258 'ppapi.gyp:ppapi_cpp',
261 'examples/gamepad/gamepad.cc',
263 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
264 'msvs_disabled_warnings': [ 4267, ],
268 'target_name': 'ppapi_example_c_stub',
270 'ppapi_example_skeleton',
274 'examples/stub/stub.c',
278 'target_name': 'ppapi_example_cc_stub',
280 'ppapi_example_skeleton',
281 'ppapi.gyp:ppapi_cpp',
284 'examples/stub/stub.cc',
288 'target_name': 'ppapi_example_crxfs',
290 'ppapi_example_skeleton',
291 'ppapi.gyp:ppapi_cpp',
294 'examples/crxfs/crxfs.cc',
298 'target_name': 'ppapi_example_audio',
300 'ppapi_example_skeleton',
301 'ppapi.gyp:ppapi_cpp',
304 'examples/audio/audio.cc',
308 'target_name': 'ppapi_example_audio_input',
310 'ppapi_example_skeleton',
311 'ppapi.gyp:ppapi_cpp',
314 'examples/audio_input/audio_input.cc',
318 'target_name': 'ppapi_example_file_chooser',
320 'ppapi_example_skeleton',
321 'ppapi.gyp:ppapi_cpp',
324 'examples/file_chooser/file_chooser.cc',
328 'target_name': 'ppapi_example_graphics_2d',
330 'ppapi_example_skeleton',
334 'examples/2d/graphics_2d_example.c',
338 'target_name': 'ppapi_example_ime',
340 'ppapi_example_skeleton',
341 'ppapi.gyp:ppapi_cpp',
344 'examples/ime/ime.cc',
346 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
347 'msvs_disabled_warnings': [ 4267, ],
350 'target_name': 'ppapi_example_paint_manager',
352 'ppapi_example_skeleton',
353 'ppapi.gyp:ppapi_cpp',
356 'examples/2d/paint_manager_example.cc',
360 'target_name': 'ppapi_example_input',
362 'ppapi_example_skeleton',
363 'ppapi.gyp:ppapi_cpp',
366 'examples/input/pointer_event_input.cc',
370 'target_name': 'ppapi_example_post_message',
372 'ppapi_example_skeleton',
373 'ppapi.gyp:ppapi_cpp',
376 'examples/scripting/post_message.cc',
380 'target_name': 'ppapi_example_scaling',
382 'ppapi_example_skeleton',
383 'ppapi.gyp:ppapi_cpp',
386 'examples/scaling/scaling.cc',
390 'target_name': 'ppapi_example_scroll',
392 'ppapi_example_skeleton',
393 'ppapi.gyp:ppapi_cpp',
396 'examples/2d/scroll.cc',
400 'target_name': 'ppapi_example_simple_font',
402 'ppapi_example_skeleton',
403 'ppapi.gyp:ppapi_cpp',
406 'examples/font/simple_font.cc',
410 'target_name': 'ppapi_example_url_loader',
412 'ppapi_example_skeleton',
413 'ppapi.gyp:ppapi_cpp',
416 'examples/url_loader/streaming.cc',
420 'target_name': 'ppapi_example_url_loader_file',
422 'ppapi_example_skeleton',
423 'ppapi.gyp:ppapi_cpp',
426 'examples/url_loader/stream_to_file.cc',
430 'target_name': 'ppapi_example_gles2',
432 'ppapi_example_skeleton',
433 'ppapi.gyp:ppapi_cpp',
434 'ppapi.gyp:ppapi_gles2',
440 'examples/gles2/gles2.cc',
444 'target_name': 'ppapi_example_video_decode',
446 'ppapi_example_skeleton',
447 'ppapi.gyp:ppapi_cpp',
448 'ppapi.gyp:ppapi_gles2',
454 'examples/video_decode/video_decode.cc',
455 'examples/video_decode/testdata.h',
457 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
458 'msvs_disabled_warnings': [ 4267, ],
461 'target_name': 'ppapi_example_video_decode_dev',
463 'ppapi_example_skeleton',
464 'ppapi.gyp:ppapi_cpp',
465 'ppapi.gyp:ppapi_gles2',
471 'examples/video_decode/video_decode_dev.cc',
472 'examples/video_decode/testdata.h',
474 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
475 'msvs_disabled_warnings': [ 4267, ],
478 'target_name': 'ppapi_example_vc',
480 'ppapi_example_skeleton',
481 'ppapi.gyp:ppapi_cpp',
482 'ppapi.gyp:ppapi_gles2',
488 'examples/video_capture/video_capture.cc',
492 'target_name': 'ppapi_example_video_effects',
494 'ppapi_example_skeleton',
495 'ppapi.gyp:ppapi_cpp',
498 'examples/video_effects/video_effects.cc',
502 'target_name': 'ppapi_example_enumerate_devices',
504 'ppapi_example_skeleton',
505 'ppapi.gyp:ppapi_cpp',
508 'examples/enumerate_devices/enumerate_devices.cc',
512 'target_name': 'ppapi_example_flash_topmost',
514 'ppapi_example_skeleton',
515 'ppapi.gyp:ppapi_cpp',
518 'examples/flash_topmost/flash_topmost.cc',
522 'target_name': 'ppapi_example_printing',
524 'ppapi_example_skeleton',
525 'ppapi.gyp:ppapi_cpp',
528 'examples/printing/printing.cc',
530 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
531 'msvs_disabled_warnings': [ 4267, ],
534 'target_name': 'ppapi_example_media_stream_audio',
536 'ppapi_example_skeleton',
537 'ppapi.gyp:ppapi_cpp',
540 'examples/media_stream_audio/media_stream_audio.cc',
544 'target_name': 'ppapi_example_media_stream_video',
546 'ppapi_example_skeleton',
547 'ppapi.gyp:ppapi_cpp',
548 'ppapi.gyp:ppapi_gles2',
554 'examples/media_stream_video/media_stream_video.cc',
558 'target_name': 'ppapi_example_gles2_spinning_cube',
560 'ppapi_example_skeleton',
561 'ppapi.gyp:ppapi_cpp',
562 'ppapi.gyp:ppapi_gles2',
568 'examples/gles2_spinning_cube/gles2_spinning_cube.cc',
569 'examples/gles2_spinning_cube/spinning_cube.cc',
570 'examples/gles2_spinning_cube/spinning_cube.h',
574 'target_name': 'ppapi_example_compositor',
576 'ppapi_example_skeleton',
577 'ppapi.gyp:ppapi_cpp',
578 'ppapi.gyp:ppapi_gles2',
584 'examples/compositor/compositor.cc',
585 'examples/compositor/spinning_cube.cc',
586 'examples/compositor/spinning_cube.h',