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/printing_resource_unittest.cc',
155 'proxy/serialized_var_unittest.cc',
156 'shared_impl/resource_tracker_unittest.cc',
157 'shared_impl/tracked_callback_unittest.cc',
158 'shared_impl/var_tracker_unittest.cc',
162 'target_name': 'ppapi_example_skeleton',
163 'suppress_wildcard': 1,
165 'direct_dependent_settings': {
166 'product_name': '>(_target_name)',
168 ['os_posix==1 and OS!="mac"', {
169 'cflags': ['-fvisibility=hidden'],
170 'type': 'shared_library',
171 # -gstabs, used in the official builds, causes an ICE. Simply remove
173 'cflags!': ['-gstabs'],
176 'type': 'shared_library',
179 'type': 'loadable_module',
181 'product_extension': 'plugin',
184 # Not to strip important symbols by -Wl,-dead_strip.
185 '-Wl,-exported_symbol,_PPP_GetInterface',
186 '-Wl,-exported_symbol,_PPP_InitializeModule',
187 '-Wl,-exported_symbol,_PPP_ShutdownModule'
194 'target_name': 'ppapi_example_mouse_cursor',
196 'ppapi_example_skeleton',
197 'ppapi.gyp:ppapi_cpp',
200 'examples/mouse_cursor/mouse_cursor.cc',
204 'target_name': 'ppapi_example_mouse_lock',
206 'ppapi_example_skeleton',
207 'ppapi.gyp:ppapi_cpp',
210 'examples/mouse_lock/mouse_lock.cc',
215 'target_name': 'ppapi_example_gamepad',
217 'ppapi_example_skeleton',
218 'ppapi.gyp:ppapi_cpp',
221 'examples/gamepad/gamepad.cc',
226 'target_name': 'ppapi_example_c_stub',
228 'ppapi_example_skeleton',
232 'examples/stub/stub.c',
236 'target_name': 'ppapi_example_cc_stub',
238 'ppapi_example_skeleton',
239 'ppapi.gyp:ppapi_cpp',
242 'examples/stub/stub.cc',
246 'target_name': 'ppapi_example_audio',
248 'ppapi_example_skeleton',
249 'ppapi.gyp:ppapi_cpp',
252 'examples/audio/audio.cc',
256 'target_name': 'ppapi_example_audio_input',
258 'ppapi_example_skeleton',
259 'ppapi.gyp:ppapi_cpp',
262 'examples/audio_input/audio_input.cc',
266 'target_name': 'ppapi_example_file_chooser',
268 'ppapi_example_skeleton',
269 'ppapi.gyp:ppapi_cpp',
272 'examples/file_chooser/file_chooser.cc',
276 'target_name': 'ppapi_example_graphics_2d',
278 'ppapi_example_skeleton',
282 'examples/2d/graphics_2d_example.c',
286 'target_name': 'ppapi_example_ime',
288 'ppapi_example_skeleton',
289 'ppapi.gyp:ppapi_cpp',
292 'examples/ime/ime.cc',
296 'target_name': 'ppapi_example_paint_manager',
298 'ppapi_example_skeleton',
299 'ppapi.gyp:ppapi_cpp',
302 'examples/2d/paint_manager_example.cc',
306 'target_name': 'ppapi_example_input',
308 'ppapi_example_skeleton',
309 'ppapi.gyp:ppapi_cpp',
312 'examples/input/pointer_event_input.cc',
316 'target_name': 'ppapi_example_post_message',
318 'ppapi_example_skeleton',
319 'ppapi.gyp:ppapi_cpp',
322 'examples/scripting/post_message.cc',
326 'target_name': 'ppapi_example_scroll',
328 'ppapi_example_skeleton',
329 'ppapi.gyp:ppapi_cpp',
332 'examples/2d/scroll.cc',
336 'target_name': 'ppapi_example_simple_font',
338 'ppapi_example_skeleton',
339 'ppapi.gyp:ppapi_cpp',
342 'examples/font/simple_font.cc',
346 'target_name': 'ppapi_example_url_loader',
348 'ppapi_example_skeleton',
349 'ppapi.gyp:ppapi_cpp',
352 'examples/url_loader/streaming.cc',
356 'target_name': 'ppapi_example_gles2',
358 'ppapi_example_skeleton',
359 'ppapi.gyp:ppapi_cpp',
360 'ppapi.gyp:ppapi_gles2',
361 'ppapi.gyp:ppapi_egl',
367 'examples/gles2/gles2.cc',
371 'target_name': 'ppapi_example_video_decode',
373 'ppapi_example_skeleton',
374 'ppapi.gyp:ppapi_cpp',
375 'ppapi.gyp:ppapi_gles2',
376 'ppapi.gyp:ppapi_egl',
382 'examples/video_decode/video_decode.cc',
383 'examples/video_decode/testdata.h',
387 'target_name': 'ppapi_example_vc',
389 'ppapi_example_skeleton',
390 'ppapi.gyp:ppapi_cpp',
391 'ppapi.gyp:ppapi_gles2',
392 'ppapi.gyp:ppapi_egl',
398 'examples/video_capture/video_capture.cc',
402 'target_name': 'ppapi_example_flash_topmost',
404 'ppapi_example_skeleton',
405 'ppapi.gyp:ppapi_cpp',
408 'examples/flash_topmost/flash_topmost.cc',
412 'target_name': 'ppapi_example_printing',
414 'ppapi_example_skeleton',
415 'ppapi.gyp:ppapi_cpp',
418 'examples/printing/printing.cc',