OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'ppapi_example', | 8 'target_name': 'ppapi_example', |
9 'dependencies': [ | 9 'dependencies': [ |
10 'ppapi.gyp:ppapi_cpp' | 10 'ppapi.gyp:ppapi_cpp' |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 'type': 'shared_library', | 237 'type': 'shared_library', |
238 # -gstabs, used in the official builds, causes an ICE. Simply remove | 238 # -gstabs, used in the official builds, causes an ICE. Simply remove |
239 # it. | 239 # it. |
240 'cflags!': ['-gstabs'], | 240 'cflags!': ['-gstabs'], |
241 }], | 241 }], |
242 ['OS=="win"', { | 242 ['OS=="win"', { |
243 'type': 'shared_library', | 243 'type': 'shared_library', |
244 }], | 244 }], |
245 ['OS=="mac"', { | 245 ['OS=="mac"', { |
246 'type': 'loadable_module', | 246 'type': 'loadable_module', |
| 247 'mac_bundle': 1, |
| 248 'product_extension': 'plugin', |
| 249 'xcode_settings': { |
| 250 'OTHER_LDFLAGS': [ |
| 251 # Not to strip important symbols by -Wl,-dead_strip. |
| 252 '-Wl,-exported_symbol,_PPP_GetInterface', |
| 253 '-Wl,-exported_symbol,_PPP_InitializeModule', |
| 254 '-Wl,-exported_symbol,_PPP_ShutdownModule' |
| 255 ]}, |
247 }], | 256 }], |
248 ], | 257 ], |
249 }, | 258 }, |
250 }, | 259 }, |
251 { | 260 { |
252 'target_name': 'ppapi_example_mouse_lock', | 261 'target_name': 'ppapi_example_mouse_lock', |
253 'dependencies': [ | 262 'dependencies': [ |
254 'ppapi_example_skeleton', | 263 'ppapi_example_skeleton', |
255 'ppapi.gyp:ppapi_cpp', | 264 'ppapi.gyp:ppapi_cpp', |
256 ], | 265 ], |
257 'sources': [ | 266 'sources': [ |
258 'examples/mouse_lock/mouse_lock.cc', | 267 'examples/mouse_lock/mouse_lock.cc', |
259 ], | 268 ], |
260 }, | 269 }, |
| 270 |
| 271 { |
| 272 'target_name': 'ppapi_example_c_stub', |
| 273 'dependencies': [ |
| 274 'ppapi_example_skeleton', |
| 275 'ppapi.gyp:ppapi_c', |
| 276 ], |
| 277 'sources': [ |
| 278 'examples/stub/stub.c', |
| 279 ], |
| 280 }, |
| 281 { |
| 282 'target_name': 'ppapi_example_cc_stub', |
| 283 'dependencies': [ |
| 284 'ppapi_example_skeleton', |
| 285 'ppapi.gyp:ppapi_cpp', |
| 286 ], |
| 287 'sources': [ |
| 288 'examples/stub/stub.cc', |
| 289 ], |
| 290 }, |
| 291 { |
| 292 'target_name': 'ppapi_example_audio', |
| 293 'dependencies': [ |
| 294 'ppapi_example_skeleton', |
| 295 'ppapi.gyp:ppapi_cpp', |
| 296 ], |
| 297 'sources': [ |
| 298 'examples/audio/audio.cc', |
| 299 ], |
| 300 }, |
| 301 { |
| 302 'target_name': 'ppapi_example_file_chooser', |
| 303 'dependencies': [ |
| 304 'ppapi_example_skeleton', |
| 305 'ppapi.gyp:ppapi_cpp', |
| 306 ], |
| 307 'sources': [ |
| 308 'examples/file_chooser/file_chooser.cc', |
| 309 ], |
| 310 }, |
| 311 { |
| 312 'target_name': 'ppapi_example_graphics_2d', |
| 313 'dependencies': [ |
| 314 'ppapi_example_skeleton', |
| 315 'ppapi.gyp:ppapi_c', |
| 316 ], |
| 317 'sources': [ |
| 318 'examples/2d/graphics_2d_example.c', |
| 319 ], |
| 320 }, |
| 321 { |
| 322 'target_name': 'ppapi_example_ime', |
| 323 'dependencies': [ |
| 324 'ppapi_example_skeleton', |
| 325 'ppapi.gyp:ppapi_cpp', |
| 326 ], |
| 327 'sources': [ |
| 328 'examples/ime/ime.cc', |
| 329 ], |
| 330 }, |
| 331 { |
| 332 'target_name': 'ppapi_example_paint_manager', |
| 333 'dependencies': [ |
| 334 'ppapi_example_skeleton', |
| 335 'ppapi.gyp:ppapi_cpp', |
| 336 ], |
| 337 'sources': [ |
| 338 'examples/2d/paint_manager_example.cc', |
| 339 ], |
| 340 }, |
| 341 { |
| 342 'target_name': 'ppapi_example_post_message', |
| 343 'dependencies': [ |
| 344 'ppapi_example_skeleton', |
| 345 'ppapi.gyp:ppapi_cpp', |
| 346 ], |
| 347 'sources': [ |
| 348 'examples/scripting/post_message.cc', |
| 349 ], |
| 350 }, |
| 351 { |
| 352 'target_name': 'ppapi_example_scroll', |
| 353 'dependencies': [ |
| 354 'ppapi_example_skeleton', |
| 355 'ppapi.gyp:ppapi_cpp', |
| 356 ], |
| 357 'sources': [ |
| 358 'examples/2d/scroll.cc', |
| 359 ], |
| 360 }, |
| 361 { |
| 362 'target_name': 'ppapi_example_simple_font', |
| 363 'dependencies': [ |
| 364 'ppapi_example_skeleton', |
| 365 'ppapi.gyp:ppapi_cpp', |
| 366 ], |
| 367 'sources': [ |
| 368 'examples/font/simple_font.cc', |
| 369 ], |
| 370 }, |
| 371 { |
| 372 'target_name': 'ppapi_example_url_loader', |
| 373 'dependencies': [ |
| 374 'ppapi_example_skeleton', |
| 375 'ppapi.gyp:ppapi_cpp', |
| 376 ], |
| 377 'sources': [ |
| 378 'examples/url_loader/streaming.cc', |
| 379 ], |
| 380 }, |
| 381 { |
| 382 'target_name': 'ppapi_example_gles2', |
| 383 'dependencies': [ |
| 384 'ppapi_example_skeleton', |
| 385 'ppapi.gyp:ppapi_cpp', |
| 386 'ppapi.gyp:ppapi_gles2', |
| 387 'ppapi.gyp:ppapi_egl', |
| 388 ], |
| 389 'include_dirs': [ |
| 390 'lib/gl/include', |
| 391 ], |
| 392 'sources': [ |
| 393 'examples/gles2/gles2.cc', |
| 394 'examples/gles2/testdata.h', |
| 395 ], |
| 396 }, |
| 397 { |
| 398 'target_name': 'ppapi_example_vc', |
| 399 'dependencies': [ |
| 400 'ppapi_example_skeleton', |
| 401 'ppapi.gyp:ppapi_cpp', |
| 402 'ppapi.gyp:ppapi_gles2', |
| 403 'ppapi.gyp:ppapi_egl', |
| 404 ], |
| 405 'include_dirs': [ |
| 406 'lib/gl/include', |
| 407 ], |
| 408 'sources': [ |
| 409 'examples/video_capture/video_capture.cc', |
| 410 ], |
| 411 }, |
261 ], | 412 ], |
262 | |
263 'conditions': [ | |
264 # NOTE: the PPAPI examples fail to build on mac & windows. | |
265 # http://code.google.com/p/chromium/issues/detail?id=54005 tracks mac. | |
266 ['OS!="mac"', { | |
267 'targets': [ | |
268 { | |
269 'target_name': 'ppapi_example_c_stub', | |
270 'dependencies': [ | |
271 'ppapi_example_skeleton', | |
272 'ppapi.gyp:ppapi_c', | |
273 ], | |
274 'sources': [ | |
275 'examples/stub/stub.c', | |
276 ], | |
277 }, | |
278 { | |
279 'target_name': 'ppapi_example_cc_stub', | |
280 'dependencies': [ | |
281 'ppapi_example_skeleton', | |
282 'ppapi.gyp:ppapi_cpp', | |
283 ], | |
284 'sources': [ | |
285 'examples/stub/stub.cc', | |
286 ], | |
287 }, | |
288 { | |
289 'target_name': 'ppapi_example_audio', | |
290 'dependencies': [ | |
291 'ppapi_example_skeleton', | |
292 'ppapi.gyp:ppapi_cpp', | |
293 ], | |
294 'sources': [ | |
295 'examples/audio/audio.cc', | |
296 ], | |
297 }, | |
298 { | |
299 'target_name': 'ppapi_example_file_chooser', | |
300 'dependencies': [ | |
301 'ppapi_example_skeleton', | |
302 'ppapi.gyp:ppapi_cpp', | |
303 ], | |
304 'sources': [ | |
305 'examples/file_chooser/file_chooser.cc', | |
306 ], | |
307 }, | |
308 { | |
309 'target_name': 'ppapi_example_graphics_2d', | |
310 'dependencies': [ | |
311 'ppapi_example_skeleton', | |
312 'ppapi.gyp:ppapi_c', | |
313 ], | |
314 'sources': [ | |
315 'examples/2d/graphics_2d_example.c', | |
316 ], | |
317 }, | |
318 { | |
319 'target_name': 'ppapi_example_ime', | |
320 'dependencies': [ | |
321 'ppapi_example_skeleton', | |
322 'ppapi.gyp:ppapi_cpp', | |
323 ], | |
324 'sources': [ | |
325 'examples/ime/ime.cc', | |
326 ], | |
327 }, | |
328 { | |
329 'target_name': 'ppapi_example_paint_manager', | |
330 'dependencies': [ | |
331 'ppapi_example_skeleton', | |
332 'ppapi.gyp:ppapi_cpp', | |
333 ], | |
334 'sources': [ | |
335 'examples/2d/paint_manager_example.cc', | |
336 ], | |
337 }, | |
338 { | |
339 'target_name': 'ppapi_example_post_message', | |
340 'dependencies': [ | |
341 'ppapi_example_skeleton', | |
342 'ppapi.gyp:ppapi_cpp', | |
343 ], | |
344 'sources': [ | |
345 'examples/scripting/post_message.cc', | |
346 ], | |
347 }, | |
348 { | |
349 'target_name': 'ppapi_example_scroll', | |
350 'dependencies': [ | |
351 'ppapi_example_skeleton', | |
352 'ppapi.gyp:ppapi_cpp', | |
353 ], | |
354 'sources': [ | |
355 'examples/2d/scroll.cc', | |
356 ], | |
357 }, | |
358 { | |
359 'target_name': 'ppapi_example_simple_font', | |
360 'dependencies': [ | |
361 'ppapi_example_skeleton', | |
362 'ppapi.gyp:ppapi_cpp', | |
363 ], | |
364 'sources': [ | |
365 'examples/font/simple_font.cc', | |
366 ], | |
367 }, | |
368 { | |
369 'target_name': 'ppapi_example_url_loader', | |
370 'dependencies': [ | |
371 'ppapi_example_skeleton', | |
372 'ppapi.gyp:ppapi_cpp', | |
373 ], | |
374 'sources': [ | |
375 'examples/url_loader/streaming.cc', | |
376 ], | |
377 }, | |
378 { | |
379 'target_name': 'ppapi_example_gles2', | |
380 'dependencies': [ | |
381 'ppapi_example_skeleton', | |
382 'ppapi.gyp:ppapi_cpp', | |
383 'ppapi.gyp:ppapi_gles2', | |
384 'ppapi.gyp:ppapi_egl', | |
385 ], | |
386 'include_dirs': [ | |
387 'lib/gl/include', | |
388 ], | |
389 'sources': [ | |
390 'examples/gles2/gles2.cc', | |
391 'examples/gles2/testdata.h', | |
392 ], | |
393 }, | |
394 { | |
395 'target_name': 'ppapi_example_vc', | |
396 'dependencies': [ | |
397 'ppapi_example_skeleton', | |
398 'ppapi.gyp:ppapi_cpp', | |
399 'ppapi.gyp:ppapi_gles2', | |
400 'ppapi.gyp:ppapi_egl', | |
401 ], | |
402 'include_dirs': [ | |
403 'lib/gl/include', | |
404 ], | |
405 'sources': [ | |
406 'examples/video_capture/video_capture.cc', | |
407 ], | |
408 }, | |
409 ], | |
410 }] | |
411 ] | |
412 } | 413 } |
OLD | NEW |