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',
158 # For the nacl_http_response_headers_unittest below.
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',
205 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
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)', {
210 '../base/allocator/allocator.gyp:allocator',
216 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
217 'msvs_disabled_warnings': [ 4267, ],
220 'target_name': 'ppapi_example_skeleton',
221 'suppress_wildcard': 1,
223 'direct_dependent_settings': {
224 'product_name': '>(_target_name)',
226 ['os_posix==1 and OS!="mac"', {
227 'cflags': ['-fvisibility=hidden'],
228 'type': 'shared_library',
231 'type': 'shared_library',
234 'type': 'loadable_module',
236 'product_extension': 'plugin',
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'
249 'target_name': 'ppapi_example_mouse_cursor',
251 'ppapi_example_skeleton',
252 'ppapi.gyp:ppapi_cpp',
255 'examples/mouse_cursor/mouse_cursor.cc',
259 'target_name': 'ppapi_example_mouse_lock',
261 'ppapi_example_skeleton',
262 'ppapi.gyp:ppapi_cpp',
265 'examples/mouse_lock/mouse_lock.cc',
270 'target_name': 'ppapi_example_gamepad',
272 'ppapi_example_skeleton',
273 'ppapi.gyp:ppapi_cpp',
276 'examples/gamepad/gamepad.cc',
278 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
279 'msvs_disabled_warnings': [ 4267, ],
283 'target_name': 'ppapi_example_c_stub',
285 'ppapi_example_skeleton',
289 'examples/stub/stub.c',
293 'target_name': 'ppapi_example_cc_stub',
295 'ppapi_example_skeleton',
296 'ppapi.gyp:ppapi_cpp',
299 'examples/stub/stub.cc',
303 'target_name': 'ppapi_example_crxfs',
305 'ppapi_example_skeleton',
306 'ppapi.gyp:ppapi_cpp',
309 'examples/crxfs/crxfs.cc',
313 'target_name': 'ppapi_example_audio',
315 'ppapi_example_skeleton',
316 'ppapi.gyp:ppapi_cpp',
319 'examples/audio/audio.cc',
323 'target_name': 'ppapi_example_audio_input',
325 'ppapi_example_skeleton',
326 'ppapi.gyp:ppapi_cpp',
329 'examples/audio_input/audio_input.cc',
333 'target_name': 'ppapi_example_file_chooser',
335 'ppapi_example_skeleton',
336 'ppapi.gyp:ppapi_cpp',
339 'examples/file_chooser/file_chooser.cc',
343 'target_name': 'ppapi_example_graphics_2d',
345 'ppapi_example_skeleton',
349 'examples/2d/graphics_2d_example.c',
353 'target_name': 'ppapi_example_ime',
355 'ppapi_example_skeleton',
356 'ppapi.gyp:ppapi_cpp',
359 'examples/ime/ime.cc',
361 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
362 'msvs_disabled_warnings': [ 4267, ],
365 'target_name': 'ppapi_example_paint_manager',
367 'ppapi_example_skeleton',
368 'ppapi.gyp:ppapi_cpp',
371 'examples/2d/paint_manager_example.cc',
375 'target_name': 'ppapi_example_input',
377 'ppapi_example_skeleton',
378 'ppapi.gyp:ppapi_cpp',
381 'examples/input/pointer_event_input.cc',
385 'target_name': 'ppapi_example_post_message',
387 'ppapi_example_skeleton',
388 'ppapi.gyp:ppapi_cpp',
391 'examples/scripting/post_message.cc',
395 'target_name': 'ppapi_example_scaling',
397 'ppapi_example_skeleton',
398 'ppapi.gyp:ppapi_cpp',
401 'examples/scaling/scaling.cc',
405 'target_name': 'ppapi_example_scroll',
407 'ppapi_example_skeleton',
408 'ppapi.gyp:ppapi_cpp',
411 'examples/2d/scroll.cc',
415 'target_name': 'ppapi_example_simple_font',
417 'ppapi_example_skeleton',
418 'ppapi.gyp:ppapi_cpp',
421 'examples/font/simple_font.cc',
425 'target_name': 'ppapi_example_url_loader',
427 'ppapi_example_skeleton',
428 'ppapi.gyp:ppapi_cpp',
431 'examples/url_loader/streaming.cc',
435 'target_name': 'ppapi_example_url_loader_file',
437 'ppapi_example_skeleton',
438 'ppapi.gyp:ppapi_cpp',
441 'examples/url_loader/stream_to_file.cc',
445 'target_name': 'ppapi_example_gles2',
447 'ppapi_example_skeleton',
448 'ppapi.gyp:ppapi_cpp',
449 'ppapi.gyp:ppapi_gles2',
455 'examples/gles2/gles2.cc',
459 'target_name': 'ppapi_example_video_decode',
461 'ppapi_example_skeleton',
462 'ppapi.gyp:ppapi_cpp',
463 'ppapi.gyp:ppapi_gles2',
469 'examples/video_decode/video_decode.cc',
470 'examples/video_decode/testdata.h',
472 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
473 'msvs_disabled_warnings': [ 4267, ],
476 'target_name': 'ppapi_example_vc',
478 'ppapi_example_skeleton',
479 'ppapi.gyp:ppapi_cpp',
480 'ppapi.gyp:ppapi_gles2',
486 'examples/video_capture/video_capture.cc',
490 'target_name': 'ppapi_example_video_effects',
492 'ppapi_example_skeleton',
493 'ppapi.gyp:ppapi_cpp',
496 'examples/video_effects/video_effects.cc',
500 'target_name': 'ppapi_example_enumerate_devices',
502 'ppapi_example_skeleton',
503 'ppapi.gyp:ppapi_cpp',
506 'examples/enumerate_devices/enumerate_devices.cc',
510 'target_name': 'ppapi_example_flash_topmost',
512 'ppapi_example_skeleton',
513 'ppapi.gyp:ppapi_cpp',
516 'examples/flash_topmost/flash_topmost.cc',
520 'target_name': 'ppapi_example_printing',
522 'ppapi_example_skeleton',
523 'ppapi.gyp:ppapi_cpp',
526 'examples/printing/printing.cc',
528 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
529 'msvs_disabled_warnings': [ 4267, ],
532 'target_name': 'ppapi_example_media_stream_audio',
534 'ppapi_example_skeleton',
535 'ppapi.gyp:ppapi_cpp',
538 'examples/media_stream_audio/media_stream_audio.cc',
542 'target_name': 'ppapi_example_media_stream_video',
544 'ppapi_example_skeleton',
545 'ppapi.gyp:ppapi_cpp',
546 'ppapi.gyp:ppapi_gles2',
552 'examples/media_stream_video/media_stream_video.cc',
556 'target_name': 'ppapi_example_gles2_spinning_cube',
558 'ppapi_example_skeleton',
559 'ppapi.gyp:ppapi_cpp',
560 'ppapi.gyp:ppapi_gles2',
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',