OLD | NEW |
| (Empty) |
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. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 # GN version: //ppapi:ppapi_tests | |
9 'target_name': 'ppapi_tests', | |
10 'type': 'loadable_module', | |
11 'include_dirs': [ | |
12 'lib/gl/include', | |
13 ], | |
14 'defines': [ | |
15 'GL_GLEXT_PROTOTYPES', | |
16 ], | |
17 'sources': [ | |
18 '<@(test_common_source_files)', | |
19 '<@(test_trusted_source_files)', | |
20 ], | |
21 'dependencies': [ | |
22 'ppapi.gyp:ppapi_cpp', | |
23 'ppapi_internal.gyp:ppapi_shared', | |
24 ], | |
25 'copies': [ | |
26 { | |
27 'destination': '<(PRODUCT_DIR)', | |
28 'files': [ | |
29 # Keep 'test_case.html.mock-http-headers' with 'test_case.html'. | |
30 'tests/test_case.html', | |
31 'tests/test_case.html.mock-http-headers', | |
32 'tests/test_page.css', | |
33 'tests/test_page.css.mock-http-headers', | |
34 'tests/ppapi_nacl_tests_newlib.nmf', | |
35 ], | |
36 }, | |
37 { | |
38 'destination': '<(PRODUCT_DIR)/test_url_loader_data', | |
39 'files': [ | |
40 'tests/test_url_loader_data/hello.txt', | |
41 ], | |
42 }, | |
43 ], | |
44 'run_as': { | |
45 'action': [ | |
46 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | |
47 '--enable-pepper-testing', | |
48 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests', | |
49 'file://$(ProjectDir)/tests/test_case.html?testcase=', | |
50 ], | |
51 }, | |
52 'conditions': [ | |
53 ['OS=="win"', { | |
54 'defines': [ | |
55 '_CRT_SECURE_NO_DEPRECATE', | |
56 '_CRT_NONSTDC_NO_WARNINGS', | |
57 '_CRT_NONSTDC_NO_DEPRECATE', | |
58 '_SCL_SECURE_NO_DEPRECATE', | |
59 ], | |
60 }], | |
61 ['OS=="mac"', { | |
62 'mac_bundle': 1, | |
63 'product_name': 'ppapi_tests', | |
64 'product_extension': 'plugin', | |
65 }], | |
66 ], | |
67 # TODO(dmichael): Figure out what is wrong with the script on Windows and add | |
68 # it as an automated action. | |
69 # 'actions': [ | |
70 # { | |
71 # 'action_name': 'generate_ppapi_include_tests', | |
72 # 'inputs': [], | |
73 # 'outputs': [ | |
74 # 'tests/test_c_includes.c', | |
75 # 'tests/test_cc_includes.cc', | |
76 # ], | |
77 # 'action': [ | |
78 # '<!@(python generate_ppapi_include_tests.py)', | |
79 # ], | |
80 # }, | |
81 # ], | |
82 }, | |
83 { | |
84 # GN version: //ppapi:power_saver_test_plugin | |
85 'target_name': 'power_saver_test_plugin', | |
86 'type': 'loadable_module', | |
87 'sources': [ | |
88 'tests/power_saver_test_plugin.cc', | |
89 'tests/test_utils.cc', | |
90 ], | |
91 'dependencies': [ | |
92 'ppapi.gyp:ppapi_cpp', | |
93 'ppapi_internal.gyp:ppapi_shared', | |
94 ], | |
95 'conditions': [ | |
96 ['OS=="mac"', { | |
97 'mac_bundle': 1, | |
98 'product_name': 'power_saver_test_plugin', | |
99 'product_extension': 'plugin', | |
100 }], | |
101 ], | |
102 }, | |
103 { | |
104 # GN version: //ppapi:blink_deprecated_test_plugin | |
105 'target_name': 'blink_deprecated_test_plugin', | |
106 'type': 'loadable_module', | |
107 'sources': [ | |
108 'tests/blink_deprecated_test_plugin.cc', | |
109 ], | |
110 'dependencies': [ | |
111 '../base/base.gyp:base', | |
112 'ppapi.gyp:ppapi_cpp', | |
113 'ppapi_internal.gyp:ppapi_shared', | |
114 ], | |
115 'conditions': [ | |
116 ['OS=="mac"', { | |
117 'mac_bundle': 1, | |
118 'product_name': 'blink_deprecated_test_plugin', | |
119 'product_extension': 'plugin', | |
120 }], | |
121 ], | |
122 }, | |
123 { | |
124 # GN version: //ppapi:blink_test_plugin | |
125 'target_name': 'blink_test_plugin', | |
126 'type': 'loadable_module', | |
127 'sources': [ | |
128 'tests/blink_test_plugin.cc', | |
129 ], | |
130 'dependencies': [ | |
131 '../base/base.gyp:base', | |
132 'ppapi.gyp:ppapi_cpp', | |
133 'ppapi_internal.gyp:ppapi_shared', | |
134 ], | |
135 'conditions': [ | |
136 ['OS=="mac"', { | |
137 'mac_bundle': 1, | |
138 'product_name': 'blink_test_plugin', | |
139 'product_extension': 'plugin', | |
140 }], | |
141 ], | |
142 }, | |
143 { | |
144 # GN version: //ppapi/proxy:test_support | |
145 # //ppapi/shared_impl:test_support | |
146 'target_name': 'ppapi_unittest_shared', | |
147 'type': 'static_library', | |
148 'dependencies': [ | |
149 'ppapi_proxy', | |
150 'ppapi_shared', | |
151 '../base/base.gyp:test_support_base', | |
152 '../ipc/ipc.gyp:ipc', | |
153 '../ipc/ipc.gyp:test_support_ipc', | |
154 '../mojo/mojo_edk.gyp:mojo_system_impl', | |
155 '../testing/gmock.gyp:gmock', | |
156 '../testing/gtest.gyp:gtest', | |
157 ], | |
158 'sources': [ | |
159 # Note: sources list duplicated in GN build. | |
160 'proxy/ppapi_proxy_test.cc', | |
161 'proxy/ppapi_proxy_test.h', | |
162 'proxy/resource_message_test_sink.cc', | |
163 'proxy/resource_message_test_sink.h', | |
164 'shared_impl/test_globals.cc', | |
165 'shared_impl/test_globals.h', | |
166 'shared_impl/test_utils.cc', | |
167 'shared_impl/test_utils.h', | |
168 ], | |
169 }, | |
170 | |
171 { | |
172 # GN version: //ppapi:ppapi_perftests | |
173 'target_name': 'ppapi_perftests', | |
174 'type': 'executable', | |
175 'variables': { | |
176 'chromium_code': 1, | |
177 }, | |
178 'dependencies': [ | |
179 'ppapi_proxy', | |
180 'ppapi_shared', | |
181 'ppapi_unittest_shared', | |
182 '../base/base.gyp:test_support_base', | |
183 '../mojo/mojo_edk.gyp:mojo_system_impl', | |
184 '../testing/gtest.gyp:gtest', | |
185 ], | |
186 'sources': [ | |
187 'proxy/ppapi_perftests.cc', | |
188 'proxy/ppp_messaging_proxy_perftest.cc', | |
189 ], | |
190 }, | |
191 { | |
192 # GN version: //ppapi:ppapi_unittests | |
193 'target_name': 'ppapi_unittests', | |
194 'type': 'executable', | |
195 'variables': { | |
196 'chromium_code': 1, | |
197 }, | |
198 'dependencies': [ | |
199 'ppapi_host', | |
200 'ppapi_proxy', | |
201 'ppapi_shared', | |
202 'ppapi_unittest_shared', | |
203 '../base/base.gyp:test_support_base', | |
204 '../gpu/gpu.gyp:gpu_ipc_common', | |
205 '../ipc/ipc.gyp:ipc', | |
206 '../ipc/ipc.gyp:ipc_run_all_unittests', | |
207 '../ipc/ipc.gyp:test_support_ipc', | |
208 '../media/media.gyp:shared_memory_support', | |
209 '../skia/skia.gyp:skia', | |
210 '../testing/gmock.gyp:gmock', | |
211 '../testing/gtest.gyp:gtest', | |
212 '../ui/gfx/gfx.gyp:gfx_geometry', | |
213 '../ui/surface/surface.gyp:surface', | |
214 ], | |
215 'sources': [ | |
216 # Note: sources list duplicated in GN build. | |
217 'host/resource_message_filter_unittest.cc', | |
218 'proxy/device_enumeration_resource_helper_unittest.cc', | |
219 'proxy/file_chooser_resource_unittest.cc', | |
220 'proxy/file_system_resource_unittest.cc', | |
221 'proxy/flash_resource_unittest.cc', | |
222 'proxy/interface_list_unittest.cc', | |
223 'proxy/mock_resource.cc', | |
224 'proxy/mock_resource.h', | |
225 'proxy/nacl_message_scanner_unittest.cc', | |
226 'proxy/pdf_resource_unittest.cc', | |
227 'proxy/plugin_dispatcher_unittest.cc', | |
228 'proxy/plugin_resource_tracker_unittest.cc', | |
229 'proxy/plugin_var_tracker_unittest.cc', | |
230 'proxy/ppb_var_unittest.cc', | |
231 'proxy/ppp_instance_private_proxy_unittest.cc', | |
232 'proxy/ppp_instance_proxy_unittest.cc', | |
233 'proxy/ppp_messaging_proxy_unittest.cc', | |
234 'proxy/printing_resource_unittest.cc', | |
235 'proxy/raw_var_data_unittest.cc', | |
236 'proxy/serialized_var_unittest.cc', | |
237 'proxy/tracked_callback_unittest.cc', | |
238 'proxy/video_decoder_resource_unittest.cc', | |
239 'proxy/video_encoder_resource_unittest.cc', | |
240 'proxy/websocket_resource_unittest.cc', | |
241 'shared_impl/media_stream_audio_track_shared_unittest.cc', | |
242 'shared_impl/media_stream_buffer_manager_unittest.cc', | |
243 'shared_impl/media_stream_video_track_shared_unittest.cc', | |
244 'shared_impl/proxy_lock_unittest.cc', | |
245 'shared_impl/resource_tracker_unittest.cc', | |
246 'shared_impl/thread_aware_callback_unittest.cc', | |
247 'shared_impl/time_conversion_unittest.cc', | |
248 'shared_impl/var_tracker_unittest.cc', | |
249 ], | |
250 }, | |
251 { | |
252 'target_name': 'ppapi_example_skeleton', | |
253 'suppress_wildcard': 1, | |
254 'type': 'none', | |
255 'direct_dependent_settings': { | |
256 'product_name': '>(_target_name)', | |
257 'conditions': [ | |
258 ['os_posix==1 and OS!="mac"', { | |
259 'cflags': ['-fvisibility=hidden'], | |
260 'type': 'shared_library', | |
261 }], | |
262 ['OS=="win"', { | |
263 'type': 'shared_library', | |
264 }], | |
265 ['OS=="mac"', { | |
266 'type': 'loadable_module', | |
267 'mac_bundle': 1, | |
268 'product_extension': 'plugin', | |
269 'xcode_settings': { | |
270 'OTHER_LDFLAGS': [ | |
271 # Not to strip important symbols by -Wl,-dead_strip. | |
272 '-Wl,-exported_symbol,_PPP_GetInterface', | |
273 '-Wl,-exported_symbol,_PPP_InitializeModule', | |
274 '-Wl,-exported_symbol,_PPP_ShutdownModule' | |
275 ]}, | |
276 }], | |
277 ], | |
278 }, | |
279 }, | |
280 { | |
281 # GN version: //ppapi/examples/mouse_cursor | |
282 'target_name': 'ppapi_example_mouse_cursor', | |
283 'dependencies': [ | |
284 'ppapi_example_skeleton', | |
285 'ppapi.gyp:ppapi_cpp', | |
286 ], | |
287 'sources': [ | |
288 'examples/mouse_cursor/mouse_cursor.cc', | |
289 ], | |
290 }, | |
291 { | |
292 # GN version: //ppapi/examples/mouse_lock | |
293 'target_name': 'ppapi_example_mouse_lock', | |
294 'dependencies': [ | |
295 'ppapi_example_skeleton', | |
296 'ppapi.gyp:ppapi_cpp', | |
297 ], | |
298 'sources': [ | |
299 'examples/mouse_lock/mouse_lock.cc', | |
300 ], | |
301 }, | |
302 | |
303 { | |
304 # GN version: //ppapi/examples/gamepad | |
305 'target_name': 'ppapi_example_gamepad', | |
306 'dependencies': [ | |
307 'ppapi_example_skeleton', | |
308 'ppapi.gyp:ppapi_cpp', | |
309 ], | |
310 'sources': [ | |
311 'examples/gamepad/gamepad.cc', | |
312 ], | |
313 }, | |
314 | |
315 { | |
316 # GN version: //ppapi/examples/stub:c_stub | |
317 'target_name': 'ppapi_example_c_stub', | |
318 'dependencies': [ | |
319 'ppapi_example_skeleton', | |
320 'ppapi.gyp:ppapi_c', | |
321 ], | |
322 'sources': [ | |
323 'examples/stub/stub.c', | |
324 ], | |
325 }, | |
326 { | |
327 # GN version: //ppapi/examples/stub:cc_stub | |
328 'target_name': 'ppapi_example_cc_stub', | |
329 'dependencies': [ | |
330 'ppapi_example_skeleton', | |
331 'ppapi.gyp:ppapi_cpp', | |
332 ], | |
333 'sources': [ | |
334 'examples/stub/stub.cc', | |
335 ], | |
336 }, | |
337 { | |
338 # GN version: //ppapi/examples/crxfs | |
339 'target_name': 'ppapi_example_crxfs', | |
340 'dependencies': [ | |
341 'ppapi_example_skeleton', | |
342 'ppapi.gyp:ppapi_cpp', | |
343 ], | |
344 'sources': [ | |
345 'examples/crxfs/crxfs.cc', | |
346 ], | |
347 }, | |
348 { | |
349 # GN version: //ppapi/examples/audio | |
350 'target_name': 'ppapi_example_audio', | |
351 'dependencies': [ | |
352 'ppapi_example_skeleton', | |
353 'ppapi.gyp:ppapi_cpp', | |
354 ], | |
355 'sources': [ | |
356 'examples/audio/audio.cc', | |
357 ], | |
358 }, | |
359 { | |
360 'target_name': 'ppapi_example_audio_encode', | |
361 'dependencies': [ | |
362 'ppapi_example_skeleton', | |
363 'ppapi.gyp:ppapi_cpp', | |
364 ], | |
365 'sources': [ | |
366 'examples/audio_encode/audio_encode.cc', | |
367 ], | |
368 }, | |
369 { | |
370 # GN version: //ppapi/examples/audio_input | |
371 'target_name': 'ppapi_example_audio_input', | |
372 'dependencies': [ | |
373 'ppapi_example_skeleton', | |
374 'ppapi.gyp:ppapi_cpp', | |
375 ], | |
376 'sources': [ | |
377 'examples/audio_input/audio_input.cc', | |
378 ], | |
379 }, | |
380 { | |
381 # GN version: //ppapi/examples/file_chooser | |
382 'target_name': 'ppapi_example_file_chooser', | |
383 'dependencies': [ | |
384 'ppapi_example_skeleton', | |
385 'ppapi.gyp:ppapi_cpp', | |
386 ], | |
387 'sources': [ | |
388 'examples/file_chooser/file_chooser.cc', | |
389 ], | |
390 }, | |
391 { | |
392 # GN version: //ppapi/examples/2d:graphics_2d | |
393 'target_name': 'ppapi_example_graphics_2d', | |
394 'dependencies': [ | |
395 'ppapi_example_skeleton', | |
396 'ppapi.gyp:ppapi_c', | |
397 ], | |
398 'sources': [ | |
399 'examples/2d/graphics_2d_example.c', | |
400 ], | |
401 }, | |
402 { | |
403 # GN version: //ppapi/examples/ime | |
404 'target_name': 'ppapi_example_ime', | |
405 'dependencies': [ | |
406 'ppapi_example_skeleton', | |
407 'ppapi.gyp:ppapi_cpp', | |
408 ], | |
409 'sources': [ | |
410 'examples/ime/ime.cc', | |
411 ], | |
412 }, | |
413 { | |
414 # GN version: //ppapi/examples/2d:paint_manager | |
415 'target_name': 'ppapi_example_paint_manager', | |
416 'dependencies': [ | |
417 'ppapi_example_skeleton', | |
418 'ppapi.gyp:ppapi_cpp', | |
419 ], | |
420 'sources': [ | |
421 'examples/2d/paint_manager_example.cc', | |
422 ], | |
423 }, | |
424 { | |
425 # GN version: //ppapi/examples/input | |
426 'target_name': 'ppapi_example_input', | |
427 'dependencies': [ | |
428 'ppapi_example_skeleton', | |
429 'ppapi.gyp:ppapi_cpp', | |
430 ], | |
431 'sources': [ | |
432 'examples/input/pointer_event_input.cc', | |
433 ], | |
434 }, | |
435 { | |
436 # GN version: //ppapi/examples/scripting | |
437 'target_name': 'ppapi_example_post_message', | |
438 'dependencies': [ | |
439 'ppapi_example_skeleton', | |
440 'ppapi.gyp:ppapi_cpp', | |
441 ], | |
442 'sources': [ | |
443 'examples/scripting/post_message.cc', | |
444 ], | |
445 }, | |
446 { | |
447 # GN version: //ppapi/examples/scaling | |
448 'target_name': 'ppapi_example_scaling', | |
449 'dependencies': [ | |
450 'ppapi_example_skeleton', | |
451 'ppapi.gyp:ppapi_cpp', | |
452 ], | |
453 'sources': [ | |
454 'examples/scaling/scaling.cc', | |
455 ], | |
456 }, | |
457 { | |
458 # GN version: //ppapi/examples/2d:scroll | |
459 'target_name': 'ppapi_example_scroll', | |
460 'dependencies': [ | |
461 'ppapi_example_skeleton', | |
462 'ppapi.gyp:ppapi_cpp', | |
463 ], | |
464 'sources': [ | |
465 'examples/2d/scroll.cc', | |
466 ], | |
467 }, | |
468 { | |
469 # GN version: //ppapi/examples/font | |
470 'target_name': 'ppapi_example_simple_font', | |
471 'dependencies': [ | |
472 'ppapi_example_skeleton', | |
473 'ppapi.gyp:ppapi_cpp', | |
474 ], | |
475 'sources': [ | |
476 'examples/font/simple_font.cc', | |
477 ], | |
478 }, | |
479 { | |
480 # GN version: //ppapi/examples/threading | |
481 'target_name': 'ppapi_example_threading', | |
482 'dependencies': [ | |
483 'ppapi_example_skeleton', | |
484 'ppapi.gyp:ppapi_cpp', | |
485 ], | |
486 'sources': [ | |
487 'examples/threading/threading.cc', | |
488 ], | |
489 }, | |
490 { | |
491 # GN version: //ppapi/examples/url_loader:streaming | |
492 'target_name': 'ppapi_example_url_loader', | |
493 'dependencies': [ | |
494 'ppapi_example_skeleton', | |
495 'ppapi.gyp:ppapi_cpp', | |
496 ], | |
497 'sources': [ | |
498 'examples/url_loader/streaming.cc', | |
499 ], | |
500 }, | |
501 { | |
502 # GN version: //ppapi/examples/url_loader:file | |
503 'target_name': 'ppapi_example_url_loader_file', | |
504 'dependencies': [ | |
505 'ppapi_example_skeleton', | |
506 'ppapi.gyp:ppapi_cpp', | |
507 ], | |
508 'sources': [ | |
509 'examples/url_loader/stream_to_file.cc', | |
510 ], | |
511 }, | |
512 { | |
513 # GN version: //ppapi/examples/gles2 | |
514 'target_name': 'ppapi_example_gles2', | |
515 'dependencies': [ | |
516 'ppapi_example_skeleton', | |
517 'ppapi.gyp:ppapi_cpp', | |
518 'ppapi.gyp:ppapi_gles2', | |
519 ], | |
520 'include_dirs': [ | |
521 'lib/gl/include', | |
522 ], | |
523 'sources': [ | |
524 'examples/gles2/gles2.cc', | |
525 ], | |
526 }, | |
527 { | |
528 # GN version: //ppapi/examples/video_decode:stable | |
529 'target_name': 'ppapi_example_video_decode', | |
530 'dependencies': [ | |
531 'ppapi_example_skeleton', | |
532 'ppapi.gyp:ppapi_cpp', | |
533 'ppapi.gyp:ppapi_gles2', | |
534 ], | |
535 'include_dirs': [ | |
536 'lib/gl/include', | |
537 ], | |
538 'sources': [ | |
539 'examples/video_decode/testdata.h', | |
540 'examples/video_decode/video_decode.cc', | |
541 ], | |
542 }, | |
543 { | |
544 # GN version: //ppapi/examples/video_decode:dev | |
545 'target_name': 'ppapi_example_video_decode_dev', | |
546 'dependencies': [ | |
547 'ppapi_example_skeleton', | |
548 'ppapi.gyp:ppapi_cpp', | |
549 'ppapi.gyp:ppapi_gles2', | |
550 ], | |
551 'include_dirs': [ | |
552 'lib/gl/include', | |
553 ], | |
554 'sources': [ | |
555 'examples/video_decode/testdata.h', | |
556 'examples/video_decode/video_decode_dev.cc', | |
557 ], | |
558 }, | |
559 { | |
560 'target_name': 'ppapi_example_video_encode', | |
561 'dependencies': [ | |
562 'ppapi_example_skeleton', | |
563 'ppapi.gyp:ppapi_cpp', | |
564 ], | |
565 'sources': [ | |
566 'examples/video_encode/video_encode.cc', | |
567 ], | |
568 }, | |
569 { | |
570 # GN version: //ppapi/example/video_capture | |
571 'target_name': 'ppapi_example_vc', | |
572 'dependencies': [ | |
573 'ppapi_example_skeleton', | |
574 'ppapi.gyp:ppapi_cpp', | |
575 'ppapi.gyp:ppapi_gles2', | |
576 ], | |
577 'include_dirs': [ | |
578 'lib/gl/include', | |
579 ], | |
580 'sources': [ | |
581 'examples/video_capture/video_capture.cc', | |
582 ], | |
583 }, | |
584 { | |
585 # GN version: //ppapi/examples/video_effects | |
586 'target_name': 'ppapi_example_video_effects', | |
587 'dependencies': [ | |
588 'ppapi_example_skeleton', | |
589 'ppapi.gyp:ppapi_cpp', | |
590 ], | |
591 'sources': [ | |
592 'examples/video_effects/video_effects.cc', | |
593 ], | |
594 }, | |
595 { | |
596 # GN version: //ppapi/examples/enumerate_devices | |
597 'target_name': 'ppapi_example_enumerate_devices', | |
598 'dependencies': [ | |
599 'ppapi_example_skeleton', | |
600 'ppapi.gyp:ppapi_cpp', | |
601 ], | |
602 'sources': [ | |
603 'examples/enumerate_devices/enumerate_devices.cc', | |
604 ], | |
605 }, | |
606 { | |
607 # GN version: //ppapi/examples/flash_topmost | |
608 'target_name': 'ppapi_example_flash_topmost', | |
609 'dependencies': [ | |
610 'ppapi_example_skeleton', | |
611 'ppapi.gyp:ppapi_cpp', | |
612 ], | |
613 'sources': [ | |
614 'examples/flash_topmost/flash_topmost.cc', | |
615 ], | |
616 }, | |
617 { | |
618 # GN version: //ppapi/examples/printing | |
619 'target_name': 'ppapi_example_printing', | |
620 'dependencies': [ | |
621 'ppapi_example_skeleton', | |
622 'ppapi.gyp:ppapi_cpp', | |
623 ], | |
624 'sources': [ | |
625 'examples/printing/printing.cc', | |
626 ], | |
627 }, | |
628 { | |
629 # GN version: //ppapi/examples/media_stream_audio | |
630 'target_name': 'ppapi_example_media_stream_audio', | |
631 'dependencies': [ | |
632 'ppapi_example_skeleton', | |
633 'ppapi.gyp:ppapi_cpp', | |
634 ], | |
635 'sources': [ | |
636 'examples/media_stream_audio/media_stream_audio.cc', | |
637 ], | |
638 }, | |
639 { | |
640 # GN version: //ppapi/examples/media_stream_video | |
641 'target_name': 'ppapi_example_media_stream_video', | |
642 'dependencies': [ | |
643 'ppapi_example_skeleton', | |
644 'ppapi.gyp:ppapi_cpp', | |
645 'ppapi.gyp:ppapi_gles2', | |
646 ], | |
647 'include_dirs': [ | |
648 'lib/gl/include', | |
649 ], | |
650 'sources': [ | |
651 'examples/media_stream_video/media_stream_video.cc', | |
652 ], | |
653 }, | |
654 { | |
655 # GN version: //ppapi/examples/gles2_spinning_cube | |
656 'target_name': 'ppapi_example_gles2_spinning_cube', | |
657 'dependencies': [ | |
658 'ppapi_example_skeleton', | |
659 'ppapi.gyp:ppapi_cpp', | |
660 'ppapi.gyp:ppapi_gles2', | |
661 ], | |
662 'include_dirs': [ | |
663 'lib/gl/include', | |
664 ], | |
665 'sources': [ | |
666 'examples/gles2_spinning_cube/gles2_spinning_cube.cc', | |
667 'examples/gles2_spinning_cube/spinning_cube.cc', | |
668 'examples/gles2_spinning_cube/spinning_cube.h', | |
669 ], | |
670 }, | |
671 { | |
672 # GN version: //ppapi/examples/compositor | |
673 'target_name': 'ppapi_example_compositor', | |
674 'dependencies': [ | |
675 'ppapi_example_skeleton', | |
676 'ppapi.gyp:ppapi_cpp', | |
677 'ppapi.gyp:ppapi_gles2', | |
678 ], | |
679 'include_dirs': [ | |
680 'lib/gl/include', | |
681 ], | |
682 'sources': [ | |
683 'examples/compositor/compositor.cc', | |
684 'examples/compositor/spinning_cube.cc', | |
685 'examples/compositor/spinning_cube.h', | |
686 ], | |
687 }, | |
688 # Adding a new PPAPI example? Don't forget to update the GN build. | |
689 # See //ppapi/examples/BUILD.gn | |
690 ], | |
691 'conditions': [ | |
692 ['test_isolation_mode != "noop"', { | |
693 'targets': [ | |
694 { | |
695 'target_name': 'ppapi_unittests_run', | |
696 'type': 'none', | |
697 'dependencies': [ | |
698 'ppapi_unittests', | |
699 ], | |
700 'includes': [ '../build/isolate.gypi' ], | |
701 'sources': [ 'ppapi_unittests.isolate' ], | |
702 }, | |
703 ], | |
704 }], | |
705 ], | |
706 } | |
OLD | NEW |