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',
58 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
59 'msvs_disabled_warnings': [ 4267, ],
63 'product_name': 'ppapi_tests',
64 'product_extension': 'plugin',
67 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
68 'msvs_disabled_warnings': [ 4267, ],
69 # TODO(dmichael): Figure out what is wrong with the script on Windows and add
70 # it as an automated action.
73 # 'action_name': 'generate_ppapi_include_tests',
76 # 'tests/test_c_includes.c',
77 # 'tests/test_cc_includes.cc',
80 # '<!@(python generate_ppapi_include_tests.py)',
86 'target_name': 'ppapi_unittest_shared',
87 'type': 'static_library',
91 '../base/base.gyp:test_support_base',
93 '../ipc/ipc.gyp:test_support_ipc',
94 '../testing/gmock.gyp:gmock',
95 '../testing/gtest.gyp:gtest',
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',
108 'target_name': 'ppapi_perftests',
109 'type': 'executable',
116 'ppapi_unittest_shared',
117 '../base/base.gyp:test_support_base',
118 '../testing/gtest.gyp:gtest',
121 'proxy/ppapi_perftests.cc',
122 'proxy/ppp_messaging_proxy_perftest.cc',
126 'target_name': 'ppapi_unittests',
127 'type': 'executable',
135 'ppapi_unittest_shared',
136 '../base/base.gyp:test_support_base',
137 '../gpu/gpu.gyp:gpu_ipc',
138 '../ipc/ipc.gyp:ipc',
139 '../ipc/ipc.gyp:test_support_ipc',
140 '../media/media.gyp:shared_memory_support',
141 '../testing/gmock.gyp:gmock',
142 '../testing/gtest.gyp:gtest',
143 '../ui/surface/surface.gyp:surface',
146 'proxy/run_all_unittests.cc',
148 'host/resource_message_filter_unittest.cc',
149 'proxy/device_enumeration_resource_helper_unittest.cc',
150 'proxy/file_chooser_resource_unittest.cc',
151 'proxy/flash_resource_unittest.cc',
152 'proxy/mock_resource.cc',
153 'proxy/mock_resource.h',
154 'proxy/pdf_resource_unittest.cc',
155 'proxy/plugin_dispatcher_unittest.cc',
156 'proxy/plugin_resource_tracker_unittest.cc',
157 'proxy/plugin_var_tracker_unittest.cc',
158 'proxy/ppb_var_unittest.cc',
159 'proxy/ppp_instance_private_proxy_unittest.cc',
160 'proxy/ppp_instance_proxy_unittest.cc',
161 'proxy/ppp_messaging_proxy_unittest.cc',
162 'proxy/printing_resource_unittest.cc',
163 'proxy/raw_var_data_unittest.cc',
164 'proxy/serialized_var_unittest.cc',
165 'proxy/websocket_resource_unittest.cc',
166 'shared_impl/resource_tracker_unittest.cc',
167 'shared_impl/thread_aware_callback_unittest.cc',
168 'shared_impl/time_conversion_unittest.cc',
169 'shared_impl/tracked_callback_unittest.cc',
170 'shared_impl/var_tracker_unittest.cc',
171 'shared_impl/var_value_conversions_unittest.cc',
174 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
176 [ 'linux_use_tcmalloc == 1', {
178 '../base/allocator/allocator.gyp:allocator',
184 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
185 'msvs_disabled_warnings': [ 4267, ],
188 'target_name': 'ppapi_example_skeleton',
189 'suppress_wildcard': 1,
191 'direct_dependent_settings': {
192 'product_name': '>(_target_name)',
194 ['os_posix==1 and OS!="mac"', {
195 'cflags': ['-fvisibility=hidden'],
196 'type': 'shared_library',
197 # -gstabs, used in the official builds, causes an ICE. Simply remove
199 'cflags!': ['-gstabs'],
202 'type': 'shared_library',
205 'type': 'loadable_module',
207 'product_extension': 'plugin',
210 # Not to strip important symbols by -Wl,-dead_strip.
211 '-Wl,-exported_symbol,_PPP_GetInterface',
212 '-Wl,-exported_symbol,_PPP_InitializeModule',
213 '-Wl,-exported_symbol,_PPP_ShutdownModule'
220 'target_name': 'ppapi_example_mouse_cursor',
222 'ppapi_example_skeleton',
223 'ppapi.gyp:ppapi_cpp',
226 'examples/mouse_cursor/mouse_cursor.cc',
230 'target_name': 'ppapi_example_mouse_lock',
232 'ppapi_example_skeleton',
233 'ppapi.gyp:ppapi_cpp',
236 'examples/mouse_lock/mouse_lock.cc',
241 'target_name': 'ppapi_example_gamepad',
243 'ppapi_example_skeleton',
244 'ppapi.gyp:ppapi_cpp',
247 'examples/gamepad/gamepad.cc',
249 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
250 'msvs_disabled_warnings': [ 4267, ],
254 'target_name': 'ppapi_example_c_stub',
256 'ppapi_example_skeleton',
260 'examples/stub/stub.c',
264 'target_name': 'ppapi_example_cc_stub',
266 'ppapi_example_skeleton',
267 'ppapi.gyp:ppapi_cpp',
270 'examples/stub/stub.cc',
274 'target_name': 'ppapi_example_crxfs',
276 'ppapi_example_skeleton',
277 'ppapi.gyp:ppapi_cpp',
280 'examples/crxfs/crxfs.cc',
284 'target_name': 'ppapi_example_audio',
286 'ppapi_example_skeleton',
287 'ppapi.gyp:ppapi_cpp',
290 'examples/audio/audio.cc',
294 'target_name': 'ppapi_example_audio_input',
296 'ppapi_example_skeleton',
297 'ppapi.gyp:ppapi_cpp',
300 'examples/audio_input/audio_input.cc',
304 'target_name': 'ppapi_example_file_chooser',
306 'ppapi_example_skeleton',
307 'ppapi.gyp:ppapi_cpp',
310 'examples/file_chooser/file_chooser.cc',
314 'target_name': 'ppapi_example_graphics_2d',
316 'ppapi_example_skeleton',
320 'examples/2d/graphics_2d_example.c',
324 'target_name': 'ppapi_example_ime',
326 'ppapi_example_skeleton',
327 'ppapi.gyp:ppapi_cpp',
330 'examples/ime/ime.cc',
332 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
333 'msvs_disabled_warnings': [ 4267, ],
336 'target_name': 'ppapi_example_paint_manager',
338 'ppapi_example_skeleton',
339 'ppapi.gyp:ppapi_cpp',
342 'examples/2d/paint_manager_example.cc',
346 'target_name': 'ppapi_example_input',
348 'ppapi_example_skeleton',
349 'ppapi.gyp:ppapi_cpp',
352 'examples/input/pointer_event_input.cc',
356 'target_name': 'ppapi_example_post_message',
358 'ppapi_example_skeleton',
359 'ppapi.gyp:ppapi_cpp',
362 'examples/scripting/post_message.cc',
366 'target_name': 'ppapi_example_scaling',
368 'ppapi_example_skeleton',
369 'ppapi.gyp:ppapi_cpp',
372 'examples/scaling/scaling.cc',
376 'target_name': 'ppapi_example_scroll',
378 'ppapi_example_skeleton',
379 'ppapi.gyp:ppapi_cpp',
382 'examples/2d/scroll.cc',
386 'target_name': 'ppapi_example_simple_font',
388 'ppapi_example_skeleton',
389 'ppapi.gyp:ppapi_cpp',
392 'examples/font/simple_font.cc',
396 'target_name': 'ppapi_example_url_loader',
398 'ppapi_example_skeleton',
399 'ppapi.gyp:ppapi_cpp',
402 'examples/url_loader/streaming.cc',
406 'target_name': 'ppapi_example_url_loader_file',
408 'ppapi_example_skeleton',
409 'ppapi.gyp:ppapi_cpp',
412 'examples/url_loader/stream_to_file.cc',
416 'target_name': 'ppapi_example_gles2',
418 'ppapi_example_skeleton',
419 'ppapi.gyp:ppapi_cpp',
420 'ppapi.gyp:ppapi_gles2',
421 'ppapi.gyp:ppapi_egl',
427 'examples/gles2/gles2.cc',
431 'target_name': 'ppapi_example_video_decode',
433 'ppapi_example_skeleton',
434 'ppapi.gyp:ppapi_cpp',
435 'ppapi.gyp:ppapi_gles2',
436 'ppapi.gyp:ppapi_egl',
442 'examples/video_decode/video_decode.cc',
443 'examples/video_decode/testdata.h',
445 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
446 'msvs_disabled_warnings': [ 4267, ],
449 'target_name': 'ppapi_example_vc',
451 'ppapi_example_skeleton',
452 'ppapi.gyp:ppapi_cpp',
453 'ppapi.gyp:ppapi_gles2',
454 'ppapi.gyp:ppapi_egl',
460 'examples/video_capture/video_capture.cc',
464 'target_name': 'ppapi_example_enumerate_devices',
466 'ppapi_example_skeleton',
467 'ppapi.gyp:ppapi_cpp',
470 'examples/enumerate_devices/enumerate_devices.cc',
474 'target_name': 'ppapi_example_flash_topmost',
476 'ppapi_example_skeleton',
477 'ppapi.gyp:ppapi_cpp',
480 'examples/flash_topmost/flash_topmost.cc',
484 'target_name': 'ppapi_example_printing',
486 'ppapi_example_skeleton',
487 'ppapi.gyp:ppapi_cpp',
490 'examples/printing/printing.cc',
492 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
493 'msvs_disabled_warnings': [ 4267, ],