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',
33 'tests/ppapi_nacl_tests_pnacl_nonsfi.nmf',
37 'destination': '<(PRODUCT_DIR)/test_url_loader_data',
39 'tests/test_url_loader_data/hello.txt',
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=',
54 '_CRT_SECURE_NO_DEPRECATE',
55 '_CRT_NONSTDC_NO_WARNINGS',
56 '_CRT_NONSTDC_NO_DEPRECATE',
57 '_SCL_SECURE_NO_DEPRECATE',
59 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
60 'msvs_disabled_warnings': [ 4267, ],
64 'product_name': 'ppapi_tests',
65 'product_extension': 'plugin',
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.
74 # 'action_name': 'generate_ppapi_include_tests',
77 # 'tests/test_c_includes.c',
78 # 'tests/test_cc_includes.cc',
81 # '<!@(python generate_ppapi_include_tests.py)',
87 'target_name': 'ppapi_unittest_shared',
88 'type': 'static_library',
92 '../base/base.gyp:test_support_base',
94 '../ipc/ipc.gyp:test_support_ipc',
95 '../testing/gmock.gyp:gmock',
96 '../testing/gtest.gyp:gtest',
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',
111 'target_name': 'ppapi_perftests',
112 'type': 'executable',
119 'ppapi_unittest_shared',
120 '../base/base.gyp:test_support_base',
121 '../testing/gtest.gyp:gtest',
124 'proxy/ppapi_perftests.cc',
125 'proxy/ppp_messaging_proxy_perftest.cc',
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))', {
132 '../base/allocator/allocator.gyp:allocator',
138 'target_name': 'ppapi_unittests',
139 'type': 'executable',
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',
159 'host/resource_message_filter_unittest.cc',
160 'proxy/device_enumeration_resource_helper_unittest.cc',
161 'proxy/file_chooser_resource_unittest.cc',
162 'proxy/file_system_resource_unittest.cc',
163 'proxy/flash_resource_unittest.cc',
164 'proxy/interface_list_unittest.cc',
165 'proxy/mock_resource.cc',
166 'proxy/mock_resource.h',
167 'proxy/nacl_message_scanner_unittest.cc',
168 'proxy/pdf_resource_unittest.cc',
169 'proxy/plugin_dispatcher_unittest.cc',
170 'proxy/plugin_resource_tracker_unittest.cc',
171 'proxy/plugin_var_tracker_unittest.cc',
172 'proxy/ppb_var_unittest.cc',
173 'proxy/ppp_instance_private_proxy_unittest.cc',
174 'proxy/ppp_instance_proxy_unittest.cc',
175 'proxy/ppp_messaging_proxy_unittest.cc',
176 'proxy/printing_resource_unittest.cc',
177 'proxy/raw_var_data_unittest.cc',
178 'proxy/serialized_var_unittest.cc',
179 'proxy/talk_resource_unittest.cc',
180 'proxy/websocket_resource_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',
189 'shared_impl/var_value_conversions_unittest.cc',
192 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
194 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
195 [ '(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', {
197 '../base/allocator/allocator.gyp:allocator',
203 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
204 'msvs_disabled_warnings': [ 4267, ],
207 'target_name': 'ppapi_example_skeleton',
208 'suppress_wildcard': 1,
210 'direct_dependent_settings': {
211 'product_name': '>(_target_name)',
213 ['os_posix==1 and OS!="mac"', {
214 'cflags': ['-fvisibility=hidden'],
215 'type': 'shared_library',
218 'type': 'shared_library',
221 'type': 'loadable_module',
223 'product_extension': 'plugin',
226 # Not to strip important symbols by -Wl,-dead_strip.
227 '-Wl,-exported_symbol,_PPP_GetInterface',
228 '-Wl,-exported_symbol,_PPP_InitializeModule',
229 '-Wl,-exported_symbol,_PPP_ShutdownModule'
236 'target_name': 'ppapi_example_mouse_cursor',
238 'ppapi_example_skeleton',
239 'ppapi.gyp:ppapi_cpp',
242 'examples/mouse_cursor/mouse_cursor.cc',
246 'target_name': 'ppapi_example_mouse_lock',
248 'ppapi_example_skeleton',
249 'ppapi.gyp:ppapi_cpp',
252 'examples/mouse_lock/mouse_lock.cc',
257 'target_name': 'ppapi_example_gamepad',
259 'ppapi_example_skeleton',
260 'ppapi.gyp:ppapi_cpp',
263 'examples/gamepad/gamepad.cc',
265 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
266 'msvs_disabled_warnings': [ 4267, ],
270 'target_name': 'ppapi_example_c_stub',
272 'ppapi_example_skeleton',
276 'examples/stub/stub.c',
280 'target_name': 'ppapi_example_cc_stub',
282 'ppapi_example_skeleton',
283 'ppapi.gyp:ppapi_cpp',
286 'examples/stub/stub.cc',
290 'target_name': 'ppapi_example_crxfs',
292 'ppapi_example_skeleton',
293 'ppapi.gyp:ppapi_cpp',
296 'examples/crxfs/crxfs.cc',
300 'target_name': 'ppapi_example_audio',
302 'ppapi_example_skeleton',
303 'ppapi.gyp:ppapi_cpp',
306 'examples/audio/audio.cc',
310 'target_name': 'ppapi_example_audio_input',
312 'ppapi_example_skeleton',
313 'ppapi.gyp:ppapi_cpp',
316 'examples/audio_input/audio_input.cc',
320 'target_name': 'ppapi_example_file_chooser',
322 'ppapi_example_skeleton',
323 'ppapi.gyp:ppapi_cpp',
326 'examples/file_chooser/file_chooser.cc',
330 'target_name': 'ppapi_example_graphics_2d',
332 'ppapi_example_skeleton',
336 'examples/2d/graphics_2d_example.c',
340 'target_name': 'ppapi_example_ime',
342 'ppapi_example_skeleton',
343 'ppapi.gyp:ppapi_cpp',
346 'examples/ime/ime.cc',
348 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
349 'msvs_disabled_warnings': [ 4267, ],
352 'target_name': 'ppapi_example_paint_manager',
354 'ppapi_example_skeleton',
355 'ppapi.gyp:ppapi_cpp',
358 'examples/2d/paint_manager_example.cc',
362 'target_name': 'ppapi_example_input',
364 'ppapi_example_skeleton',
365 'ppapi.gyp:ppapi_cpp',
368 'examples/input/pointer_event_input.cc',
372 'target_name': 'ppapi_example_post_message',
374 'ppapi_example_skeleton',
375 'ppapi.gyp:ppapi_cpp',
378 'examples/scripting/post_message.cc',
382 'target_name': 'ppapi_example_scaling',
384 'ppapi_example_skeleton',
385 'ppapi.gyp:ppapi_cpp',
388 'examples/scaling/scaling.cc',
392 'target_name': 'ppapi_example_scroll',
394 'ppapi_example_skeleton',
395 'ppapi.gyp:ppapi_cpp',
398 'examples/2d/scroll.cc',
402 'target_name': 'ppapi_example_simple_font',
404 'ppapi_example_skeleton',
405 'ppapi.gyp:ppapi_cpp',
408 'examples/font/simple_font.cc',
412 'target_name': 'ppapi_example_url_loader',
414 'ppapi_example_skeleton',
415 'ppapi.gyp:ppapi_cpp',
418 'examples/url_loader/streaming.cc',
422 'target_name': 'ppapi_example_url_loader_file',
424 'ppapi_example_skeleton',
425 'ppapi.gyp:ppapi_cpp',
428 'examples/url_loader/stream_to_file.cc',
432 'target_name': 'ppapi_example_gles2',
434 'ppapi_example_skeleton',
435 'ppapi.gyp:ppapi_cpp',
436 'ppapi.gyp:ppapi_gles2',
442 'examples/gles2/gles2.cc',
446 'target_name': 'ppapi_example_video_decode',
448 'ppapi_example_skeleton',
449 'ppapi.gyp:ppapi_cpp',
450 'ppapi.gyp:ppapi_gles2',
456 'examples/video_decode/video_decode.cc',
457 'examples/video_decode/testdata.h',
459 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
460 'msvs_disabled_warnings': [ 4267, ],
463 'target_name': 'ppapi_example_vc',
465 'ppapi_example_skeleton',
466 'ppapi.gyp:ppapi_cpp',
467 'ppapi.gyp:ppapi_gles2',
473 'examples/video_capture/video_capture.cc',
477 'target_name': 'ppapi_example_video_effects',
479 'ppapi_example_skeleton',
480 'ppapi.gyp:ppapi_cpp',
483 'examples/video_effects/video_effects.cc',
487 'target_name': 'ppapi_example_enumerate_devices',
489 'ppapi_example_skeleton',
490 'ppapi.gyp:ppapi_cpp',
493 'examples/enumerate_devices/enumerate_devices.cc',
497 'target_name': 'ppapi_example_flash_topmost',
499 'ppapi_example_skeleton',
500 'ppapi.gyp:ppapi_cpp',
503 'examples/flash_topmost/flash_topmost.cc',
507 'target_name': 'ppapi_example_printing',
509 'ppapi_example_skeleton',
510 'ppapi.gyp:ppapi_cpp',
513 'examples/printing/printing.cc',
515 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
516 'msvs_disabled_warnings': [ 4267, ],
519 'target_name': 'ppapi_example_media_stream_audio',
521 'ppapi_example_skeleton',
522 'ppapi.gyp:ppapi_cpp',
525 'examples/media_stream_audio/media_stream_audio.cc',
529 'target_name': 'ppapi_example_media_stream_video',
531 'ppapi_example_skeleton',
532 'ppapi.gyp:ppapi_cpp',
533 'ppapi.gyp:ppapi_gles2',
539 'examples/media_stream_video/media_stream_video.cc',
543 'target_name': 'ppapi_example_gles2_spinning_cube',
545 'ppapi_example_skeleton',
546 'ppapi.gyp:ppapi_cpp',
547 'ppapi.gyp:ppapi_gles2',
553 'examples/gles2_spinning_cube/gles2_spinning_cube.cc',
554 'examples/gles2_spinning_cube/spinning_cube.cc',
555 'examples/gles2_spinning_cube/spinning_cube.h',