blob: 6f915d61b46e15626e3e8ebb251fb81f7c4b6ff7 [file] [log] [blame]
[email protected]0a424af2012-01-10 19:24:281# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]b42370e2011-01-22 01:13:092# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'targets': [
7 {
8 'target_name': 'ppapi_example',
9 'dependencies': [
[email protected]7a1f7c6f2011-05-10 21:17:4810 'ppapi.gyp:ppapi_cpp'
[email protected]b42370e2011-01-22 01:13:0911 ],
12 'xcode_settings': {
13 'INFOPLIST_FILE': 'example/Info.plist',
14 },
15 'sources': [
16 'example/example.cc',
17 ],
18 'conditions': [
19 ['OS=="win"', {
[email protected]b42370e2011-01-22 01:13:0920 'type': 'shared_library',
[email protected]b42370e2011-01-22 01:13:0921 'sources': [
22 'example/example.rc',
23 ],
24 'run_as': {
25 'action': [
26 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
27 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-example',
28 'file://$(ProjectDir)/example/example.html',
29 ],
30 },
31 }],
[email protected]6a654d452011-05-23 22:06:5432 ['os_posix == 1 and OS != "mac"', {
[email protected]b42370e2011-01-22 01:13:0933 'type': 'shared_library',
34 'cflags': ['-fvisibility=hidden'],
35 # -gstabs, used in the official builds, causes an ICE. Simply remove
36 # it.
37 'cflags!': ['-gstabs'],
38 }],
39 ['OS=="mac"', {
40 'type': 'loadable_module',
41 'mac_bundle': 1,
42 'product_name': 'PPAPIExample',
43 'product_extension': 'plugin',
44 'sources+': [
45 'example/Info.plist'
46 ],
47 }],
48 ],
49 # See README for instructions on how to run and debug on the Mac.
50 #'conditions' : [
51 # ['OS=="mac"', {
52 # 'target_name' : 'Chromium',
53 # 'type' : 'executable',
54 # 'xcode_settings' : {
55 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-sandbox file://${SRCROOT}/test_page.html'
56 # },
57 # }],
58 #],
59 },
[email protected]b42370e2011-01-22 01:13:0960 {
61 'target_name': 'ppapi_tests',
62 'type': 'loadable_module',
[email protected]d44d52b82011-09-02 16:31:3963 'include_dirs': [
64 'lib/gl/include',
65 ],
[email protected]b42370e2011-01-22 01:13:0966 'sources': [
[email protected]70919502011-12-16 02:30:0367 '<@(test_common_source_files)',
68 '<@(test_trusted_source_files)',
[email protected]b42370e2011-01-22 01:13:0969 ],
70 'dependencies': [
[email protected]794d83cd2011-10-20 19:09:2071 'ppapi.gyp:ppapi_cpp',
72 'ppapi_internal.gyp:ppapi_shared',
[email protected]b42370e2011-01-22 01:13:0973 ],
[email protected]190d41f2011-08-30 15:58:4874 'run_as': {
75 'action': [
76 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
77 '--enable-pepper-testing',
78 '--enable-accelerated-plugins',
79 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests',
80 'file://$(ProjectDir)/tests/test_case.html?testcase=',
81 ],
82 },
[email protected]b42370e2011-01-22 01:13:0983 'conditions': [
84 ['OS=="win"', {
85 'defines': [
86 '_CRT_SECURE_NO_DEPRECATE',
87 '_CRT_NONSTDC_NO_WARNINGS',
88 '_CRT_NONSTDC_NO_DEPRECATE',
89 '_SCL_SECURE_NO_DEPRECATE',
90 ],
91 }],
92 ['OS=="mac"', {
93 'mac_bundle': 1,
94 'product_name': 'ppapi_tests',
95 'product_extension': 'plugin',
96 }],
[email protected]a026daa2011-04-20 15:49:5197 ['p2p_apis==1', {
98 'sources': [
99 'tests/test_transport.cc',
100 'tests/test_transport.h',
101 ],
102 }],
[email protected]b42370e2011-01-22 01:13:09103 ],
104# TODO(dmichael): Figure out what is wrong with the script on Windows and add
105# it as an automated action.
106# 'actions': [
107# {
108# 'action_name': 'generate_ppapi_include_tests',
109# 'inputs': [],
110# 'outputs': [
111# 'tests/test_c_includes.c',
112# 'tests/test_cc_includes.cc',
113# ],
114# 'action': [
115# '<!@(python generate_ppapi_include_tests.py)',
116# ],
117# },
118# ],
119 },
120 {
[email protected]514e2ce2012-01-24 20:29:04121 'target_name': 'ppapi_unittest_shared',
122 'type': 'static_library',
123 'dependencies': [
124 'ppapi_proxy',
125 'ppapi_shared',
126 '../base/base.gyp:test_support_base',
127 '../ipc/ipc.gyp:ipc',
128 '../ipc/ipc.gyp:test_support_ipc',
129 '../testing/gmock.gyp:gmock',
130 '../testing/gtest.gyp:gtest',
131 ],
132 'sources': [
133 'proxy/ppapi_proxy_test.cc',
134 'proxy/ppapi_proxy_test.h',
135 'shared_impl/test_globals.cc',
136 'shared_impl/test_globals.h',
137 ],
138 },
139
140 {
141 'target_name': 'ppapi_perftests',
142 'type': 'executable',
143 'variables': {
144 'chromium_code': 1,
145 },
146 'dependencies': [
147 'ppapi_proxy',
148 'ppapi_shared',
149 'ppapi_unittest_shared',
150 '../base/base.gyp:test_support_base',
151 '../testing/gtest.gyp:gtest',
152 ],
153 'sources': [
154 'proxy/ppapi_perftests.cc',
155 'proxy/ppp_messaging_proxy_perftest.cc',
156 ],
157 },
158 {
[email protected]b42370e2011-01-22 01:13:09159 'target_name': 'ppapi_unittests',
160 'type': 'executable',
161 'variables': {
162 'chromium_code': 1,
163 },
[email protected]b42370e2011-01-22 01:13:09164 'dependencies': [
165 'ppapi_proxy',
[email protected]f0a04c42011-08-26 22:43:20166 'ppapi_shared',
[email protected]514e2ce2012-01-24 20:29:04167 'ppapi_unittest_shared',
[email protected]b42370e2011-01-22 01:13:09168 '../base/base.gyp:test_support_base',
[email protected]f0a04c42011-08-26 22:43:20169 '../gpu/gpu.gyp:gpu_ipc',
170 '../ipc/ipc.gyp:ipc',
[email protected]b42370e2011-01-22 01:13:09171 '../ipc/ipc.gyp:test_support_ipc',
172 '../testing/gmock.gyp:gmock',
173 '../testing/gtest.gyp:gtest',
[email protected]7a1f7c6f2011-05-10 21:17:48174 '../ui/gfx/surface/surface.gyp:surface',
[email protected]b42370e2011-01-22 01:13:09175 ],
176 'sources': [
177 'proxy/run_all_unittests.cc',
178
[email protected]f24448db2011-01-27 20:40:39179 'proxy/mock_resource.cc',
180 'proxy/mock_resource.h',
[email protected]465faa22011-02-08 16:31:46181 'proxy/plugin_dispatcher_unittest.cc',
[email protected]f24448db2011-01-27 20:40:39182 'proxy/plugin_resource_tracker_unittest.cc',
[email protected]b42370e2011-01-22 01:13:09183 'proxy/plugin_var_tracker_unittest.cc',
[email protected]b20df1c2011-08-03 14:38:24184 'proxy/ppb_var_unittest.cc',
[email protected]725c0512011-09-23 20:01:21185 'proxy/ppp_instance_private_proxy_unittest.cc',
186 'proxy/ppp_instance_proxy_unittest.cc',
187 'proxy/ppp_messaging_proxy_unittest.cc',
[email protected]f24448db2011-01-27 20:40:39188 'proxy/serialized_var_unittest.cc',
[email protected]7f8b26b2011-08-18 15:41:01189 'shared_impl/resource_tracker_unittest.cc',
[email protected]bbc49122011-12-29 20:16:50190 'shared_impl/tracked_callback_unittest.cc',
[email protected]e0c18c72011-12-16 07:09:59191 'shared_impl/var_tracker_unittest.cc',
[email protected]b42370e2011-01-22 01:13:09192 ],
[email protected]f24448db2011-01-27 20:40:39193 },
[email protected]ea8bc982011-10-15 23:16:16194 {
195 'target_name': 'ppapi_example_skeleton',
196 'suppress_wildcard': 1,
197 'type': 'none',
198 'direct_dependent_settings': {
199 'product_name': '>(_target_name)',
200 'conditions': [
[email protected]c48aef92011-11-22 23:41:45201 ['os_posix==1 and OS!="mac"', {
[email protected]ea8bc982011-10-15 23:16:16202 'cflags': ['-fvisibility=hidden'],
203 'type': 'shared_library',
204 # -gstabs, used in the official builds, causes an ICE. Simply remove
205 # it.
206 'cflags!': ['-gstabs'],
207 }],
208 ['OS=="win"', {
209 'type': 'shared_library',
210 }],
211 ['OS=="mac"', {
212 'type': 'loadable_module',
[email protected]1d6919c2011-11-14 19:29:01213 'mac_bundle': 1,
214 'product_extension': 'plugin',
215 'xcode_settings': {
216 'OTHER_LDFLAGS': [
217 # Not to strip important symbols by -Wl,-dead_strip.
218 '-Wl,-exported_symbol,_PPP_GetInterface',
219 '-Wl,-exported_symbol,_PPP_InitializeModule',
220 '-Wl,-exported_symbol,_PPP_ShutdownModule'
221 ]},
[email protected]ea8bc982011-10-15 23:16:16222 }],
223 ],
224 },
225 },
226 {
227 'target_name': 'ppapi_example_mouse_lock',
228 'dependencies': [
229 'ppapi_example_skeleton',
230 'ppapi.gyp:ppapi_cpp',
231 ],
232 'sources': [
233 'examples/mouse_lock/mouse_lock.cc',
234 ],
235 },
[email protected]532e5682011-06-20 02:17:37236
[email protected]1d6919c2011-11-14 19:29:01237 {
[email protected]0a424af2012-01-10 19:24:28238 'target_name': 'ppapi_example_gamepad',
239 'dependencies': [
240 'ppapi_example_skeleton',
241 'ppapi.gyp:ppapi_cpp',
242 ],
243 'sources': [
244 'examples/gamepad/gamepad.cc',
245 ],
246 },
247
248 {
[email protected]1d6919c2011-11-14 19:29:01249 'target_name': 'ppapi_example_c_stub',
250 'dependencies': [
251 'ppapi_example_skeleton',
252 'ppapi.gyp:ppapi_c',
[email protected]532e5682011-06-20 02:17:37253 ],
[email protected]1d6919c2011-11-14 19:29:01254 'sources': [
255 'examples/stub/stub.c',
256 ],
257 },
258 {
259 'target_name': 'ppapi_example_cc_stub',
260 'dependencies': [
261 'ppapi_example_skeleton',
262 'ppapi.gyp:ppapi_cpp',
263 ],
264 'sources': [
265 'examples/stub/stub.cc',
266 ],
267 },
268 {
269 'target_name': 'ppapi_example_audio',
270 'dependencies': [
271 'ppapi_example_skeleton',
272 'ppapi.gyp:ppapi_cpp',
273 ],
274 'sources': [
275 'examples/audio/audio.cc',
276 ],
277 },
278 {
[email protected]89f9d2de2011-11-25 23:55:29279 'target_name': 'ppapi_example_audio_input',
280 'dependencies': [
281 'ppapi_example_skeleton',
282 'ppapi.gyp:ppapi_cpp',
283 ],
284 'sources': [
285 'examples/audio_input/audio_input.cc',
286 ],
287 },
288 {
[email protected]1d6919c2011-11-14 19:29:01289 'target_name': 'ppapi_example_file_chooser',
290 'dependencies': [
291 'ppapi_example_skeleton',
292 'ppapi.gyp:ppapi_cpp',
293 ],
294 'sources': [
295 'examples/file_chooser/file_chooser.cc',
296 ],
297 },
298 {
299 'target_name': 'ppapi_example_graphics_2d',
300 'dependencies': [
301 'ppapi_example_skeleton',
302 'ppapi.gyp:ppapi_c',
303 ],
304 'sources': [
305 'examples/2d/graphics_2d_example.c',
306 ],
307 },
308 {
309 'target_name': 'ppapi_example_ime',
310 'dependencies': [
311 'ppapi_example_skeleton',
312 'ppapi.gyp:ppapi_cpp',
313 ],
314 'sources': [
315 'examples/ime/ime.cc',
316 ],
317 },
318 {
319 'target_name': 'ppapi_example_paint_manager',
320 'dependencies': [
321 'ppapi_example_skeleton',
322 'ppapi.gyp:ppapi_cpp',
323 ],
324 'sources': [
325 'examples/2d/paint_manager_example.cc',
326 ],
327 },
328 {
329 'target_name': 'ppapi_example_post_message',
330 'dependencies': [
331 'ppapi_example_skeleton',
332 'ppapi.gyp:ppapi_cpp',
333 ],
334 'sources': [
335 'examples/scripting/post_message.cc',
336 ],
337 },
338 {
339 'target_name': 'ppapi_example_scroll',
340 'dependencies': [
341 'ppapi_example_skeleton',
342 'ppapi.gyp:ppapi_cpp',
343 ],
344 'sources': [
345 'examples/2d/scroll.cc',
346 ],
347 },
348 {
349 'target_name': 'ppapi_example_simple_font',
350 'dependencies': [
351 'ppapi_example_skeleton',
352 'ppapi.gyp:ppapi_cpp',
353 ],
354 'sources': [
355 'examples/font/simple_font.cc',
356 ],
357 },
358 {
359 'target_name': 'ppapi_example_url_loader',
360 'dependencies': [
361 'ppapi_example_skeleton',
362 'ppapi.gyp:ppapi_cpp',
363 ],
364 'sources': [
365 'examples/url_loader/streaming.cc',
366 ],
367 },
368 {
369 'target_name': 'ppapi_example_gles2',
370 'dependencies': [
371 'ppapi_example_skeleton',
372 'ppapi.gyp:ppapi_cpp',
373 'ppapi.gyp:ppapi_gles2',
374 'ppapi.gyp:ppapi_egl',
375 ],
376 'include_dirs': [
377 'lib/gl/include',
378 ],
379 'sources': [
380 'examples/gles2/gles2.cc',
381 'examples/gles2/testdata.h',
382 ],
383 },
384 {
385 'target_name': 'ppapi_example_vc',
386 'dependencies': [
387 'ppapi_example_skeleton',
388 'ppapi.gyp:ppapi_cpp',
389 'ppapi.gyp:ppapi_gles2',
390 'ppapi.gyp:ppapi_egl',
391 ],
392 'include_dirs': [
393 'lib/gl/include',
394 ],
395 'sources': [
396 'examples/video_capture/video_capture.cc',
397 ],
398 },
399 ],
[email protected]b42370e2011-01-22 01:13:09400}