| 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': [ | 6 'includes': [ |
| 7 '../../ppapi/ppapi.gypi', | 7 '../../ppapi/ppapi.gypi', |
| 8 ], | 8 ], |
| 9 'variables': { | 9 'variables': { |
| 10 'chromium_code': 1, | 10 'chromium_code': 1, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 'framework/window_win.cc', | 50 'framework/window_win.cc', |
| 51 'framework/window.h', | 51 'framework/window.h', |
| 52 ], | 52 ], |
| 53 'conditions': [ | 53 'conditions': [ |
| 54 ['OS=="linux"', { | 54 ['OS=="linux"', { |
| 55 'dependencies': ['../../build/linux/system.gyp:gtk'], | 55 'dependencies': ['../../build/linux/system.gyp:gtk'], |
| 56 }], | 56 }], |
| 57 ], | 57 ], |
| 58 }, | 58 }, |
| 59 { | 59 { |
| 60 'target_name': 'gpu_demo_framework_pepper', | |
| 61 'type': 'static_library', | |
| 62 # This target injects a bunch of source files to direct dependents. | |
| 63 # If the dependent is a none-type target (like all.gyp), gyp will | |
| 64 # generate error due to these injected source files. Workaround this | |
| 65 # problem by preventing it from being selected by demos.gyp:*. | |
| 66 # TODO(neb): remove source injection and this flag. | |
| 67 'suppress_wildcard': 1, | |
| 68 'dependencies': [ | |
| 69 'gpu_demo_framework', | |
| 70 '../gpu.gyp:pgl', | |
| 71 ], | |
| 72 'include_dirs': ['../..'], | |
| 73 'sources': [ | |
| 74 'framework/plugin.cc', | |
| 75 'framework/plugin.h', | |
| 76 ], | |
| 77 'direct_dependent_settings': { | |
| 78 'include_dirs': ['../..'], | |
| 79 'sources': ['framework/main_pepper.cc'], | |
| 80 'run_as': { | |
| 81 'conditions': [ | |
| 82 ['OS=="mac"', { | |
| 83 'action': [ | |
| 84 '<(PRODUCT_DIR)/Chromium.app/Contents/MacOS/Chromium', | |
| 85 '--no-sandbox', | |
| 86 '--internal-pepper', | |
| 87 '--enable-gpu-plugin', | |
| 88 '--load-plugin=<(PRODUCT_DIR)/$(PRODUCT_NAME).plugin', | |
| 89 'file://$(SOURCE_ROOT)/pepper_gpu_demo.html', | |
| 90 ], | |
| 91 }, { # OS != "mac" | |
| 92 'action': [ | |
| 93 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | |
| 94 '--no-sandbox', | |
| 95 '--internal-pepper', | |
| 96 '--enable-gpu-plugin', | |
| 97 '--load-plugin=$(TargetPath)', | |
| 98 'file://$(ProjectDir)pepper_gpu_demo.html', | |
| 99 ], | |
| 100 }], | |
| 101 ], | |
| 102 }, | |
| 103 'conditions': [ | |
| 104 ['OS=="win"', { | |
| 105 'sources': [ | |
| 106 'framework/plugin.def', | |
| 107 'framework/plugin.rc', | |
| 108 ], | |
| 109 }], | |
| 110 ['OS=="mac"', { | |
| 111 'sources': [ | |
| 112 'framework/Plugin_Info.plist', | |
| 113 ], | |
| 114 'xcode_settings': { | |
| 115 'INFOPLIST_FILE': 'framework/Plugin_Info.plist', | |
| 116 }, | |
| 117 'mac_bundle': 1, | |
| 118 'product_extension': 'plugin', | |
| 119 }], | |
| 120 ], | |
| 121 }, | |
| 122 }, | |
| 123 { | |
| 124 'target_name': 'gpu_demo_framework_ppapi', | 60 'target_name': 'gpu_demo_framework_ppapi', |
| 125 'type': 'static_library', | 61 'type': 'static_library', |
| 126 'dependencies': [ | 62 'dependencies': [ |
| 127 'gpu_demo_framework', | 63 'gpu_demo_framework', |
| 128 '../../ppapi/ppapi.gyp:ppapi_cpp_objects', | 64 '../../ppapi/ppapi.gyp:ppapi_cpp_objects', |
| 129 '../../ppapi/ppapi.gyp:ppapi_gles2', | 65 '../../ppapi/ppapi.gyp:ppapi_gles2', |
| 130 ], | 66 ], |
| 131 'include_dirs': [ | 67 'include_dirs': [ |
| 132 '../..', | 68 '../..', |
| 133 '../../ppapi/lib/gl/include', | 69 '../../ppapi/lib/gl/include', |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 'sources': [ | 199 'sources': [ |
| 264 'gles2_book/example.h', | 200 'gles2_book/example.h', |
| 265 'gles2_book/demo_texture_wrap.cc', | 201 'gles2_book/demo_texture_wrap.cc', |
| 266 ], | 202 ], |
| 267 }, | 203 }, |
| 268 ], | 204 ], |
| 269 'conditions': [ | 205 'conditions': [ |
| 270 ['enable_pepper_demos==1', { | 206 ['enable_pepper_demos==1', { |
| 271 'targets': [ | 207 'targets': [ |
| 272 { | 208 { |
| 273 'target_name': 'hello_triangle_pepper', | |
| 274 'type': 'loadable_module', | |
| 275 'dependencies': [ | |
| 276 'gpu_demo_framework_pepper', | |
| 277 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle', | |
| 278 ], | |
| 279 'sources': [ | |
| 280 'gles2_book/example.h', | |
| 281 'gles2_book/demo_hello_triangle.cc', | |
| 282 ], | |
| 283 }, | |
| 284 { | |
| 285 'target_name': 'mip_map_2d_pepper', | |
| 286 'type': 'loadable_module', | |
| 287 'dependencies': [ | |
| 288 'gpu_demo_framework_pepper', | |
| 289 '../../third_party/gles2_book/gles2_book.gyp:mip_map_2d', | |
| 290 ], | |
| 291 'sources': [ | |
| 292 'gles2_book/example.h', | |
| 293 'gles2_book/demo_mip_map_2d.cc', | |
| 294 ], | |
| 295 }, | |
| 296 { | |
| 297 'target_name': 'simple_texture_2d_pepper', | |
| 298 'type': 'loadable_module', | |
| 299 'dependencies': [ | |
| 300 'gpu_demo_framework_pepper', | |
| 301 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_2d', | |
| 302 ], | |
| 303 'sources': [ | |
| 304 'gles2_book/example.h', | |
| 305 'gles2_book/demo_simple_texture_2d.cc', | |
| 306 ], | |
| 307 }, | |
| 308 { | |
| 309 'target_name': 'simple_texture_cubemap_pepper', | |
| 310 'type': 'loadable_module', | |
| 311 'dependencies': [ | |
| 312 'gpu_demo_framework_pepper', | |
| 313 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_cubemap'
, | |
| 314 ], | |
| 315 'sources': [ | |
| 316 'gles2_book/example.h', | |
| 317 'gles2_book/demo_simple_texture_cubemap.cc', | |
| 318 ], | |
| 319 }, | |
| 320 { | |
| 321 'target_name': 'simple_vertex_shader_pepper', | |
| 322 'type': 'loadable_module', | |
| 323 'dependencies': [ | |
| 324 'gpu_demo_framework_pepper', | |
| 325 '../../third_party/gles2_book/gles2_book.gyp:simple_vertex_shader', | |
| 326 ], | |
| 327 'sources': [ | |
| 328 'gles2_book/example.h', | |
| 329 'gles2_book/demo_simple_vertex_shader.cc', | |
| 330 ], | |
| 331 }, | |
| 332 { | |
| 333 'target_name': 'stencil_test_pepper', | |
| 334 'type': 'loadable_module', | |
| 335 'dependencies': [ | |
| 336 'gpu_demo_framework_pepper', | |
| 337 '../../third_party/gles2_book/gles2_book.gyp:stencil_test', | |
| 338 ], | |
| 339 'sources': [ | |
| 340 'gles2_book/example.h', | |
| 341 'gles2_book/demo_stencil_test.cc', | |
| 342 ], | |
| 343 }, | |
| 344 { | |
| 345 'target_name': 'texture_wrap_pepper', | |
| 346 'type': 'loadable_module', | |
| 347 'dependencies': [ | |
| 348 'gpu_demo_framework_pepper', | |
| 349 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap', | |
| 350 ], | |
| 351 'sources': [ | |
| 352 'gles2_book/example.h', | |
| 353 'gles2_book/demo_texture_wrap.cc', | |
| 354 ], | |
| 355 }, | |
| 356 { | |
| 357 'target_name': 'hello_triangle_ppapi', | 209 'target_name': 'hello_triangle_ppapi', |
| 358 'type': 'loadable_module', | 210 'type': 'loadable_module', |
| 359 'variables': { 'chromium_code': 0, }, | 211 'variables': { 'chromium_code': 0, }, |
| 360 'dependencies': [ 'gpu_demo_framework_ppapi', ], | 212 'dependencies': [ 'gpu_demo_framework_ppapi', ], |
| 361 'sources': [ | 213 'sources': [ |
| 362 '<@(ppp_entrypoints_sources)', | 214 '<@(ppp_entrypoints_sources)', |
| 363 'gles2_book/example.h', | 215 'gles2_book/example.h', |
| 364 'gles2_book/demo_hello_triangle.cc', | 216 'gles2_book/demo_hello_triangle.cc', |
| 365 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl
e.c', | 217 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl
e.c', |
| 366 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl
e.h', | 218 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl
e.h', |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 ], | 299 ], |
| 448 }], | 300 }], |
| 449 ], | 301 ], |
| 450 } | 302 } |
| 451 | 303 |
| 452 # Local Variables: | 304 # Local Variables: |
| 453 # tab-width:2 | 305 # tab-width:2 |
| 454 # indent-tabs-mode:nil | 306 # indent-tabs-mode:nil |
| 455 # End: | 307 # End: |
| 456 # vim: set expandtab tabstop=2 shiftwidth=2: | 308 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |