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/proxy:test_support
84 # //ppapi/shared_impl:test_support
85 'target_name': 'ppapi_unittest_shared',
86 'type': 'static_library',
90 '../base/base.gyp:test_support_base',
92 '../ipc/ipc.gyp:test_support_ipc',
93 '../testing/gmock.gyp:gmock',
94 '../testing/gtest.gyp:gtest',
97 # Note: sources list duplicated in GN build.
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 # GN version: //ppapi:ppapi_perftests
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 ['OS=="linux" and use_allocator!="none"', {
131 '../base/allocator/allocator.gyp:allocator',
137 # GN version: //ppapi:ppapi_unittests
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 # Note: sources list duplicated in GN build.
160 'host/resource_message_filter_unittest.cc',
161 'proxy/device_enumeration_resource_helper_unittest.cc',
162 'proxy/file_chooser_resource_unittest.cc',
163 'proxy/file_system_resource_unittest.cc',
164 'proxy/flash_resource_unittest.cc',
165 'proxy/interface_list_unittest.cc',
166 'proxy/mock_resource.cc',
167 'proxy/mock_resource.h',
168 'proxy/nacl_message_scanner_unittest.cc',
169 'proxy/pdf_resource_unittest.cc',
170 'proxy/plugin_dispatcher_unittest.cc',
171 'proxy/plugin_resource_tracker_unittest.cc',
172 'proxy/plugin_var_tracker_unittest.cc',
173 'proxy/ppb_var_unittest.cc',
174 'proxy/ppp_instance_private_proxy_unittest.cc',
175 'proxy/ppp_instance_proxy_unittest.cc',
176 'proxy/ppp_messaging_proxy_unittest.cc',
177 'proxy/printing_resource_unittest.cc',
178 'proxy/raw_var_data_unittest.cc',
179 'proxy/serialized_var_unittest.cc',
180 'proxy/tracked_callback_unittest.cc',
181 'proxy/video_decoder_resource_unittest.cc',
182 'proxy/video_encoder_resource_unittest.cc',
183 'proxy/websocket_resource_unittest.cc',
184 'shared_impl/media_stream_audio_track_shared_unittest.cc',
185 'shared_impl/media_stream_buffer_manager_unittest.cc',
186 'shared_impl/media_stream_video_track_shared_unittest.cc',
187 'shared_impl/proxy_lock_unittest.cc',
188 'shared_impl/resource_tracker_unittest.cc',
189 'shared_impl/thread_aware_callback_unittest.cc',
190 'shared_impl/time_conversion_unittest.cc',
191 'shared_impl/var_tracker_unittest.cc',
194 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
196 [ 'use_allocator!="none"', {
198 '../base/allocator/allocator.gyp:allocator',
206 'target_name': 'ppapi_example_skeleton',
207 'suppress_wildcard': 1,
209 'direct_dependent_settings': {
210 'product_name': '>(_target_name)',
212 ['os_posix==1 and OS!="mac"', {
213 'cflags': ['-fvisibility=hidden'],
214 'type': 'shared_library',
217 'type': 'shared_library',
220 'type': 'loadable_module',
222 'product_extension': 'plugin',
225 # Not to strip important symbols by -Wl,-dead_strip.
226 '-Wl,-exported_symbol,_PPP_GetInterface',
227 '-Wl,-exported_symbol,_PPP_InitializeModule',
228 '-Wl,-exported_symbol,_PPP_ShutdownModule'
235 # GN version: //ppapi/examples/mouse_cursor
236 'target_name': 'ppapi_example_mouse_cursor',
238 'ppapi_example_skeleton',
239 'ppapi.gyp:ppapi_cpp',
242 'examples/mouse_cursor/mouse_cursor.cc',
246 # GN version: //ppapi/examples/mouse_lock
247 'target_name': 'ppapi_example_mouse_lock',
249 'ppapi_example_skeleton',
250 'ppapi.gyp:ppapi_cpp',
253 'examples/mouse_lock/mouse_lock.cc',
258 # GN version: //ppapi/examples/gamepad
259 'target_name': 'ppapi_example_gamepad',
261 'ppapi_example_skeleton',
262 'ppapi.gyp:ppapi_cpp',
265 'examples/gamepad/gamepad.cc',
270 # GN version: //ppapi/examples/stub:c_stub
271 'target_name': 'ppapi_example_c_stub',
273 'ppapi_example_skeleton',
277 'examples/stub/stub.c',
281 # GN version: //ppapi/examples/stub:cc_stub
282 'target_name': 'ppapi_example_cc_stub',
284 'ppapi_example_skeleton',
285 'ppapi.gyp:ppapi_cpp',
288 'examples/stub/stub.cc',
292 # GN version: //ppapi/examples/crxfs
293 'target_name': 'ppapi_example_crxfs',
295 'ppapi_example_skeleton',
296 'ppapi.gyp:ppapi_cpp',
299 'examples/crxfs/crxfs.cc',
303 # GN version: //ppapi/examples/audio
304 'target_name': 'ppapi_example_audio',
306 'ppapi_example_skeleton',
307 'ppapi.gyp:ppapi_cpp',
310 'examples/audio/audio.cc',
314 # GN version: //ppapi/examples/audio_input
315 'target_name': 'ppapi_example_audio_input',
317 'ppapi_example_skeleton',
318 'ppapi.gyp:ppapi_cpp',
321 'examples/audio_input/audio_input.cc',
325 # GN version: //ppapi/examples/file_chooser
326 'target_name': 'ppapi_example_file_chooser',
328 'ppapi_example_skeleton',
329 'ppapi.gyp:ppapi_cpp',
332 'examples/file_chooser/file_chooser.cc',
336 # GN version: //ppapi/examples/2d:graphics_2d
337 'target_name': 'ppapi_example_graphics_2d',
339 'ppapi_example_skeleton',
343 'examples/2d/graphics_2d_example.c',
347 # GN version: //ppapi/examples/ime
348 'target_name': 'ppapi_example_ime',
350 'ppapi_example_skeleton',
351 'ppapi.gyp:ppapi_cpp',
354 'examples/ime/ime.cc',
358 # GN version: //ppapi/examples/2d:paint_manager
359 'target_name': 'ppapi_example_paint_manager',
361 'ppapi_example_skeleton',
362 'ppapi.gyp:ppapi_cpp',
365 'examples/2d/paint_manager_example.cc',
369 # GN version: //ppapi/examples/input
370 'target_name': 'ppapi_example_input',
372 'ppapi_example_skeleton',
373 'ppapi.gyp:ppapi_cpp',
376 'examples/input/pointer_event_input.cc',
380 # GN version: //ppapi/examples/scripting
381 'target_name': 'ppapi_example_post_message',
383 'ppapi_example_skeleton',
384 'ppapi.gyp:ppapi_cpp',
387 'examples/scripting/post_message.cc',
391 # GN version: //ppapi/examples/scaling
392 'target_name': 'ppapi_example_scaling',
394 'ppapi_example_skeleton',
395 'ppapi.gyp:ppapi_cpp',
398 'examples/scaling/scaling.cc',
402 # GN version: //ppapi/examples/2d:scroll
403 'target_name': 'ppapi_example_scroll',
405 'ppapi_example_skeleton',
406 'ppapi.gyp:ppapi_cpp',
409 'examples/2d/scroll.cc',
413 # GN version: //ppapi/examples/font
414 'target_name': 'ppapi_example_simple_font',
416 'ppapi_example_skeleton',
417 'ppapi.gyp:ppapi_cpp',
420 'examples/font/simple_font.cc',
424 # GN version: //ppapi/examples/threading
425 'target_name': 'ppapi_example_threading',
427 'ppapi_example_skeleton',
428 'ppapi.gyp:ppapi_cpp',
431 'examples/threading/threading.cc',
435 # GN version: //ppapi/examples/url_loader:streaming
436 'target_name': 'ppapi_example_url_loader',
438 'ppapi_example_skeleton',
439 'ppapi.gyp:ppapi_cpp',
442 'examples/url_loader/streaming.cc',
446 # GN version: //ppapi/examples/url_loader:file
447 'target_name': 'ppapi_example_url_loader_file',
449 'ppapi_example_skeleton',
450 'ppapi.gyp:ppapi_cpp',
453 'examples/url_loader/stream_to_file.cc',
457 # GN version: //ppapi/examples/gles2
458 'target_name': 'ppapi_example_gles2',
460 'ppapi_example_skeleton',
461 'ppapi.gyp:ppapi_cpp',
462 'ppapi.gyp:ppapi_gles2',
468 'examples/gles2/gles2.cc',
472 # GN version: //ppapi/examples/video_decode:stable
473 'target_name': 'ppapi_example_video_decode',
475 'ppapi_example_skeleton',
476 'ppapi.gyp:ppapi_cpp',
477 'ppapi.gyp:ppapi_gles2',
483 'examples/video_decode/testdata.h',
484 'examples/video_decode/video_decode.cc',
488 # GN version: //ppapi/examples/video_decode:dev
489 'target_name': 'ppapi_example_video_decode_dev',
491 'ppapi_example_skeleton',
492 'ppapi.gyp:ppapi_cpp',
493 'ppapi.gyp:ppapi_gles2',
499 'examples/video_decode/testdata.h',
500 'examples/video_decode/video_decode_dev.cc',
504 'target_name': 'ppapi_example_video_encode',
506 'ppapi_example_skeleton',
507 'ppapi.gyp:ppapi_cpp',
510 'examples/video_encode/video_encode.cc',
514 # GN version: //ppapi/example/video_capture
515 'target_name': 'ppapi_example_vc',
517 'ppapi_example_skeleton',
518 'ppapi.gyp:ppapi_cpp',
519 'ppapi.gyp:ppapi_gles2',
525 'examples/video_capture/video_capture.cc',
529 # GN version: //ppapi/examples/video_effects
530 'target_name': 'ppapi_example_video_effects',
532 'ppapi_example_skeleton',
533 'ppapi.gyp:ppapi_cpp',
536 'examples/video_effects/video_effects.cc',
540 # GN version: //ppapi/examples/enumerate_devices
541 'target_name': 'ppapi_example_enumerate_devices',
543 'ppapi_example_skeleton',
544 'ppapi.gyp:ppapi_cpp',
547 'examples/enumerate_devices/enumerate_devices.cc',
551 # GN version: //ppapi/examples/flash_topmost
552 'target_name': 'ppapi_example_flash_topmost',
554 'ppapi_example_skeleton',
555 'ppapi.gyp:ppapi_cpp',
558 'examples/flash_topmost/flash_topmost.cc',
562 # GN version: //ppapi/examples/printing
563 'target_name': 'ppapi_example_printing',
565 'ppapi_example_skeleton',
566 'ppapi.gyp:ppapi_cpp',
569 'examples/printing/printing.cc',
573 # GN version: //ppapi/examples/media_stream_audio
574 'target_name': 'ppapi_example_media_stream_audio',
576 'ppapi_example_skeleton',
577 'ppapi.gyp:ppapi_cpp',
580 'examples/media_stream_audio/media_stream_audio.cc',
584 # GN version: //ppapi/examples/media_stream_video
585 'target_name': 'ppapi_example_media_stream_video',
587 'ppapi_example_skeleton',
588 'ppapi.gyp:ppapi_cpp',
589 'ppapi.gyp:ppapi_gles2',
595 'examples/media_stream_video/media_stream_video.cc',
599 # GN version: //ppapi/examples/gles2_spinning_cube
600 'target_name': 'ppapi_example_gles2_spinning_cube',
602 'ppapi_example_skeleton',
603 'ppapi.gyp:ppapi_cpp',
604 'ppapi.gyp:ppapi_gles2',
610 'examples/gles2_spinning_cube/gles2_spinning_cube.cc',
611 'examples/gles2_spinning_cube/spinning_cube.cc',
612 'examples/gles2_spinning_cube/spinning_cube.h',
616 # GN version: //ppapi/examples/compositor
617 'target_name': 'ppapi_example_compositor',
619 'ppapi_example_skeleton',
620 'ppapi.gyp:ppapi_cpp',
621 'ppapi.gyp:ppapi_gles2',
627 'examples/compositor/compositor.cc',
628 'examples/compositor/spinning_cube.cc',
629 'examples/compositor/spinning_cube.h',
632 # Adding a new PPAPI example? Don't forget to update the GN build.
633 # See //ppapi/examples/BUILD.gn