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 '--enable-accelerated-plugins',
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 'target_name': 'ppapi_unittest_shared',
84 'type': 'static_library',
88 '../base/base.gyp:test_support_base',
90 '../ipc/ipc.gyp:test_support_ipc',
91 '../testing/gmock.gyp:gmock',
92 '../testing/gtest.gyp:gtest',
95 'proxy/ppapi_proxy_test.cc',
96 'proxy/ppapi_proxy_test.h',
97 'proxy/resource_message_test_sink.cc',
98 'proxy/resource_message_test_sink.h',
99 'shared_impl/test_globals.cc',
100 'shared_impl/test_globals.h',
105 'target_name': 'ppapi_perftests',
106 'type': 'executable',
113 'ppapi_unittest_shared',
114 '../base/base.gyp:test_support_base',
115 '../testing/gtest.gyp:gtest',
118 'proxy/ppapi_perftests.cc',
119 'proxy/ppp_messaging_proxy_perftest.cc',
123 'target_name': 'ppapi_unittests',
124 '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 'proxy/file_chooser_resource_unittest.cc',
145 'proxy/flash_resource_unittest.cc',
146 'proxy/mock_resource.cc',
147 'proxy/mock_resource.h',
148 'proxy/plugin_dispatcher_unittest.cc',
149 'proxy/plugin_resource_tracker_unittest.cc',
150 'proxy/plugin_var_tracker_unittest.cc',
151 'proxy/ppb_var_unittest.cc',
152 'proxy/ppp_instance_private_proxy_unittest.cc',
153 'proxy/ppp_instance_proxy_unittest.cc',
154 'proxy/ppp_messaging_proxy_unittest.cc',
155 'proxy/printing_resource_unittest.cc',
156 'proxy/serialized_var_unittest.cc',
157 'proxy/websocket_resource_unittest.cc',
158 'shared_impl/resource_tracker_unittest.cc',
159 'shared_impl/tracked_callback_unittest.cc',
160 'shared_impl/var_tracker_unittest.cc',
163 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
165 [ 'linux_use_tcmalloc == 1', {
167 '../base/allocator/allocator.gyp:allocator',
175 'target_name': 'ppapi_example_skeleton',
176 'suppress_wildcard': 1,
178 'direct_dependent_settings': {
179 'product_name': '>(_target_name)',
181 ['os_posix==1 and OS!="mac"', {
182 'cflags': ['-fvisibility=hidden'],
183 'type': 'shared_library',
184 # -gstabs, used in the official builds, causes an ICE. Simply remove
186 'cflags!': ['-gstabs'],
189 'type': 'shared_library',
192 'type': 'loadable_module',
194 'product_extension': 'plugin',
197 # Not to strip important symbols by -Wl,-dead_strip.
198 '-Wl,-exported_symbol,_PPP_GetInterface',
199 '-Wl,-exported_symbol,_PPP_InitializeModule',
200 '-Wl,-exported_symbol,_PPP_ShutdownModule'
207 'target_name': 'ppapi_example_mouse_cursor',
209 'ppapi_example_skeleton',
210 'ppapi.gyp:ppapi_cpp',
213 'examples/mouse_cursor/mouse_cursor.cc',
217 'target_name': 'ppapi_example_mouse_lock',
219 'ppapi_example_skeleton',
220 'ppapi.gyp:ppapi_cpp',
223 'examples/mouse_lock/mouse_lock.cc',
228 'target_name': 'ppapi_example_gamepad',
230 'ppapi_example_skeleton',
231 'ppapi.gyp:ppapi_cpp',
234 'examples/gamepad/gamepad.cc',
239 'target_name': 'ppapi_example_c_stub',
241 'ppapi_example_skeleton',
245 'examples/stub/stub.c',
249 'target_name': 'ppapi_example_cc_stub',
251 'ppapi_example_skeleton',
252 'ppapi.gyp:ppapi_cpp',
255 'examples/stub/stub.cc',
259 'target_name': 'ppapi_example_audio',
261 'ppapi_example_skeleton',
262 'ppapi.gyp:ppapi_cpp',
265 'examples/audio/audio.cc',
269 'target_name': 'ppapi_example_audio_input',
271 'ppapi_example_skeleton',
272 'ppapi.gyp:ppapi_cpp',
275 'examples/audio_input/audio_input.cc',
279 'target_name': 'ppapi_example_file_chooser',
281 'ppapi_example_skeleton',
282 'ppapi.gyp:ppapi_cpp',
285 'examples/file_chooser/file_chooser.cc',
289 'target_name': 'ppapi_example_graphics_2d',
291 'ppapi_example_skeleton',
295 'examples/2d/graphics_2d_example.c',
299 'target_name': 'ppapi_example_ime',
301 'ppapi_example_skeleton',
302 'ppapi.gyp:ppapi_cpp',
305 'examples/ime/ime.cc',
309 'target_name': 'ppapi_example_paint_manager',
311 'ppapi_example_skeleton',
312 'ppapi.gyp:ppapi_cpp',
315 'examples/2d/paint_manager_example.cc',
319 'target_name': 'ppapi_example_input',
321 'ppapi_example_skeleton',
322 'ppapi.gyp:ppapi_cpp',
325 'examples/input/pointer_event_input.cc',
329 'target_name': 'ppapi_example_post_message',
331 'ppapi_example_skeleton',
332 'ppapi.gyp:ppapi_cpp',
335 'examples/scripting/post_message.cc',
339 'target_name': 'ppapi_example_scroll',
341 'ppapi_example_skeleton',
342 'ppapi.gyp:ppapi_cpp',
345 'examples/2d/scroll.cc',
349 'target_name': 'ppapi_example_simple_font',
351 'ppapi_example_skeleton',
352 'ppapi.gyp:ppapi_cpp',
355 'examples/font/simple_font.cc',
359 'target_name': 'ppapi_example_url_loader',
361 'ppapi_example_skeleton',
362 'ppapi.gyp:ppapi_cpp',
365 'examples/url_loader/streaming.cc',
369 'target_name': 'ppapi_example_gles2',
371 'ppapi_example_skeleton',
372 'ppapi.gyp:ppapi_cpp',
373 'ppapi.gyp:ppapi_gles2',
374 'ppapi.gyp:ppapi_egl',
380 'examples/gles2/gles2.cc',
384 'target_name': 'ppapi_example_video_decode',
386 'ppapi_example_skeleton',
387 'ppapi.gyp:ppapi_cpp',
388 'ppapi.gyp:ppapi_gles2',
389 'ppapi.gyp:ppapi_egl',
395 'examples/video_decode/video_decode.cc',
396 'examples/video_decode/testdata.h',
400 'target_name': 'ppapi_example_vc',
402 'ppapi_example_skeleton',
403 'ppapi.gyp:ppapi_cpp',
404 'ppapi.gyp:ppapi_gles2',
405 'ppapi.gyp:ppapi_egl',
411 'examples/video_capture/video_capture.cc',
415 'target_name': 'ppapi_example_enumerate_devices',
417 'ppapi_example_skeleton',
418 'ppapi.gyp:ppapi_cpp',
421 'examples/enumerate_devices/enumerate_devices.cc',
425 'target_name': 'ppapi_example_flash_topmost',
427 'ppapi_example_skeleton',
428 'ppapi.gyp:ppapi_cpp',
431 'examples/flash_topmost/flash_topmost.cc',
435 'target_name': 'ppapi_example_printing',
437 'ppapi_example_skeleton',
438 'ppapi.gyp:ppapi_cpp',
441 'examples/printing/printing.cc',