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 'native_client/tests/ppapi_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/mock_resource.cc',
146 'proxy/mock_resource.h',
147 'proxy/plugin_dispatcher_unittest.cc',
148 'proxy/plugin_resource_tracker_unittest.cc',
149 'proxy/plugin_var_tracker_unittest.cc',
150 'proxy/ppb_var_unittest.cc',
151 'proxy/ppp_instance_private_proxy_unittest.cc',
152 'proxy/ppp_instance_proxy_unittest.cc',
153 'proxy/ppp_messaging_proxy_unittest.cc',
154 'proxy/serialized_var_unittest.cc',
155 'shared_impl/resource_tracker_unittest.cc',
156 'shared_impl/tracked_callback_unittest.cc',
157 'shared_impl/var_tracker_unittest.cc',
161 'target_name': 'ppapi_example_skeleton',
162 'suppress_wildcard': 1,
164 'direct_dependent_settings': {
165 'product_name': '>(_target_name)',
167 ['os_posix==1 and OS!="mac"', {
168 'cflags': ['-fvisibility=hidden'],
169 'type': 'shared_library',
170 # -gstabs, used in the official builds, causes an ICE. Simply remove
172 'cflags!': ['-gstabs'],
175 'type': 'shared_library',
178 'type': 'loadable_module',
180 'product_extension': 'plugin',
183 # Not to strip important symbols by -Wl,-dead_strip.
184 '-Wl,-exported_symbol,_PPP_GetInterface',
185 '-Wl,-exported_symbol,_PPP_InitializeModule',
186 '-Wl,-exported_symbol,_PPP_ShutdownModule'
193 'target_name': 'ppapi_example_mouse_cursor',
195 'ppapi_example_skeleton',
196 'ppapi.gyp:ppapi_cpp',
199 'examples/mouse_cursor/mouse_cursor.cc',
203 'target_name': 'ppapi_example_mouse_lock',
205 'ppapi_example_skeleton',
206 'ppapi.gyp:ppapi_cpp',
209 'examples/mouse_lock/mouse_lock.cc',
214 'target_name': 'ppapi_example_gamepad',
216 'ppapi_example_skeleton',
217 'ppapi.gyp:ppapi_cpp',
220 'examples/gamepad/gamepad.cc',
225 'target_name': 'ppapi_example_c_stub',
227 'ppapi_example_skeleton',
231 'examples/stub/stub.c',
235 'target_name': 'ppapi_example_cc_stub',
237 'ppapi_example_skeleton',
238 'ppapi.gyp:ppapi_cpp',
241 'examples/stub/stub.cc',
245 'target_name': 'ppapi_example_audio',
247 'ppapi_example_skeleton',
248 'ppapi.gyp:ppapi_cpp',
251 'examples/audio/audio.cc',
255 'target_name': 'ppapi_example_audio_input',
257 'ppapi_example_skeleton',
258 'ppapi.gyp:ppapi_cpp',
261 'examples/audio_input/audio_input.cc',
265 'target_name': 'ppapi_example_file_chooser',
267 'ppapi_example_skeleton',
268 'ppapi.gyp:ppapi_cpp',
271 'examples/file_chooser/file_chooser.cc',
275 'target_name': 'ppapi_example_graphics_2d',
277 'ppapi_example_skeleton',
281 'examples/2d/graphics_2d_example.c',
285 'target_name': 'ppapi_example_ime',
287 'ppapi_example_skeleton',
288 'ppapi.gyp:ppapi_cpp',
291 'examples/ime/ime.cc',
295 'target_name': 'ppapi_example_paint_manager',
297 'ppapi_example_skeleton',
298 'ppapi.gyp:ppapi_cpp',
301 'examples/2d/paint_manager_example.cc',
305 'target_name': 'ppapi_example_post_message',
307 'ppapi_example_skeleton',
308 'ppapi.gyp:ppapi_cpp',
311 'examples/scripting/post_message.cc',
315 'target_name': 'ppapi_example_scroll',
317 'ppapi_example_skeleton',
318 'ppapi.gyp:ppapi_cpp',
321 'examples/2d/scroll.cc',
325 'target_name': 'ppapi_example_simple_font',
327 'ppapi_example_skeleton',
328 'ppapi.gyp:ppapi_cpp',
331 'examples/font/simple_font.cc',
335 'target_name': 'ppapi_example_url_loader',
337 'ppapi_example_skeleton',
338 'ppapi.gyp:ppapi_cpp',
341 'examples/url_loader/streaming.cc',
345 'target_name': 'ppapi_example_gles2',
347 'ppapi_example_skeleton',
348 'ppapi.gyp:ppapi_cpp',
349 'ppapi.gyp:ppapi_gles2',
350 'ppapi.gyp:ppapi_egl',
356 'examples/gles2/gles2.cc',
360 'target_name': 'ppapi_example_video_decode',
362 'ppapi_example_skeleton',
363 'ppapi.gyp:ppapi_cpp',
364 'ppapi.gyp:ppapi_gles2',
365 'ppapi.gyp:ppapi_egl',
371 'examples/video_decode/video_decode.cc',
372 'examples/video_decode/testdata.h',
376 'target_name': 'ppapi_example_vc',
378 'ppapi_example_skeleton',
379 'ppapi.gyp:ppapi_cpp',
380 'ppapi.gyp:ppapi_gles2',
381 'ppapi.gyp:ppapi_egl',
387 'examples/video_capture/video_capture.cc',
391 'target_name': 'ppapi_example_flash_topmost',
393 'ppapi_example_skeleton',
394 'ppapi.gyp:ppapi_cpp',
397 'examples/flash_topmost/flash_topmost.cc',
401 'target_name': 'ppapi_example_printing',
403 'ppapi_example_skeleton',
404 'ppapi.gyp:ppapi_cpp',
407 'examples/printing/printing.cc',