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

Side by Side Diff: ppapi/native_client/tests/ppapi_gles_book/nacl.scons

Issue 10166018: Convert a few more NMF files to be autogenerated and PNaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cannot autogenerate partly_invalid yet... dependency mess Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright 2012 The Native Client Authors. All rights reserved. 2 # Copyright 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can 3 # Use of this source code is governed by a BSD-style license that can
4 # be found in the LICENSE file. 4 # be found in the LICENSE file.
5 5
6 # OpenGL ES examples 6 # OpenGL ES examples
7 7
8 Import('env') 8 Import('env')
9 9
10 env.Prepend(CPPDEFINES=['XP_UNIX']) 10 env.Prepend(CPPDEFINES=['XP_UNIX'])
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 'simple_vertex_shader': [ 51 'simple_vertex_shader': [
52 'Chapter_8/Simple_VertexShader/Simple_VertexShader.c'], 52 'Chapter_8/Simple_VertexShader/Simple_VertexShader.c'],
53 'stencil_test': [ 53 'stencil_test': [
54 'Chapter_11/Stencil_Test/Stencil_Test.c'], 54 'Chapter_11/Stencil_Test/Stencil_Test.c'],
55 'texture_wrap': [ 55 'texture_wrap': [
56 'Chapter_9/TextureWrap/TextureWrap.c'], 56 'Chapter_9/TextureWrap/TextureWrap.c'],
57 } 57 }
58 58
59 for demo, sources in gles_book_examples.iteritems(): 59 for demo, sources in gles_book_examples.iteritems():
60 nexe_name = env.ProgramNameForNmf('ppapi_gles_book_%s' % demo) 60 nexe_name = env.ProgramNameForNmf('ppapi_gles_book_%s' % demo)
61 nmf_name = 'ppapi_gles_book_' + demo + '.nmf' 61 nmf_name_base = 'ppapi_gles_book_' + demo
62 nmf_name = nmf_name_base + '.nmf'
62 nexe = env.ComponentProgram( 63 nexe = env.ComponentProgram(
63 nexe_name, 64 nexe_name,
64 ['demos/gles2_book/demo_' + demo + '.cc'] + sources, 65 ['demos/gles2_book/demo_' + demo + '.cc'] + sources,
65 EXTRA_LIBS=['${PPAPI_LIBS}', 66 EXTRA_LIBS=['${PPAPI_LIBS}',
66 'ppapi_cpp', 67 'ppapi_cpp',
67 'ppapi_gles_demo', 68 'ppapi_gles_demo',
68 'ppapi_cpp', 69 'ppapi_cpp',
69 'ppapi_gles2', 70 'ppapi_gles2',
70 'm']) 71 'm'])
71 env.Publish(nexe_name, 'run', 72 env.Publish(nexe_name, 'run',
72 ['ppapi_gles_book.html']) 73 ['ppapi_gles_book.html'])
73 test = env.PPAPIBrowserTester( 74 test = env.PPAPIBrowserTester(
74 'ppapi_gles_book_' + demo + '.out', 75 'ppapi_gles_book_' + demo + '.out',
75 url='ppapi_gles_book.html?manifest=' + nmf_name, 76 url='ppapi_gles_book.html?manifest=' + nmf_name,
76 nmfs=['${TEST_DIR}/' + nmf_name], 77 nmf_names=[nmf_name_base],
77 files=[nexe, 78 files=[nexe,
78 env.File('ppapi_gles_book.html')], 79 env.File('ppapi_gles_book.html')],
79 browser_flags=['--enable-accelerated-plugins']) 80 browser_flags=['--enable-accelerated-plugins'])
80 env.AddNodeToTestSuite( 81 env.AddNodeToTestSuite(
81 test, 82 test,
82 ['chrome_browser_tests'], 83 ['chrome_browser_tests'],
83 'run_ppapi_gles_book_' + demo + '_test', 84 'run_ppapi_gles_book_' + demo + '_test',
84 is_broken=env.PPAPIBrowserTesterIsBroken() or 85 is_broken=env.PPAPIBrowserTesterIsBroken() or
85 env.PPAPIGraphics3DIsBroken()) 86 env.PPAPIGraphics3DIsBroken())
jvoung - send to chromium... 2012/04/20 23:15:15 NOTE: env.PPAPIGraphics3DIsBroken() is just uncond
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698