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': [ | |
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 | |
11 # also be compiled with -fPIC flag. Setting GYP_DEFINES="linux_fpic=1" | |
12 # compiles everything with -fPIC. Disable pepper demos on linux/x64 | |
13 # unless linux_fpic is 1. | |
14 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and linux_fpi
c!=1', { | |
15 'enable_pepper_demos%': 0, | |
16 }, { | |
17 'enable_pepper_demos%': 1, | |
18 }], | |
19 ], | |
20 }, | 8 }, |
21 'targets': [ | 9 'targets': [ |
22 { | 10 { |
23 'target_name': 'gpu_demo_framework', | 11 'target_name': 'gpu_demo_framework', |
24 'type': 'static_library', | 12 'type': 'static_library', |
25 'dependencies': [ | 13 'dependencies': [ |
26 '../../base/base.gyp:base', | 14 '../../base/base.gyp:base', |
27 ], | 15 ], |
28 'sources': [ | 16 'sources': [ |
29 'framework/demo.cc', | 17 'framework/demo.cc', |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 'type': 'executable', | 181 'type': 'executable', |
194 'dependencies': [ | 182 'dependencies': [ |
195 'gpu_demo_framework_exe', | 183 'gpu_demo_framework_exe', |
196 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap', | 184 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap', |
197 ], | 185 ], |
198 'sources': [ | 186 'sources': [ |
199 'gles2_book/example.h', | 187 'gles2_book/example.h', |
200 'gles2_book/texture_wrap.cc', | 188 'gles2_book/texture_wrap.cc', |
201 ], | 189 ], |
202 }, | 190 }, |
| 191 { |
| 192 'target_name': 'hello_triangle_pepper', |
| 193 'type': 'loadable_module', |
| 194 'dependencies': [ |
| 195 'gpu_demo_framework_pepper', |
| 196 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle', |
| 197 ], |
| 198 'sources': [ |
| 199 'gles2_book/example.h', |
| 200 'gles2_book/hello_triangle.cc', |
| 201 ], |
| 202 }, |
| 203 { |
| 204 'target_name': 'mip_map_2d_pepper', |
| 205 'type': 'loadable_module', |
| 206 'dependencies': [ |
| 207 'gpu_demo_framework_pepper', |
| 208 '../../third_party/gles2_book/gles2_book.gyp:mip_map_2d', |
| 209 ], |
| 210 'sources': [ |
| 211 'gles2_book/example.h', |
| 212 'gles2_book/mip_map_2d.cc', |
| 213 ], |
| 214 }, |
| 215 { |
| 216 'target_name': 'simple_texture_2d_pepper', |
| 217 'type': 'loadable_module', |
| 218 'dependencies': [ |
| 219 'gpu_demo_framework_pepper', |
| 220 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_2d', |
| 221 ], |
| 222 'sources': [ |
| 223 'gles2_book/example.h', |
| 224 'gles2_book/simple_texture_2d.cc', |
| 225 ], |
| 226 }, |
| 227 { |
| 228 'target_name': 'simple_texture_cubemap_pepper', |
| 229 'type': 'loadable_module', |
| 230 'dependencies': [ |
| 231 'gpu_demo_framework_pepper', |
| 232 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_cubemap', |
| 233 ], |
| 234 'sources': [ |
| 235 'gles2_book/example.h', |
| 236 'gles2_book/simple_texture_cubemap.cc', |
| 237 ], |
| 238 }, |
| 239 { |
| 240 'target_name': 'simple_vertex_shader_pepper', |
| 241 'type': 'loadable_module', |
| 242 'dependencies': [ |
| 243 'gpu_demo_framework_pepper', |
| 244 '../../third_party/gles2_book/gles2_book.gyp:simple_vertex_shader', |
| 245 ], |
| 246 'sources': [ |
| 247 'gles2_book/example.h', |
| 248 'gles2_book/simple_vertex_shader.cc', |
| 249 ], |
| 250 }, |
| 251 { |
| 252 'target_name': 'stencil_test_pepper', |
| 253 'type': 'loadable_module', |
| 254 'dependencies': [ |
| 255 'gpu_demo_framework_pepper', |
| 256 '../../third_party/gles2_book/gles2_book.gyp:stencil_test', |
| 257 ], |
| 258 'sources': [ |
| 259 'gles2_book/example.h', |
| 260 'gles2_book/stencil_test.cc', |
| 261 ], |
| 262 }, |
| 263 { |
| 264 'target_name': 'texture_wrap_pepper', |
| 265 'type': 'loadable_module', |
| 266 'dependencies': [ |
| 267 'gpu_demo_framework_pepper', |
| 268 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap', |
| 269 ], |
| 270 'sources': [ |
| 271 'gles2_book/example.h', |
| 272 'gles2_book/texture_wrap.cc', |
| 273 ], |
| 274 }, |
203 ], | 275 ], |
204 'conditions': [ | |
205 ['enable_pepper_demos==1', { | |
206 'targets': [ | |
207 { | |
208 'target_name': 'hello_triangle_pepper', | |
209 'type': 'loadable_module', | |
210 'dependencies': [ | |
211 'gpu_demo_framework_pepper', | |
212 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle', | |
213 ], | |
214 'sources': [ | |
215 'gles2_book/example.h', | |
216 'gles2_book/hello_triangle.cc', | |
217 ], | |
218 }, | |
219 { | |
220 'target_name': 'mip_map_2d_pepper', | |
221 'type': 'loadable_module', | |
222 'dependencies': [ | |
223 'gpu_demo_framework_pepper', | |
224 '../../third_party/gles2_book/gles2_book.gyp:mip_map_2d', | |
225 ], | |
226 'sources': [ | |
227 'gles2_book/example.h', | |
228 'gles2_book/mip_map_2d.cc', | |
229 ], | |
230 }, | |
231 { | |
232 'target_name': 'simple_texture_2d_pepper', | |
233 'type': 'loadable_module', | |
234 'dependencies': [ | |
235 'gpu_demo_framework_pepper', | |
236 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_2d', | |
237 ], | |
238 'sources': [ | |
239 'gles2_book/example.h', | |
240 'gles2_book/simple_texture_2d.cc', | |
241 ], | |
242 }, | |
243 { | |
244 'target_name': 'simple_texture_cubemap_pepper', | |
245 'type': 'loadable_module', | |
246 'dependencies': [ | |
247 'gpu_demo_framework_pepper', | |
248 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_cubemap'
, | |
249 ], | |
250 'sources': [ | |
251 'gles2_book/example.h', | |
252 'gles2_book/simple_texture_cubemap.cc', | |
253 ], | |
254 }, | |
255 { | |
256 'target_name': 'simple_vertex_shader_pepper', | |
257 'type': 'loadable_module', | |
258 'dependencies': [ | |
259 'gpu_demo_framework_pepper', | |
260 '../../third_party/gles2_book/gles2_book.gyp:simple_vertex_shader', | |
261 ], | |
262 'sources': [ | |
263 'gles2_book/example.h', | |
264 'gles2_book/simple_vertex_shader.cc', | |
265 ], | |
266 }, | |
267 { | |
268 'target_name': 'stencil_test_pepper', | |
269 'type': 'loadable_module', | |
270 'dependencies': [ | |
271 'gpu_demo_framework_pepper', | |
272 '../../third_party/gles2_book/gles2_book.gyp:stencil_test', | |
273 ], | |
274 'sources': [ | |
275 'gles2_book/example.h', | |
276 'gles2_book/stencil_test.cc', | |
277 ], | |
278 }, | |
279 { | |
280 'target_name': 'texture_wrap_pepper', | |
281 'type': 'loadable_module', | |
282 'dependencies': [ | |
283 'gpu_demo_framework_pepper', | |
284 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap', | |
285 ], | |
286 'sources': [ | |
287 'gles2_book/example.h', | |
288 'gles2_book/texture_wrap.cc', | |
289 ], | |
290 }, | |
291 ], | |
292 }], | |
293 ], | |
294 } | 276 } |
295 | 277 |
296 # Local Variables: | 278 # Local Variables: |
297 # tab-width:2 | 279 # tab-width:2 |
298 # indent-tabs-mode:nil | 280 # indent-tabs-mode:nil |
299 # End: | 281 # End: |
300 # vim: set expandtab tabstop=2 shiftwidth=2: | 282 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |