| 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 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'includes': [ | 9 'includes': [ |
| 10 '../../build/common.gypi', | 10 '../../build/common.gypi', |
| 11 ], | 11 ], |
| 12 'targets': [ | 12 'targets': [ |
| 13 { | 13 { |
| 14 'target_name': 'app_framework', | 14 'target_name': 'gpu_demo_framework', |
| 15 'type': 'static_library', | 15 'type': 'static_library', |
| 16 'dependencies': [ | 16 'dependencies': [ |
| 17 '../../base/base.gyp:base', |
| 18 ], |
| 19 'sources': [ |
| 20 'framework/demo.cc', |
| 21 'framework/demo.h', |
| 22 'framework/demo_factory.h', |
| 23 ], |
| 24 }, |
| 25 { |
| 26 'target_name': 'gpu_demo_framework_exe', |
| 27 'type': 'static_library', |
| 28 'dependencies': [ |
| 29 'gpu_demo_framework', |
| 17 '../gpu.gyp:command_buffer_client', | 30 '../gpu.gyp:command_buffer_client', |
| 18 '../gpu.gyp:command_buffer_service', | 31 '../gpu.gyp:command_buffer_service', |
| 19 ], | 32 ], |
| 33 'all_dependent_settings': { |
| 34 'sources': [ |
| 35 'framework/main_exe.cc', |
| 36 ], |
| 37 }, |
| 20 'sources': [ | 38 'sources': [ |
| 21 'app_framework/application.cc', | 39 'framework/platform.h', |
| 22 'app_framework/application.h', | 40 'framework/window.cc', |
| 23 'app_framework/platform.h', | 41 'framework/window.h', |
| 24 ], | 42 ], |
| 25 }, | 43 }, |
| 26 { | 44 { |
| 27 'target_name': 'hello_triangle', | 45 'target_name': 'gpu_demo_framework_pepper', |
| 46 'type': 'static_library', |
| 47 'dependencies': [ |
| 48 'gpu_demo_framework', |
| 49 '../gpu.gyp:pgl', |
| 50 ], |
| 51 'all_dependent_settings': { |
| 52 'sources': [ |
| 53 'framework/main_pepper.cc', |
| 54 'framework/plugin.def', |
| 55 'framework/plugin.rc', |
| 56 ], |
| 57 'run_as': { |
| 58 'action': [ |
| 59 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', |
| 60 '--no-sandbox', |
| 61 '--internal-pepper', |
| 62 '--enable-gpu-plugin', |
| 63 '--load-plugin=$(TargetPath)', |
| 64 'file://$(ProjectDir)pepper_gpu_demo.html', |
| 65 ], |
| 66 }, |
| 67 }, |
| 68 'sources': [ |
| 69 'framework/plugin.cc', |
| 70 'framework/plugin.h', |
| 71 ], |
| 72 }, |
| 73 { |
| 74 'target_name': 'hello_triangle_exe', |
| 28 'type': 'executable', | 75 'type': 'executable', |
| 29 'dependencies': [ | 76 'dependencies': [ |
| 30 'app_framework', | 77 'gpu_demo_framework_exe', |
| 31 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle', | 78 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle', |
| 32 ], | 79 ], |
| 33 'sources': [ | 80 'sources': [ |
| 34 'hello_triangle/main.cc', | 81 'gles2_book/example.h', |
| 82 'gles2_book/hello_triangle.cc', |
| 35 ], | 83 ], |
| 36 }, | 84 }, |
| 37 { | 85 { |
| 38 'target_name': 'mip_map_2d', | 86 'target_name': 'hello_triangle_pepper', |
| 39 'type': 'executable', | 87 'type': 'shared_library', |
| 40 'dependencies': [ | 88 'dependencies': [ |
| 41 'app_framework', | 89 'gpu_demo_framework_pepper', |
| 42 '../../third_party/gles2_book/gles2_book.gyp:mip_map_2d', | 90 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle', |
| 43 ], | 91 ], |
| 44 'sources': [ | 92 'sources': [ |
| 45 'mip_map_2d/main.cc', | 93 'gles2_book/example.h', |
| 46 ], | 94 'gles2_book/hello_triangle.cc', |
| 47 }, | |
| 48 { | |
| 49 'target_name': 'simple_texture_2d', | |
| 50 'type': 'executable', | |
| 51 'dependencies': [ | |
| 52 'app_framework', | |
| 53 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_2d', | |
| 54 ], | |
| 55 'sources': [ | |
| 56 'simple_texture_2d/main.cc', | |
| 57 ], | |
| 58 }, | |
| 59 { | |
| 60 'target_name': 'simple_texture_cubemap', | |
| 61 'type': 'executable', | |
| 62 'dependencies': [ | |
| 63 'app_framework', | |
| 64 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_cubemap', | |
| 65 ], | |
| 66 'sources': [ | |
| 67 'simple_texture_cubemap/main.cc', | |
| 68 ], | |
| 69 }, | |
| 70 { | |
| 71 'target_name': 'simple_vertex_shader', | |
| 72 'type': 'executable', | |
| 73 'dependencies': [ | |
| 74 'app_framework', | |
| 75 '../../third_party/gles2_book/gles2_book.gyp:simple_vertex_shader', | |
| 76 ], | |
| 77 'sources': [ | |
| 78 'simple_vertex_shader/main.cc', | |
| 79 ], | |
| 80 }, | |
| 81 { | |
| 82 'target_name': 'stencil_test', | |
| 83 'type': 'executable', | |
| 84 'dependencies': [ | |
| 85 'app_framework', | |
| 86 '../../third_party/gles2_book/gles2_book.gyp:stencil_test', | |
| 87 ], | |
| 88 'sources': [ | |
| 89 'stencil_test/main.cc', | |
| 90 ], | |
| 91 }, | |
| 92 { | |
| 93 'target_name': 'texture_wrap', | |
| 94 'type': 'executable', | |
| 95 'dependencies': [ | |
| 96 'app_framework', | |
| 97 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap', | |
| 98 ], | |
| 99 'sources': [ | |
| 100 'texture_wrap/main.cc', | |
| 101 ], | 95 ], |
| 102 }, | 96 }, |
| 103 ] | 97 ] |
| 104 } | 98 } |
| 105 | 99 |
| 106 # Local Variables: | 100 # Local Variables: |
| 107 # tab-width:2 | 101 # tab-width:2 |
| 108 # indent-tabs-mode:nil | 102 # indent-tabs-mode:nil |
| 109 # End: | 103 # End: |
| 110 # vim: set expandtab tabstop=2 shiftwidth=2: | 104 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |