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 # GN version: //ppapi:ppapi_tests
9 'target_name': 'ppapi_tests',
10 'type': 'loadable_module',
15 'GL_GLEXT_PROTOTYPES',
18 '<@(test_common_source_files)',
19 '<@(test_trusted_source_files)',
22 'ppapi.gyp:ppapi_cpp',
23 'ppapi_internal.gyp:ppapi_shared',
27 'destination': '<(PRODUCT_DIR)',
29 # Keep 'test_case.html.mock-http-headers' with 'test_case.html'.
30 'tests/test_case.html',
31 'tests/test_case.html.mock-http-headers',
32 'tests/test_page.css',
33 'tests/ppapi_nacl_tests_newlib.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',
62 'product_name': 'ppapi_tests',
63 'product_extension': 'plugin',
66 # TODO(dmichael): Figure out what is wrong with the script on Windows and add
67 # it as an automated action.
70 # 'action_name': 'generate_ppapi_include_tests',
73 # 'tests/test_c_includes.c',
74 # 'tests/test_cc_includes.cc',
77 # '<!@(python generate_ppapi_include_tests.py)',
83 # GN version: //ppapi:power_saver_test_plugin
84 'target_name': 'power_saver_test_plugin',
85 'type': 'loadable_module',
87 'tests/power_saver_test_plugin.cc',
88 'tests/test_utils.cc',
91 'ppapi.gyp:ppapi_cpp',
92 'ppapi_internal.gyp:ppapi_shared',
97 'product_name': 'power_saver_test_plugin',
98 'product_extension': 'plugin',
103 # GN version: //ppapi/proxy:test_support
104 # //ppapi/shared_impl:test_support
105 'target_name': 'ppapi_unittest_shared',
106 'type': 'static_library',
110 '../base/base.gyp:test_support_base',
111 '../ipc/ipc.gyp:ipc',
112 '../ipc/ipc.gyp:test_support_ipc',
113 '../testing/gmock.gyp:gmock',
114 '../testing/gtest.gyp:gtest',
117 # Note: sources list duplicated in GN build.
118 'proxy/ppapi_proxy_test.cc',
119 'proxy/ppapi_proxy_test.h',
120 'proxy/resource_message_test_sink.cc',
121 'proxy/resource_message_test_sink.h',
122 'shared_impl/test_globals.cc',
123 'shared_impl/test_globals.h',
124 'shared_impl/unittest_utils.cc',
125 'shared_impl/unittest_utils.h',
130 # GN version: //ppapi:ppapi_perftests
131 'target_name': 'ppapi_perftests',
132 'type': 'executable',
139 'ppapi_unittest_shared',
140 '../base/base.gyp:test_support_base',
141 '../testing/gtest.gyp:gtest',
144 'proxy/ppapi_perftests.cc',
145 'proxy/ppp_messaging_proxy_perftest.cc',
148 # See http://crbug.com/162998#c4 for why this is needed.
149 ['OS=="linux" and use_allocator!="none"', {
151 '../base/allocator/allocator.gyp:allocator',
157 # GN version: //ppapi:ppapi_unittests
158 'target_name': 'ppapi_unittests',
159 'type': 'executable',
167 'ppapi_unittest_shared',
168 '../base/base.gyp:run_all_unittests',
169 '../base/base.gyp:test_support_base',
170 '../gpu/gpu.gyp:gpu_ipc',
171 '../ipc/ipc.gyp:ipc',
172 '../ipc/ipc.gyp:test_support_ipc',
173 '../media/media.gyp:shared_memory_support',
174 '../testing/gmock.gyp:gmock',
175 '../testing/gtest.gyp:gtest',
176 '../ui/surface/surface.gyp:surface',
179 # Note: sources list duplicated in GN build.
180 'host/resource_message_filter_unittest.cc',
181 'proxy/device_enumeration_resource_helper_unittest.cc',
182 'proxy/file_chooser_resource_unittest.cc',
183 'proxy/file_system_resource_unittest.cc',
184 'proxy/flash_resource_unittest.cc',
185 'proxy/interface_list_unittest.cc',
186 'proxy/mock_resource.cc',
187 'proxy/mock_resource.h',
188 'proxy/nacl_message_scanner_unittest.cc',
189 'proxy/pdf_resource_unittest.cc',
190 'proxy/plugin_dispatcher_unittest.cc',
191 'proxy/plugin_resource_tracker_unittest.cc',
192 'proxy/plugin_var_tracker_unittest.cc',
193 'proxy/ppb_var_unittest.cc',
194 'proxy/ppp_instance_private_proxy_unittest.cc',
195 'proxy/ppp_instance_proxy_unittest.cc',
196 'proxy/ppp_messaging_proxy_unittest.cc',
197 'proxy/printing_resource_unittest.cc',
198 'proxy/raw_var_data_unittest.cc',
199 'proxy/serialized_var_unittest.cc',
200 'proxy/tracked_callback_unittest.cc',
201 'proxy/video_decoder_resource_unittest.cc',
202 'proxy/video_encoder_resource_unittest.cc',
203 'proxy/websocket_resource_unittest.cc',
204 'shared_impl/media_stream_audio_track_shared_unittest.cc',
205 'shared_impl/media_stream_buffer_manager_unittest.cc',
206 'shared_impl/media_stream_video_track_shared_unittest.cc',
207 'shared_impl/proxy_lock_unittest.cc',
208 'shared_impl/resource_tracker_unittest.cc',
209 'shared_impl/thread_aware_callback_unittest.cc',
210 'shared_impl/time_conversion_unittest.cc',
211 'shared_impl/var_tracker_unittest.cc',
214 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
216 [ 'use_allocator!="none"', {
218 '../base/allocator/allocator.gyp:allocator',
226 'target_name': 'ppapi_example_skeleton',
227 'suppress_wildcard': 1,
229 'direct_dependent_settings': {
230 'product_name': '>(_target_name)',
232 ['os_posix==1 and OS!="mac"', {
233 'cflags': ['-fvisibility=hidden'],
234 'type': 'shared_library',
237 'type': 'shared_library',
240 'type': 'loadable_module',
242 'product_extension': 'plugin',
245 # Not to strip important symbols by -Wl,-dead_strip.
246 '-Wl,-exported_symbol,_PPP_GetInterface',
247 '-Wl,-exported_symbol,_PPP_InitializeModule',
248 '-Wl,-exported_symbol,_PPP_ShutdownModule'
255 # GN version: //ppapi/examples/mouse_cursor
256 'target_name': 'ppapi_example_mouse_cursor',
258 'ppapi_example_skeleton',
259 'ppapi.gyp:ppapi_cpp',
262 'examples/mouse_cursor/mouse_cursor.cc',
266 # GN version: //ppapi/examples/mouse_lock
267 'target_name': 'ppapi_example_mouse_lock',
269 'ppapi_example_skeleton',
270 'ppapi.gyp:ppapi_cpp',
273 'examples/mouse_lock/mouse_lock.cc',
278 # GN version: //ppapi/examples/gamepad
279 'target_name': 'ppapi_example_gamepad',
281 'ppapi_example_skeleton',
282 'ppapi.gyp:ppapi_cpp',
285 'examples/gamepad/gamepad.cc',
290 # GN version: //ppapi/examples/stub:c_stub
291 'target_name': 'ppapi_example_c_stub',
293 'ppapi_example_skeleton',
297 'examples/stub/stub.c',
301 # GN version: //ppapi/examples/stub:cc_stub
302 'target_name': 'ppapi_example_cc_stub',
304 'ppapi_example_skeleton',
305 'ppapi.gyp:ppapi_cpp',
308 'examples/stub/stub.cc',
312 # GN version: //ppapi/examples/crxfs
313 'target_name': 'ppapi_example_crxfs',
315 'ppapi_example_skeleton',
316 'ppapi.gyp:ppapi_cpp',
319 'examples/crxfs/crxfs.cc',
323 # GN version: //ppapi/examples/audio
324 'target_name': 'ppapi_example_audio',
326 'ppapi_example_skeleton',
327 'ppapi.gyp:ppapi_cpp',
330 'examples/audio/audio.cc',
334 # GN version: //ppapi/examples/audio_input
335 'target_name': 'ppapi_example_audio_input',
337 'ppapi_example_skeleton',
338 'ppapi.gyp:ppapi_cpp',
341 'examples/audio_input/audio_input.cc',
345 # GN version: //ppapi/examples/file_chooser
346 'target_name': 'ppapi_example_file_chooser',
348 'ppapi_example_skeleton',
349 'ppapi.gyp:ppapi_cpp',
352 'examples/file_chooser/file_chooser.cc',
356 # GN version: //ppapi/examples/2d:graphics_2d
357 'target_name': 'ppapi_example_graphics_2d',
359 'ppapi_example_skeleton',
363 'examples/2d/graphics_2d_example.c',
367 # GN version: //ppapi/examples/ime
368 'target_name': 'ppapi_example_ime',
370 'ppapi_example_skeleton',
371 'ppapi.gyp:ppapi_cpp',
374 'examples/ime/ime.cc',
378 # GN version: //ppapi/examples/2d:paint_manager
379 'target_name': 'ppapi_example_paint_manager',
381 'ppapi_example_skeleton',
382 'ppapi.gyp:ppapi_cpp',
385 'examples/2d/paint_manager_example.cc',
389 # GN version: //ppapi/examples/input
390 'target_name': 'ppapi_example_input',
392 'ppapi_example_skeleton',
393 'ppapi.gyp:ppapi_cpp',
396 'examples/input/pointer_event_input.cc',
400 # GN version: //ppapi/examples/scripting
401 'target_name': 'ppapi_example_post_message',
403 'ppapi_example_skeleton',
404 'ppapi.gyp:ppapi_cpp',
407 'examples/scripting/post_message.cc',
411 # GN version: //ppapi/examples/scaling
412 'target_name': 'ppapi_example_scaling',
414 'ppapi_example_skeleton',
415 'ppapi.gyp:ppapi_cpp',
418 'examples/scaling/scaling.cc',
422 # GN version: //ppapi/examples/2d:scroll
423 'target_name': 'ppapi_example_scroll',
425 'ppapi_example_skeleton',
426 'ppapi.gyp:ppapi_cpp',
429 'examples/2d/scroll.cc',
433 # GN version: //ppapi/examples/font
434 'target_name': 'ppapi_example_simple_font',
436 'ppapi_example_skeleton',
437 'ppapi.gyp:ppapi_cpp',
440 'examples/font/simple_font.cc',
444 # GN version: //ppapi/examples/threading
445 'target_name': 'ppapi_example_threading',
447 'ppapi_example_skeleton',
448 'ppapi.gyp:ppapi_cpp',
451 'examples/threading/threading.cc',
455 # GN version: //ppapi/examples/url_loader:streaming
456 'target_name': 'ppapi_example_url_loader',
458 'ppapi_example_skeleton',
459 'ppapi.gyp:ppapi_cpp',
462 'examples/url_loader/streaming.cc',
466 # GN version: //ppapi/examples/url_loader:file
467 'target_name': 'ppapi_example_url_loader_file',
469 'ppapi_example_skeleton',
470 'ppapi.gyp:ppapi_cpp',
473 'examples/url_loader/stream_to_file.cc',
477 # GN version: //ppapi/examples/gles2
478 'target_name': 'ppapi_example_gles2',
480 'ppapi_example_skeleton',
481 'ppapi.gyp:ppapi_cpp',
482 'ppapi.gyp:ppapi_gles2',
488 'examples/gles2/gles2.cc',
492 # GN version: //ppapi/examples/video_decode:stable
493 'target_name': 'ppapi_example_video_decode',
495 'ppapi_example_skeleton',
496 'ppapi.gyp:ppapi_cpp',
497 'ppapi.gyp:ppapi_gles2',
503 'examples/video_decode/testdata.h',
504 'examples/video_decode/video_decode.cc',
508 # GN version: //ppapi/examples/video_decode:dev
509 'target_name': 'ppapi_example_video_decode_dev',
511 'ppapi_example_skeleton',
512 'ppapi.gyp:ppapi_cpp',
513 'ppapi.gyp:ppapi_gles2',
519 'examples/video_decode/testdata.h',
520 'examples/video_decode/video_decode_dev.cc',
524 'target_name': 'ppapi_example_video_encode',
526 'ppapi_example_skeleton',
527 'ppapi.gyp:ppapi_cpp',
530 'examples/video_encode/video_encode.cc',
534 # GN version: //ppapi/example/video_capture
535 'target_name': 'ppapi_example_vc',
537 'ppapi_example_skeleton',
538 'ppapi.gyp:ppapi_cpp',
539 'ppapi.gyp:ppapi_gles2',
545 'examples/video_capture/video_capture.cc',
549 # GN version: //ppapi/examples/video_effects
550 'target_name': 'ppapi_example_video_effects',
552 'ppapi_example_skeleton',
553 'ppapi.gyp:ppapi_cpp',
556 'examples/video_effects/video_effects.cc',
560 # GN version: //ppapi/examples/enumerate_devices
561 'target_name': 'ppapi_example_enumerate_devices',
563 'ppapi_example_skeleton',
564 'ppapi.gyp:ppapi_cpp',
567 'examples/enumerate_devices/enumerate_devices.cc',
571 # GN version: //ppapi/examples/flash_topmost
572 'target_name': 'ppapi_example_flash_topmost',
574 'ppapi_example_skeleton',
575 'ppapi.gyp:ppapi_cpp',
578 'examples/flash_topmost/flash_topmost.cc',
582 # GN version: //ppapi/examples/printing
583 'target_name': 'ppapi_example_printing',
585 'ppapi_example_skeleton',
586 'ppapi.gyp:ppapi_cpp',
589 'examples/printing/printing.cc',
593 # GN version: //ppapi/examples/media_stream_audio
594 'target_name': 'ppapi_example_media_stream_audio',
596 'ppapi_example_skeleton',
597 'ppapi.gyp:ppapi_cpp',
600 'examples/media_stream_audio/media_stream_audio.cc',
604 # GN version: //ppapi/examples/media_stream_video
605 'target_name': 'ppapi_example_media_stream_video',
607 'ppapi_example_skeleton',
608 'ppapi.gyp:ppapi_cpp',
609 'ppapi.gyp:ppapi_gles2',
615 'examples/media_stream_video/media_stream_video.cc',
619 # GN version: //ppapi/examples/gles2_spinning_cube
620 'target_name': 'ppapi_example_gles2_spinning_cube',
622 'ppapi_example_skeleton',
623 'ppapi.gyp:ppapi_cpp',
624 'ppapi.gyp:ppapi_gles2',
630 'examples/gles2_spinning_cube/gles2_spinning_cube.cc',
631 'examples/gles2_spinning_cube/spinning_cube.cc',
632 'examples/gles2_spinning_cube/spinning_cube.h',
636 # GN version: //ppapi/examples/compositor
637 'target_name': 'ppapi_example_compositor',
639 'ppapi_example_skeleton',
640 'ppapi.gyp:ppapi_cpp',
641 'ppapi.gyp:ppapi_gles2',
647 'examples/compositor/compositor.cc',
648 'examples/compositor/spinning_cube.cc',
649 'examples/compositor/spinning_cube.h',
652 # Adding a new PPAPI example? Don't forget to update the GN build.
653 # See //ppapi/examples/BUILD.gn