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/plugin_dispatcher_unittest.cc',
155 'proxy/plugin_resource_tracker_unittest.cc',
156 'proxy/plugin_var_tracker_unittest.cc',
157 'proxy/ppb_var_unittest.cc',
158 'proxy/ppp_instance_private_proxy_unittest.cc',
159 'proxy/ppp_instance_proxy_unittest.cc',
160 'proxy/ppp_messaging_proxy_unittest.cc',
161 'proxy/printing_resource_unittest.cc',
162 'proxy/serialized_var_unittest.cc',
163 'proxy/websocket_resource_unittest.cc',
164 'shared_impl/resource_tracker_unittest.cc',
165 'shared_impl/thread_aware_callback_unittest.cc',
166 'shared_impl/time_conversion_unittest.cc',
167 'shared_impl/tracked_callback_unittest.cc',
168 'shared_impl/var_tracker_unittest.cc',
171 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
173 [ 'linux_use_tcmalloc == 1', {
175 '../base/allocator/allocator.gyp:allocator',
181 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
182 'msvs_disabled_warnings': [ 4267, ],
185 'target_name': 'ppapi_example_skeleton',
186 'suppress_wildcard': 1,
188 'direct_dependent_settings': {
189 'product_name': '>(_target_name)',
191 ['os_posix==1 and OS!="mac"', {
192 'cflags': ['-fvisibility=hidden'],
193 'type': 'shared_library',
194 # -gstabs, used in the official builds, causes an ICE. Simply remove
196 'cflags!': ['-gstabs'],
199 'type': 'shared_library',
202 'type': 'loadable_module',
204 'product_extension': 'plugin',
207 # Not to strip important symbols by -Wl,-dead_strip.
208 '-Wl,-exported_symbol,_PPP_GetInterface',
209 '-Wl,-exported_symbol,_PPP_InitializeModule',
210 '-Wl,-exported_symbol,_PPP_ShutdownModule'
217 'target_name': 'ppapi_example_mouse_cursor',
219 'ppapi_example_skeleton',
220 'ppapi.gyp:ppapi_cpp',
223 'examples/mouse_cursor/mouse_cursor.cc',
227 'target_name': 'ppapi_example_mouse_lock',
229 'ppapi_example_skeleton',
230 'ppapi.gyp:ppapi_cpp',
233 'examples/mouse_lock/mouse_lock.cc',
238 'target_name': 'ppapi_example_gamepad',
240 'ppapi_example_skeleton',
241 'ppapi.gyp:ppapi_cpp',
244 'examples/gamepad/gamepad.cc',
246 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
247 'msvs_disabled_warnings': [ 4267, ],
251 'target_name': 'ppapi_example_c_stub',
253 'ppapi_example_skeleton',
257 'examples/stub/stub.c',
261 'target_name': 'ppapi_example_cc_stub',
263 'ppapi_example_skeleton',
264 'ppapi.gyp:ppapi_cpp',
267 'examples/stub/stub.cc',
271 'target_name': 'ppapi_example_audio',
273 'ppapi_example_skeleton',
274 'ppapi.gyp:ppapi_cpp',
277 'examples/audio/audio.cc',
281 'target_name': 'ppapi_example_audio_input',
283 'ppapi_example_skeleton',
284 'ppapi.gyp:ppapi_cpp',
287 'examples/audio_input/audio_input.cc',
291 'target_name': 'ppapi_example_file_chooser',
293 'ppapi_example_skeleton',
294 'ppapi.gyp:ppapi_cpp',
297 'examples/file_chooser/file_chooser.cc',
301 'target_name': 'ppapi_example_graphics_2d',
303 'ppapi_example_skeleton',
307 'examples/2d/graphics_2d_example.c',
311 'target_name': 'ppapi_example_ime',
313 'ppapi_example_skeleton',
314 'ppapi.gyp:ppapi_cpp',
317 'examples/ime/ime.cc',
319 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
320 'msvs_disabled_warnings': [ 4267, ],
323 'target_name': 'ppapi_example_paint_manager',
325 'ppapi_example_skeleton',
326 'ppapi.gyp:ppapi_cpp',
329 'examples/2d/paint_manager_example.cc',
333 'target_name': 'ppapi_example_input',
335 'ppapi_example_skeleton',
336 'ppapi.gyp:ppapi_cpp',
339 'examples/input/pointer_event_input.cc',
343 'target_name': 'ppapi_example_post_message',
345 'ppapi_example_skeleton',
346 'ppapi.gyp:ppapi_cpp',
349 'examples/scripting/post_message.cc',
353 'target_name': 'ppapi_example_scroll',
355 'ppapi_example_skeleton',
356 'ppapi.gyp:ppapi_cpp',
359 'examples/2d/scroll.cc',
363 'target_name': 'ppapi_example_simple_font',
365 'ppapi_example_skeleton',
366 'ppapi.gyp:ppapi_cpp',
369 'examples/font/simple_font.cc',
373 'target_name': 'ppapi_example_url_loader',
375 'ppapi_example_skeleton',
376 'ppapi.gyp:ppapi_cpp',
379 'examples/url_loader/streaming.cc',
383 'target_name': 'ppapi_example_url_loader_file',
385 'ppapi_example_skeleton',
386 'ppapi.gyp:ppapi_cpp',
389 'examples/url_loader/stream_to_file.cc',
393 'target_name': 'ppapi_example_gles2',
395 'ppapi_example_skeleton',
396 'ppapi.gyp:ppapi_cpp',
397 'ppapi.gyp:ppapi_gles2',
398 'ppapi.gyp:ppapi_egl',
404 'examples/gles2/gles2.cc',
408 'target_name': 'ppapi_example_video_decode',
410 'ppapi_example_skeleton',
411 'ppapi.gyp:ppapi_cpp',
412 'ppapi.gyp:ppapi_gles2',
413 'ppapi.gyp:ppapi_egl',
419 'examples/video_decode/video_decode.cc',
420 'examples/video_decode/testdata.h',
422 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
423 'msvs_disabled_warnings': [ 4267, ],
426 'target_name': 'ppapi_example_vc',
428 'ppapi_example_skeleton',
429 'ppapi.gyp:ppapi_cpp',
430 'ppapi.gyp:ppapi_gles2',
431 'ppapi.gyp:ppapi_egl',
437 'examples/video_capture/video_capture.cc',
441 'target_name': 'ppapi_example_enumerate_devices',
443 'ppapi_example_skeleton',
444 'ppapi.gyp:ppapi_cpp',
447 'examples/enumerate_devices/enumerate_devices.cc',
451 'target_name': 'ppapi_example_flash_topmost',
453 'ppapi_example_skeleton',
454 'ppapi.gyp:ppapi_cpp',
457 'examples/flash_topmost/flash_topmost.cc',
461 'target_name': 'ppapi_example_printing',
463 'ppapi_example_skeleton',
464 'ppapi.gyp:ppapi_cpp',
467 'examples/printing/printing.cc',
469 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
470 'msvs_disabled_warnings': [ 4267, ],