| 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 'conditions': [ | 8 'conditions': [ |
| 9 # Pepper demos that are compiled as shared libraries need to be compiled | 9 # 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 | 10 # 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" | 11 # also be compiled with -fPIC flag. Setting GYP_DEFINES="linux_fpic=1" |
| 12 # compiles everything with -fPIC. Disable pepper demos on linux/x64 | 12 # compiles everything with -fPIC. Disable pepper demos on linux/x64 |
| 13 # unless linux_fpic is 1. | 13 # unless linux_fpic is 1. |
| 14 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and linux_fpi
c!=1', { | 14 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and linux_fpi
c!=1', { |
| 15 'enable_pepper_demos%': 0, | 15 'enable_pepper_demos%': 0, |
| 16 }, { | 16 }, { |
| 17 'enable_pepper_demos%': 1, | 17 'enable_pepper_demos%': 1, |
| 18 }], | 18 }], |
| 19 ], | 19 ], |
| 20 }, | 20 }, |
| 21 'includes': [ | |
| 22 '../../build/common.gypi', | |
| 23 ], | |
| 24 'targets': [ | 21 'targets': [ |
| 25 { | 22 { |
| 26 'target_name': 'gpu_demo_framework', | 23 'target_name': 'gpu_demo_framework', |
| 27 'type': 'static_library', | 24 'type': 'static_library', |
| 28 'dependencies': [ | 25 'dependencies': [ |
| 29 '../../base/base.gyp:base', | 26 '../../base/base.gyp:base', |
| 30 ], | 27 ], |
| 31 'sources': [ | 28 'sources': [ |
| 32 'framework/demo.cc', | 29 'framework/demo.cc', |
| 33 'framework/demo.h', | 30 'framework/demo.h', |
| 34 'framework/demo_factory.h', | 31 'framework/demo_factory.h', |
| 35 ], | 32 ], |
| 36 }, | 33 }, |
| 37 { | 34 { |
| 38 'target_name': 'gpu_demo_framework_exe', | 35 'target_name': 'gpu_demo_framework_exe', |
| 39 'type': 'static_library', | 36 'type': 'static_library', |
| 40 'dependencies': [ | 37 'dependencies': [ |
| 41 'gpu_demo_framework', | 38 'gpu_demo_framework', |
| 42 '../gpu.gyp:command_buffer_client', | 39 '../gpu.gyp:command_buffer_client', |
| 43 '../gpu.gyp:command_buffer_service', | 40 '../gpu.gyp:command_buffer_service', |
| 44 ], | 41 ], |
| 45 'sources': [ | 42 'sources': [ |
| 46 'framework/main_exe.cc', | 43 'framework/main_exe.cc', |
| 47 'framework/window.cc', | 44 'framework/window.cc', |
| 45 'framework/window_linux.cc', |
| 46 'framework/window_mac.mm', |
| 47 'framework/window_win.cc', |
| 48 'framework/window.h', | 48 'framework/window.h', |
| 49 ], | 49 ], |
| 50 'conditions': [ | 50 'conditions': [ |
| 51 ['OS=="linux"', { | 51 ['OS=="linux"', { |
| 52 'sources': ['framework/window_linux.cc'], | |
| 53 'dependencies': ['../../build/linux/system.gyp:gtk'], | 52 'dependencies': ['../../build/linux/system.gyp:gtk'], |
| 54 }], | 53 }], |
| 55 ['OS=="mac"', { | |
| 56 'sources': ['framework/window_mac.mm'], | |
| 57 }], | |
| 58 ['OS=="win"', { | |
| 59 'sources': ['framework/window_win.cc'], | |
| 60 }], | |
| 61 ], | 54 ], |
| 62 }, | 55 }, |
| 63 { | 56 { |
| 64 'target_name': 'gpu_demo_framework_pepper', | 57 'target_name': 'gpu_demo_framework_pepper', |
| 65 'type': 'static_library', | 58 'type': 'static_library', |
| 66 'dependencies': [ | 59 'dependencies': [ |
| 67 'gpu_demo_framework', | 60 'gpu_demo_framework', |
| 68 '../gpu.gyp:pgl', | 61 '../gpu.gyp:pgl', |
| 69 ], | 62 ], |
| 70 'sources': [ | 63 'sources': [ |
| 71 'framework/plugin.cc', | 64 'framework/plugin.cc', |
| 72 'framework/plugin.h', | 65 'framework/plugin.h', |
| 73 ], | 66 ], |
| 74 'direct_dependent_settings': { | 67 'direct_dependent_settings': { |
| 75 'sources': [ | 68 'sources': [ |
| 76 'framework/main_pepper.cc', | 69 'framework/main_pepper.cc', |
| 77 ], | 70 ], |
| 71 'run_as': { |
| 72 'action': [ |
| 73 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', |
| 74 '--no-sandbox', |
| 75 '--internal-pepper', |
| 76 '--enable-gpu-plugin', |
| 77 '--load-plugin=$(TargetPath)', |
| 78 'file://$(ProjectDir)pepper_gpu_demo.html', |
| 79 ], |
| 80 }, |
| 78 'conditions': [ | 81 'conditions': [ |
| 79 ['OS=="win"', { | 82 ['OS=="win"', { |
| 80 'sources': [ | 83 'sources': [ |
| 81 'framework/plugin.def', | 84 'framework/plugin.def', |
| 82 'framework/plugin.rc', | 85 'framework/plugin.rc', |
| 83 ], | 86 ], |
| 84 'run_as': { | |
| 85 'action': [ | |
| 86 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | |
| 87 '--no-sandbox', | |
| 88 '--internal-pepper', | |
| 89 '--enable-gpu-plugin', | |
| 90 '--load-plugin=$(TargetPath)', | |
| 91 'file://$(ProjectDir)pepper_gpu_demo.html', | |
| 92 ], | |
| 93 }, | |
| 94 }], | 87 }], |
| 95 ['OS=="linux"', { | 88 ['OS=="linux"', { |
| 96 # -gstabs, used in the official builds, causes an ICE. Remove it. | 89 # -gstabs, used in the official builds, causes an ICE. Remove it. |
| 97 'cflags!': ['-gstabs'], | 90 'cflags!': ['-gstabs'], |
| 98 }], | 91 }], |
| 99 ], | 92 ], |
| 100 }, | 93 }, |
| 101 }, | 94 }, |
| 102 { | 95 { |
| 103 'target_name': 'hello_triangle_exe', | 96 'target_name': 'hello_triangle_exe', |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 ], | 267 ], |
| 275 }], | 268 }], |
| 276 ], | 269 ], |
| 277 } | 270 } |
| 278 | 271 |
| 279 # Local Variables: | 272 # Local Variables: |
| 280 # tab-width:2 | 273 # tab-width:2 |
| 281 # indent-tabs-mode:nil | 274 # indent-tabs-mode:nil |
| 282 # End: | 275 # End: |
| 283 # vim: set expandtab tabstop=2 shiftwidth=2: | 276 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |