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',
61 'product_name': 'ppapi_tests',
62 'product_extension': 'plugin',
65 # TODO(dmichael): Figure out what is wrong with the script on Windows and add
66 # it as an automated action.
69 # 'action_name': 'generate_ppapi_include_tests',
72 # 'tests/test_c_includes.c',
73 # 'tests/test_cc_includes.cc',
76 # '<!@(python generate_ppapi_include_tests.py)',
82 'target_name': 'ppapi_unittest_shared',
83 'type': 'static_library',
87 '../base/base.gyp:test_support_base',
89 '../ipc/ipc.gyp:test_support_ipc',
90 '../testing/gmock.gyp:gmock',
91 '../testing/gtest.gyp:gtest',
94 'proxy/ppapi_proxy_test.cc',
95 'proxy/ppapi_proxy_test.h',
96 'proxy/resource_message_test_sink.cc',
97 'proxy/resource_message_test_sink.h',
98 'shared_impl/test_globals.cc',
99 'shared_impl/test_globals.h',
104 'target_name': 'ppapi_perftests',
105 'type': 'executable',
112 'ppapi_unittest_shared',
113 '../base/base.gyp:test_support_base',
114 '../testing/gtest.gyp:gtest',
117 'proxy/ppapi_perftests.cc',
118 'proxy/ppp_messaging_proxy_perftest.cc',
122 'target_name': 'ppapi_unittests',
123 'type': 'executable',
131 'ppapi_unittest_shared',
132 '../base/base.gyp:test_support_base',
133 '../gpu/gpu.gyp:gpu_ipc',
134 '../ipc/ipc.gyp:ipc',
135 '../ipc/ipc.gyp:test_support_ipc',
136 '../media/media.gyp:shared_memory_support',
137 '../testing/gmock.gyp:gmock',
138 '../testing/gtest.gyp:gtest',
139 '../ui/surface/surface.gyp:surface',
142 'proxy/run_all_unittests.cc',
144 'host/resource_message_filter_unittest.cc',
145 'proxy/device_enumeration_resource_helper_unittest.cc',
146 'proxy/file_chooser_resource_unittest.cc',
147 'proxy/flash_resource_unittest.cc',
148 'proxy/mock_resource.cc',
149 'proxy/mock_resource.h',
150 'proxy/plugin_dispatcher_unittest.cc',
151 'proxy/plugin_resource_tracker_unittest.cc',
152 'proxy/plugin_var_tracker_unittest.cc',
153 'proxy/ppb_var_unittest.cc',
154 'proxy/ppp_instance_private_proxy_unittest.cc',
155 'proxy/ppp_instance_proxy_unittest.cc',
156 'proxy/ppp_messaging_proxy_unittest.cc',
157 'proxy/printing_resource_unittest.cc',
158 'proxy/serialized_var_unittest.cc',
159 'proxy/websocket_resource_unittest.cc',
160 'shared_impl/resource_tracker_unittest.cc',
161 'shared_impl/tracked_callback_unittest.cc',
162 'shared_impl/var_tracker_unittest.cc',
165 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
167 [ 'linux_use_tcmalloc == 1', {
169 '../base/allocator/allocator.gyp:allocator',
177 'target_name': 'ppapi_example_skeleton',
178 'suppress_wildcard': 1,
180 'direct_dependent_settings': {
181 'product_name': '>(_target_name)',
183 ['os_posix==1 and OS!="mac"', {
184 'cflags': ['-fvisibility=hidden'],
185 'type': 'shared_library',
186 # -gstabs, used in the official builds, causes an ICE. Simply remove
188 'cflags!': ['-gstabs'],
191 'type': 'shared_library',
194 'type': 'loadable_module',
196 'product_extension': 'plugin',
199 # Not to strip important symbols by -Wl,-dead_strip.
200 '-Wl,-exported_symbol,_PPP_GetInterface',
201 '-Wl,-exported_symbol,_PPP_InitializeModule',
202 '-Wl,-exported_symbol,_PPP_ShutdownModule'
209 'target_name': 'ppapi_example_mouse_cursor',
211 'ppapi_example_skeleton',
212 'ppapi.gyp:ppapi_cpp',
215 'examples/mouse_cursor/mouse_cursor.cc',
219 'target_name': 'ppapi_example_mouse_lock',
221 'ppapi_example_skeleton',
222 'ppapi.gyp:ppapi_cpp',
225 'examples/mouse_lock/mouse_lock.cc',
230 'target_name': 'ppapi_example_gamepad',
232 'ppapi_example_skeleton',
233 'ppapi.gyp:ppapi_cpp',
236 'examples/gamepad/gamepad.cc',
241 'target_name': 'ppapi_example_c_stub',
243 'ppapi_example_skeleton',
247 'examples/stub/stub.c',
251 'target_name': 'ppapi_example_cc_stub',
253 'ppapi_example_skeleton',
254 'ppapi.gyp:ppapi_cpp',
257 'examples/stub/stub.cc',
261 'target_name': 'ppapi_example_audio',
263 'ppapi_example_skeleton',
264 'ppapi.gyp:ppapi_cpp',
267 'examples/audio/audio.cc',
271 'target_name': 'ppapi_example_audio_input',
273 'ppapi_example_skeleton',
274 'ppapi.gyp:ppapi_cpp',
277 'examples/audio_input/audio_input.cc',
281 'target_name': 'ppapi_example_file_chooser',
283 'ppapi_example_skeleton',
284 'ppapi.gyp:ppapi_cpp',
287 'examples/file_chooser/file_chooser.cc',
291 'target_name': 'ppapi_example_graphics_2d',
293 'ppapi_example_skeleton',
297 'examples/2d/graphics_2d_example.c',
301 'target_name': 'ppapi_example_ime',
303 'ppapi_example_skeleton',
304 'ppapi.gyp:ppapi_cpp',
307 'examples/ime/ime.cc',
311 'target_name': 'ppapi_example_paint_manager',
313 'ppapi_example_skeleton',
314 'ppapi.gyp:ppapi_cpp',
317 'examples/2d/paint_manager_example.cc',
321 'target_name': 'ppapi_example_input',
323 'ppapi_example_skeleton',
324 'ppapi.gyp:ppapi_cpp',
327 'examples/input/pointer_event_input.cc',
331 'target_name': 'ppapi_example_post_message',
333 'ppapi_example_skeleton',
334 'ppapi.gyp:ppapi_cpp',
337 'examples/scripting/post_message.cc',
341 'target_name': 'ppapi_example_scroll',
343 'ppapi_example_skeleton',
344 'ppapi.gyp:ppapi_cpp',
347 'examples/2d/scroll.cc',
351 'target_name': 'ppapi_example_simple_font',
353 'ppapi_example_skeleton',
354 'ppapi.gyp:ppapi_cpp',
357 'examples/font/simple_font.cc',
361 'target_name': 'ppapi_example_url_loader',
363 'ppapi_example_skeleton',
364 'ppapi.gyp:ppapi_cpp',
367 'examples/url_loader/streaming.cc',
371 'target_name': 'ppapi_example_url_loader_file',
373 'ppapi_example_skeleton',
374 'ppapi.gyp:ppapi_cpp',
377 'examples/url_loader/stream_to_file.cc',
381 'target_name': 'ppapi_example_gles2',
383 'ppapi_example_skeleton',
384 'ppapi.gyp:ppapi_cpp',
385 'ppapi.gyp:ppapi_gles2',
386 'ppapi.gyp:ppapi_egl',
392 'examples/gles2/gles2.cc',
396 'target_name': 'ppapi_example_video_decode',
398 'ppapi_example_skeleton',
399 'ppapi.gyp:ppapi_cpp',
400 'ppapi.gyp:ppapi_gles2',
401 'ppapi.gyp:ppapi_egl',
407 'examples/video_decode/video_decode.cc',
408 'examples/video_decode/testdata.h',
412 'target_name': 'ppapi_example_vc',
414 'ppapi_example_skeleton',
415 'ppapi.gyp:ppapi_cpp',
416 'ppapi.gyp:ppapi_gles2',
417 'ppapi.gyp:ppapi_egl',
423 'examples/video_capture/video_capture.cc',
427 'target_name': 'ppapi_example_enumerate_devices',
429 'ppapi_example_skeleton',
430 'ppapi.gyp:ppapi_cpp',
433 'examples/enumerate_devices/enumerate_devices.cc',
437 'target_name': 'ppapi_example_flash_topmost',
439 'ppapi_example_skeleton',
440 'ppapi.gyp:ppapi_cpp',
443 'examples/flash_topmost/flash_topmost.cc',
447 'target_name': 'ppapi_example_printing',
449 'ppapi_example_skeleton',
450 'ppapi.gyp:ppapi_cpp',
453 'examples/printing/printing.cc',