OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'includes': [ |
| 7 '../../ppapi/ppapi.gypi', |
| 8 ], |
6 'variables': { | 9 'variables': { |
7 'chromium_code': 1, | 10 'chromium_code': 1, |
8 'conditions': [ | 11 'conditions': [ |
9 # Pepper demos that are compiled as shared libraries need to be compiled | 12 # Pepper demos that are compiled as shared libraries need to be compiled |
10 # with -fPIC flag. All static libraries that these demos depend on must | 13 # with -fPIC flag. All static libraries that these demos depend on must |
11 # also be compiled with -fPIC flag. Setting GYP_DEFINES="linux_fpic=1" | 14 # also be compiled with -fPIC flag. Setting GYP_DEFINES="linux_fpic=1" |
12 # compiles everything with -fPIC. Disable pepper demos on linux/x64 | 15 # compiles everything with -fPIC. Disable pepper demos on linux/x64 |
13 # unless linux_fpic is 1. | 16 # unless linux_fpic is 1. |
14 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and linux_fpi
c!=1', { | 17 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and linux_fpi
c!=1', { |
15 'enable_pepper_demos%': 0, | 18 'enable_pepper_demos%': 0, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 'product_extension': 'plugin', | 123 'product_extension': 'plugin', |
121 }], | 124 }], |
122 ], | 125 ], |
123 }, | 126 }, |
124 }, | 127 }, |
125 { | 128 { |
126 'target_name': 'gpu_demo_framework_ppapi', | 129 'target_name': 'gpu_demo_framework_ppapi', |
127 'type': 'static_library', | 130 'type': 'static_library', |
128 'dependencies': [ | 131 'dependencies': [ |
129 'gpu_demo_framework', | 132 'gpu_demo_framework', |
130 '../../ppapi/ppapi.gyp:ppapi_cpp', | 133 '../../ppapi/ppapi.gyp:ppapi_cpp_objects', |
131 '../../ppapi/ppapi.gyp:ppapi_cpp_objects' | 134 '../../ppapi/ppapi.gyp:ppapi_gles2', |
132 ], | 135 ], |
133 'include_dirs': [ | 136 'include_dirs': [ |
134 '../..', | 137 '../..', |
135 '../../ppapi', | 138 '../../ppapi', |
| 139 '../../ppapi/lib/gl/include', |
136 '../../third_party/gles2_book/Common/Include', | 140 '../../third_party/gles2_book/Common/Include', |
137 ], | 141 ], |
138 'sources': [ | 142 'sources': [ |
139 'framework/pepper.cc', | 143 'framework/pepper.cc', |
140 '../../third_party/gles2_book/Common/Include/esUtil.h', | 144 '../../third_party/gles2_book/Common/Include/esUtil.h', |
141 '../../third_party/gles2_book/Common/Include/esUtil_win.h', | 145 '../../third_party/gles2_book/Common/Include/esUtil_win.h', |
142 '../../third_party/gles2_book/Common/Source/esShader.c', | 146 '../../third_party/gles2_book/Common/Source/esShader.c', |
143 '../../third_party/gles2_book/Common/Source/esShapes.c', | 147 '../../third_party/gles2_book/Common/Source/esShapes.c', |
144 '../../third_party/gles2_book/Common/Source/esTransform.c', | 148 '../../third_party/gles2_book/Common/Source/esTransform.c', |
145 '../../third_party/gles2_book/Common/Source/esUtil.c', | 149 '../../third_party/gles2_book/Common/Source/esUtil.c', |
146 ], | 150 ], |
147 'direct_dependent_settings': { | 151 'direct_dependent_settings': { |
148 'include_dirs': [ | 152 'include_dirs': [ |
149 '../../third_party', | 153 '../../third_party', |
150 '../../third_party/gles2_book/Common/Include', | 154 '../../third_party/gles2_book/Common/Include', |
151 '../../ppapi', | 155 '../../ppapi', |
| 156 '../../ppapi/lib/gl/include', |
152 '../..' | 157 '../..' |
153 ], | 158 ], |
154 'run_as': { | 159 'run_as': { |
155 'conditions': [ | 160 'conditions': [ |
156 ['OS=="mac"', { | 161 ['OS=="mac"', { |
157 'action': [ | 162 'action': [ |
158 '<(PRODUCT_DIR)/Chromium.app/Contents/MacOS/Chromium', | 163 '<(PRODUCT_DIR)/Chromium.app/Contents/MacOS/Chromium', |
159 '--enable-accelerated-layers', | 164 '--enable-accelerated-layers', |
160 '--register-pepper-plugins=' | 165 '--register-pepper-plugins=' |
161 '<(PRODUCT_DIR)/$(PRODUCT_NAME).plugin;' | 166 '<(PRODUCT_DIR)/$(PRODUCT_NAME).plugin;' |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 'gles2_book/example.h', | 361 'gles2_book/example.h', |
357 'gles2_book/demo_texture_wrap.cc', | 362 'gles2_book/demo_texture_wrap.cc', |
358 ], | 363 ], |
359 }, | 364 }, |
360 { | 365 { |
361 'target_name': 'hello_triangle_ppapi', | 366 'target_name': 'hello_triangle_ppapi', |
362 'type': 'loadable_module', | 367 'type': 'loadable_module', |
363 'variables': { 'chromium_code': 0, }, | 368 'variables': { 'chromium_code': 0, }, |
364 'dependencies': [ 'gpu_demo_framework_ppapi', ], | 369 'dependencies': [ 'gpu_demo_framework_ppapi', ], |
365 'sources': [ | 370 'sources': [ |
| 371 '<@(ppp_entrypoints_sources)', |
366 'gles2_book/example.h', | 372 'gles2_book/example.h', |
367 'gles2_book/demo_hello_triangle.cc', | 373 'gles2_book/demo_hello_triangle.cc', |
368 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl
e.c', | 374 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl
e.c', |
369 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl
e.h', | 375 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl
e.h', |
370 ], | 376 ], |
371 }, | 377 }, |
372 { | 378 { |
373 'target_name': 'mip_map_2d_ppapi', | 379 'target_name': 'mip_map_2d_ppapi', |
374 'type': 'loadable_module', | 380 'type': 'loadable_module', |
375 'variables': { 'chromium_code': 0, }, | 381 'variables': { 'chromium_code': 0, }, |
376 'dependencies': [ 'gpu_demo_framework_ppapi', ], | 382 'dependencies': [ 'gpu_demo_framework_ppapi', ], |
377 'sources': [ | 383 'sources': [ |
| 384 '<@(ppp_entrypoints_sources)', |
378 'gles2_book/example.h', | 385 'gles2_book/example.h', |
379 'gles2_book/demo_mip_map_2d.cc', | 386 'gles2_book/demo_mip_map_2d.cc', |
380 '../../third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.c', | 387 '../../third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.c', |
381 '../../third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.h', | 388 '../../third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.h', |
382 ], | 389 ], |
383 }, | 390 }, |
384 { | 391 { |
385 'target_name': 'simple_texture_2d_ppapi', | 392 'target_name': 'simple_texture_2d_ppapi', |
386 'type': 'loadable_module', | 393 'type': 'loadable_module', |
387 'variables': { 'chromium_code': 0, }, | 394 'variables': { 'chromium_code': 0, }, |
388 'dependencies': [ 'gpu_demo_framework_ppapi', ], | 395 'dependencies': [ 'gpu_demo_framework_ppapi', ], |
389 'sources': [ | 396 'sources': [ |
| 397 '<@(ppp_entrypoints_sources)', |
390 'gles2_book/example.h', | 398 'gles2_book/example.h', |
391 'gles2_book/demo_simple_texture_2d.cc', | 399 'gles2_book/demo_simple_texture_2d.cc', |
392 '../../third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Text
ure2D.c', | 400 '../../third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Text
ure2D.c', |
393 '../../third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Text
ure2D.h', | 401 '../../third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Text
ure2D.h', |
394 ], | 402 ], |
395 }, | 403 }, |
396 { | 404 { |
397 'target_name': 'simple_texture_cubemap_ppapi', | 405 'target_name': 'simple_texture_cubemap_ppapi', |
398 'type': 'loadable_module', | 406 'type': 'loadable_module', |
399 'variables': { 'chromium_code': 0, }, | 407 'variables': { 'chromium_code': 0, }, |
400 'dependencies': [ 'gpu_demo_framework_ppapi', ], | 408 'dependencies': [ 'gpu_demo_framework_ppapi', ], |
401 'sources': [ | 409 'sources': [ |
| 410 '<@(ppp_entrypoints_sources)', |
402 'gles2_book/example.h', | 411 'gles2_book/example.h', |
403 'gles2_book/demo_simple_texture_cubemap.cc', | 412 'gles2_book/demo_simple_texture_cubemap.cc', |
404 '../../third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple
_TextureCubemap.c', | 413 '../../third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple
_TextureCubemap.c', |
405 '../../third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple
_TextureCubemap.h', | 414 '../../third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple
_TextureCubemap.h', |
406 ], | 415 ], |
407 }, | 416 }, |
408 { | 417 { |
409 'target_name': 'simple_vertex_shader_ppapi', | 418 'target_name': 'simple_vertex_shader_ppapi', |
410 'type': 'loadable_module', | 419 'type': 'loadable_module', |
411 'variables': { 'chromium_code': 0, }, | 420 'variables': { 'chromium_code': 0, }, |
412 'dependencies': [ 'gpu_demo_framework_ppapi', ], | 421 'dependencies': [ 'gpu_demo_framework_ppapi', ], |
413 'sources': [ | 422 'sources': [ |
| 423 '<@(ppp_entrypoints_sources)', |
414 'gles2_book/example.h', | 424 'gles2_book/example.h', |
415 'gles2_book/demo_simple_vertex_shader.cc', | 425 'gles2_book/demo_simple_vertex_shader.cc', |
416 '../../third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_V
ertexShader.c', | 426 '../../third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_V
ertexShader.c', |
417 '../../third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_V
ertexShader.h', | 427 '../../third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_V
ertexShader.h', |
418 ], | 428 ], |
419 }, | 429 }, |
420 { | 430 { |
421 'target_name': 'stencil_test_ppapi', | 431 'target_name': 'stencil_test_ppapi', |
422 'type': 'loadable_module', | 432 'type': 'loadable_module', |
423 'variables': { 'chromium_code': 0, }, | 433 'variables': { 'chromium_code': 0, }, |
424 'dependencies': [ 'gpu_demo_framework_ppapi', ], | 434 'dependencies': [ 'gpu_demo_framework_ppapi', ], |
425 'sources': [ | 435 'sources': [ |
| 436 '<@(ppp_entrypoints_sources)', |
426 'gles2_book/example.h', | 437 'gles2_book/example.h', |
427 'gles2_book/demo_stencil_test.cc', | 438 'gles2_book/demo_stencil_test.cc', |
428 '../../third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c
', | 439 '../../third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c
', |
429 '../../third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h
', | 440 '../../third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h
', |
430 ], | 441 ], |
431 }, | 442 }, |
432 { | 443 { |
433 'target_name': 'texture_wrap_ppapi', | 444 'target_name': 'texture_wrap_ppapi', |
434 'type': 'loadable_module', | 445 'type': 'loadable_module', |
435 'variables': { 'chromium_code': 0, }, | 446 'variables': { 'chromium_code': 0, }, |
436 'dependencies': [ 'gpu_demo_framework_ppapi', ], | 447 'dependencies': [ 'gpu_demo_framework_ppapi', ], |
437 'sources': [ | 448 'sources': [ |
| 449 '<@(ppp_entrypoints_sources)', |
438 'gles2_book/example.h', | 450 'gles2_book/example.h', |
439 'gles2_book/demo_texture_wrap.cc', | 451 'gles2_book/demo_texture_wrap.cc', |
440 '../../third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c', | 452 '../../third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c', |
441 '../../third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.h', | 453 '../../third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.h', |
442 ], | 454 ], |
443 }, | 455 }, |
444 ], | 456 ], |
445 }], | 457 }], |
446 ], | 458 ], |
447 } | 459 } |
448 | 460 |
449 # Local Variables: | 461 # Local Variables: |
450 # tab-width:2 | 462 # tab-width:2 |
451 # indent-tabs-mode:nil | 463 # indent-tabs-mode:nil |
452 # End: | 464 # End: |
453 # vim: set expandtab tabstop=2 shiftwidth=2: | 465 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |