Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: gpu/demos/demos.gyp

Issue 3132017: GLES demos on PPAPI. (Closed)
Patch Set: Removed DEPS, they are already up to date. Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/demos/framework/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 }], 53 }],
54 ], 54 ],
55 }, 55 },
56 { 56 {
57 'target_name': 'gpu_demo_framework_pepper', 57 'target_name': 'gpu_demo_framework_pepper',
58 'type': 'static_library', 58 'type': 'static_library',
59 # This target injects a bunch of source files to direct dependents. 59 # This target injects a bunch of source files to direct dependents.
60 # If the dependent is a none-type target (like all.gyp), gyp will 60 # If the dependent is a none-type target (like all.gyp), gyp will
61 # generate error due to these injected source files. Workaround this 61 # generate error due to these injected source files. Workaround this
62 # problem by preventing it from being selected by demos.gyp:*. 62 # problem by preventing it from being selected by demos.gyp:*.
63 # TODO(neb): remove source injection and this flag.
63 'suppress_wildcard': 1, 64 'suppress_wildcard': 1,
64 'dependencies': [ 65 'dependencies': [
65 'gpu_demo_framework', 66 'gpu_demo_framework',
66 '../gpu.gyp:pgl', 67 '../gpu.gyp:pgl',
67 ], 68 ],
68 'sources': [ 69 'sources': [
69 'framework/plugin.cc', 70 'framework/plugin.cc',
70 'framework/plugin.h', 71 'framework/plugin.h',
71 ], 72 ],
72 'direct_dependent_settings': { 73 'direct_dependent_settings': {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 'xcode_settings': { 111 'xcode_settings': {
111 'INFOPLIST_FILE': 'framework/Plugin_Info.plist', 112 'INFOPLIST_FILE': 'framework/Plugin_Info.plist',
112 }, 113 },
113 'mac_bundle': 1, 114 'mac_bundle': 1,
114 'product_extension': 'plugin', 115 'product_extension': 'plugin',
115 }], 116 }],
116 ], 117 ],
117 }, 118 },
118 }, 119 },
119 { 120 {
121 'target_name': 'gpu_demo_framework_ppapi',
122 'type': 'static_library',
123 'dependencies': [
124 'gpu_demo_framework',
125 '../../third_party/ppapi/ppapi.gyp:ppapi_cpp',
126 '../../third_party/ppapi/ppapi.gyp:ppapi_cpp_objects'
127 ],
128 'include_dirs': [
129 '../..',
130 '../../third_party/ppapi',
131 '../../third_party/gles2_book/Common/Include',
132 ],
133 'sources': [
134 'framework/pepper.cc',
135 '../../third_party/gles2_book/Common/Include/esUtil.h',
136 '../../third_party/gles2_book/Common/Include/esUtil_win.h',
137 '../../third_party/gles2_book/Common/Source/esShader.c',
138 '../../third_party/gles2_book/Common/Source/esShapes.c',
139 '../../third_party/gles2_book/Common/Source/esTransform.c',
140 '../../third_party/gles2_book/Common/Source/esUtil.c',
141 ],
142 'direct_dependent_settings': {
143 'include_dirs': [
144 '../../third_party',
145 '../../third_party/gles2_book/Common/Include',
146 '../../third_party/ppapi',
147 '../..'
148 ],
149 'run_as': {
150 'conditions': [
151 ['OS=="mac"', {
152 'action': [
153 '<(PRODUCT_DIR)/Chromium.app/Contents/MacOS/Chromium',
154 '--enable-gpu-plugin',
155 '--register-pepper-plugins='
156 '<(PRODUCT_DIR)/$(PRODUCT_NAME).plugin;'
157 'pepper-application/x-gpu-demo',
158 'file://$(SOURCE_ROOT)/pepper_gpu_demo.html',
159 ],
160 }, { # OS != "mac"
161 'action': [
162 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
163 '--enable-gpu-plugin',
164 '--register-pepper-plugins=$(TargetPath);'
165 'pepper-application/x-gpu-demo',
166 'file://$(ProjectDir)pepper_gpu_demo.html',
167 ],
168 }],
169 ],
170 },
171 'conditions': [
172 ['OS=="linux"', {
173 # -gstabs, used in the official builds, causes an ICE. Remove it.
174 'cflags!': ['-gstabs'],
175 }],
176 ['OS=="mac"', {
177 'mac_bundle': 1,
178 'product_extension': 'plugin',
179 }],
180 ],
181 },
182 },
183 {
120 'target_name': 'hello_triangle_exe', 184 'target_name': 'hello_triangle_exe',
121 'type': 'executable', 185 'type': 'executable',
122 'dependencies': [ 186 'dependencies': [
123 'gpu_demo_framework_exe', 187 'gpu_demo_framework_exe',
124 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle', 188 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle',
125 ], 189 ],
126 'sources': [ 190 'sources': [
127 'gles2_book/example.h', 191 'gles2_book/example.h',
128 'gles2_book/hello_triangle.cc', 192 'gles2_book/demo_hello_triangle.cc',
129 ], 193 ],
130 }, 194 },
131 { 195 {
132 'target_name': 'mip_map_2d_exe', 196 'target_name': 'mip_map_2d_exe',
133 'type': 'executable', 197 'type': 'executable',
134 'dependencies': [ 198 'dependencies': [
135 'gpu_demo_framework_exe', 199 'gpu_demo_framework_exe',
136 '../../third_party/gles2_book/gles2_book.gyp:mip_map_2d', 200 '../../third_party/gles2_book/gles2_book.gyp:mip_map_2d',
137 ], 201 ],
138 'sources': [ 202 'sources': [
139 'gles2_book/example.h', 203 'gles2_book/example.h',
140 'gles2_book/mip_map_2d.cc', 204 'gles2_book/demo_mip_map_2d.cc',
141 ], 205 ],
142 }, 206 },
143 { 207 {
144 'target_name': 'simple_texture_2d_exe', 208 'target_name': 'simple_texture_2d_exe',
145 'type': 'executable', 209 'type': 'executable',
146 'dependencies': [ 210 'dependencies': [
147 'gpu_demo_framework_exe', 211 'gpu_demo_framework_exe',
148 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_2d', 212 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_2d',
149 ], 213 ],
150 'sources': [ 214 'sources': [
151 'gles2_book/example.h', 215 'gles2_book/example.h',
152 'gles2_book/simple_texture_2d.cc', 216 'gles2_book/demo_simple_texture_2d.cc',
153 ], 217 ],
154 }, 218 },
155 { 219 {
156 'target_name': 'simple_texture_cubemap_exe', 220 'target_name': 'simple_texture_cubemap_exe',
157 'type': 'executable', 221 'type': 'executable',
158 'dependencies': [ 222 'dependencies': [
159 'gpu_demo_framework_exe', 223 'gpu_demo_framework_exe',
160 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_cubemap', 224 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_cubemap',
161 ], 225 ],
162 'sources': [ 226 'sources': [
163 'gles2_book/example.h', 227 'gles2_book/example.h',
164 'gles2_book/simple_texture_cubemap.cc', 228 'gles2_book/demo_simple_texture_cubemap.cc',
165 ], 229 ],
166 }, 230 },
167 { 231 {
168 'target_name': 'simple_vertex_shader_exe', 232 'target_name': 'simple_vertex_shader_exe',
169 'type': 'executable', 233 'type': 'executable',
170 'dependencies': [ 234 'dependencies': [
171 'gpu_demo_framework_exe', 235 'gpu_demo_framework_exe',
172 '../../third_party/gles2_book/gles2_book.gyp:simple_vertex_shader', 236 '../../third_party/gles2_book/gles2_book.gyp:simple_vertex_shader',
173 ], 237 ],
174 'sources': [ 238 'sources': [
175 'gles2_book/example.h', 239 'gles2_book/example.h',
176 'gles2_book/simple_vertex_shader.cc', 240 'gles2_book/demo_simple_vertex_shader.cc',
177 ], 241 ],
178 }, 242 },
179 { 243 {
180 'target_name': 'stencil_test_exe', 244 'target_name': 'stencil_test_exe',
181 'type': 'executable', 245 'type': 'executable',
182 'dependencies': [ 246 'dependencies': [
183 'gpu_demo_framework_exe', 247 'gpu_demo_framework_exe',
184 '../../third_party/gles2_book/gles2_book.gyp:stencil_test', 248 '../../third_party/gles2_book/gles2_book.gyp:stencil_test',
185 ], 249 ],
186 'sources': [ 250 'sources': [
187 'gles2_book/example.h', 251 'gles2_book/example.h',
188 'gles2_book/stencil_test.cc', 252 'gles2_book/demo_stencil_test.cc',
189 ], 253 ],
190 }, 254 },
191 { 255 {
192 'target_name': 'texture_wrap_exe', 256 'target_name': 'texture_wrap_exe',
193 'type': 'executable', 257 'type': 'executable',
194 'dependencies': [ 258 'dependencies': [
195 'gpu_demo_framework_exe', 259 'gpu_demo_framework_exe',
196 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap', 260 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap',
197 ], 261 ],
198 'sources': [ 262 'sources': [
199 'gles2_book/example.h', 263 'gles2_book/example.h',
200 'gles2_book/texture_wrap.cc', 264 'gles2_book/demo_texture_wrap.cc',
201 ], 265 ],
202 }, 266 },
203 ], 267 ],
204 'conditions': [ 268 'conditions': [
205 ['enable_pepper_demos==1', { 269 ['enable_pepper_demos==1', {
206 'targets': [ 270 'targets': [
207 { 271 {
208 'target_name': 'hello_triangle_pepper', 272 'target_name': 'hello_triangle_pepper',
209 'type': 'loadable_module', 273 'type': 'loadable_module',
210 'dependencies': [ 274 'dependencies': [
211 'gpu_demo_framework_pepper', 275 'gpu_demo_framework_pepper',
212 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle', 276 '../../third_party/gles2_book/gles2_book.gyp:hello_triangle',
213 ], 277 ],
214 'sources': [ 278 'sources': [
215 'gles2_book/example.h', 279 'gles2_book/example.h',
216 'gles2_book/hello_triangle.cc', 280 'gles2_book/demo_hello_triangle.cc',
217 ], 281 ],
218 }, 282 },
219 { 283 {
220 'target_name': 'mip_map_2d_pepper', 284 'target_name': 'mip_map_2d_pepper',
221 'type': 'loadable_module', 285 'type': 'loadable_module',
222 'dependencies': [ 286 'dependencies': [
223 'gpu_demo_framework_pepper', 287 'gpu_demo_framework_pepper',
224 '../../third_party/gles2_book/gles2_book.gyp:mip_map_2d', 288 '../../third_party/gles2_book/gles2_book.gyp:mip_map_2d',
225 ], 289 ],
226 'sources': [ 290 'sources': [
227 'gles2_book/example.h', 291 'gles2_book/example.h',
228 'gles2_book/mip_map_2d.cc', 292 'gles2_book/demo_mip_map_2d.cc',
229 ], 293 ],
230 }, 294 },
231 { 295 {
232 'target_name': 'simple_texture_2d_pepper', 296 'target_name': 'simple_texture_2d_pepper',
233 'type': 'loadable_module', 297 'type': 'loadable_module',
234 'dependencies': [ 298 'dependencies': [
235 'gpu_demo_framework_pepper', 299 'gpu_demo_framework_pepper',
236 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_2d', 300 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_2d',
237 ], 301 ],
238 'sources': [ 302 'sources': [
239 'gles2_book/example.h', 303 'gles2_book/example.h',
240 'gles2_book/simple_texture_2d.cc', 304 'gles2_book/demo_simple_texture_2d.cc',
241 ], 305 ],
242 }, 306 },
243 { 307 {
244 'target_name': 'simple_texture_cubemap_pepper', 308 'target_name': 'simple_texture_cubemap_pepper',
245 'type': 'loadable_module', 309 'type': 'loadable_module',
246 'dependencies': [ 310 'dependencies': [
247 'gpu_demo_framework_pepper', 311 'gpu_demo_framework_pepper',
248 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_cubemap' , 312 '../../third_party/gles2_book/gles2_book.gyp:simple_texture_cubemap' ,
249 ], 313 ],
250 'sources': [ 314 'sources': [
251 'gles2_book/example.h', 315 'gles2_book/example.h',
252 'gles2_book/simple_texture_cubemap.cc', 316 'gles2_book/demo_simple_texture_cubemap.cc',
253 ], 317 ],
254 }, 318 },
255 { 319 {
256 'target_name': 'simple_vertex_shader_pepper', 320 'target_name': 'simple_vertex_shader_pepper',
257 'type': 'loadable_module', 321 'type': 'loadable_module',
258 'dependencies': [ 322 'dependencies': [
259 'gpu_demo_framework_pepper', 323 'gpu_demo_framework_pepper',
260 '../../third_party/gles2_book/gles2_book.gyp:simple_vertex_shader', 324 '../../third_party/gles2_book/gles2_book.gyp:simple_vertex_shader',
261 ], 325 ],
262 'sources': [ 326 'sources': [
263 'gles2_book/example.h', 327 'gles2_book/example.h',
264 'gles2_book/simple_vertex_shader.cc', 328 'gles2_book/demo_simple_vertex_shader.cc',
265 ], 329 ],
266 }, 330 },
267 { 331 {
268 'target_name': 'stencil_test_pepper', 332 'target_name': 'stencil_test_pepper',
269 'type': 'loadable_module', 333 'type': 'loadable_module',
270 'dependencies': [ 334 'dependencies': [
271 'gpu_demo_framework_pepper', 335 'gpu_demo_framework_pepper',
272 '../../third_party/gles2_book/gles2_book.gyp:stencil_test', 336 '../../third_party/gles2_book/gles2_book.gyp:stencil_test',
273 ], 337 ],
274 'sources': [ 338 'sources': [
275 'gles2_book/example.h', 339 'gles2_book/example.h',
276 'gles2_book/stencil_test.cc', 340 'gles2_book/demo_stencil_test.cc',
277 ], 341 ],
278 }, 342 },
279 { 343 {
280 'target_name': 'texture_wrap_pepper', 344 'target_name': 'texture_wrap_pepper',
281 'type': 'loadable_module', 345 'type': 'loadable_module',
282 'dependencies': [ 346 'dependencies': [
283 'gpu_demo_framework_pepper', 347 'gpu_demo_framework_pepper',
284 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap', 348 '../../third_party/gles2_book/gles2_book.gyp:texture_wrap',
285 ], 349 ],
286 'sources': [ 350 'sources': [
287 'gles2_book/example.h', 351 'gles2_book/example.h',
288 'gles2_book/texture_wrap.cc', 352 'gles2_book/demo_texture_wrap.cc',
353 ],
354 },
355 {
356 'target_name': 'hello_triangle_ppapi',
357 'type': 'loadable_module',
358 'variables': { 'chromium_code': 0, },
359 'dependencies': [ 'gpu_demo_framework_ppapi', ],
360 'sources': [
361 'gles2_book/example.h',
362 'gles2_book/demo_hello_triangle.cc',
363 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl e.c',
364 '../../third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangl e.h',
365 ],
366 },
367 {
368 'target_name': 'mip_map_2d_ppapi',
369 'type': 'loadable_module',
370 'variables': { 'chromium_code': 0, },
371 'dependencies': [ 'gpu_demo_framework_ppapi', ],
372 'sources': [
373 'gles2_book/example.h',
374 'gles2_book/demo_mip_map_2d.cc',
375 '../../third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.c',
376 '../../third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.h',
377 ],
378 },
379 {
380 'target_name': 'simple_texture_2d_ppapi',
381 'type': 'loadable_module',
382 'variables': { 'chromium_code': 0, },
383 'dependencies': [ 'gpu_demo_framework_ppapi', ],
384 'sources': [
385 'gles2_book/example.h',
386 'gles2_book/demo_simple_texture_2d.cc',
387 '../../third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Text ure2D.c',
388 '../../third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Text ure2D.h',
389 ],
390 },
391 {
392 'target_name': 'simple_texture_cubemap_ppapi',
393 'type': 'loadable_module',
394 'variables': { 'chromium_code': 0, },
395 'dependencies': [ 'gpu_demo_framework_ppapi', ],
396 'sources': [
397 'gles2_book/example.h',
398 'gles2_book/demo_simple_texture_cubemap.cc',
399 '../../third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple _TextureCubemap.c',
400 '../../third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple _TextureCubemap.h',
401 ],
402 },
403 {
404 'target_name': 'simple_vertex_shader_ppapi',
405 'type': 'loadable_module',
406 'variables': { 'chromium_code': 0, },
407 'dependencies': [ 'gpu_demo_framework_ppapi', ],
408 'sources': [
409 'gles2_book/example.h',
410 'gles2_book/demo_simple_vertex_shader.cc',
411 '../../third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_V ertexShader.c',
412 '../../third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_V ertexShader.h',
413 ],
414 },
415 {
416 'target_name': 'stencil_test_ppapi',
417 'type': 'loadable_module',
418 'variables': { 'chromium_code': 0, },
419 'dependencies': [ 'gpu_demo_framework_ppapi', ],
420 'sources': [
421 'gles2_book/example.h',
422 'gles2_book/demo_stencil_test.cc',
423 '../../third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c ',
424 '../../third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h ',
425 ],
426 },
427 {
428 'target_name': 'texture_wrap_ppapi',
429 'type': 'loadable_module',
430 'variables': { 'chromium_code': 0, },
431 'dependencies': [ 'gpu_demo_framework_ppapi', ],
432 'sources': [
433 'gles2_book/example.h',
434 'gles2_book/demo_texture_wrap.cc',
435 '../../third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c',
436 '../../third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.h',
289 ], 437 ],
290 }, 438 },
291 ], 439 ],
292 }], 440 }],
293 ], 441 ],
294 } 442 }
295 443
296 # Local Variables: 444 # Local Variables:
297 # tab-width:2 445 # tab-width:2
298 # indent-tabs-mode:nil 446 # indent-tabs-mode:nil
299 # End: 447 # End:
300 # vim: set expandtab tabstop=2 shiftwidth=2: 448 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | gpu/demos/framework/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698