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

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

Issue 7242011: Get rid of assumptions about ".nexe" extension. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 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 2011 The Native Client Authors. All rights reserved. 2 # Copyright 2011 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 'Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c'], 48 'Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c'],
49 'simple_vertex_shader': [ 49 'simple_vertex_shader': [
50 'Chapter_8/Simple_VertexShader/Simple_VertexShader.c'], 50 'Chapter_8/Simple_VertexShader/Simple_VertexShader.c'],
51 'stencil_test': [ 51 'stencil_test': [
52 'Chapter_11/Stencil_Test/Stencil_Test.c'], 52 'Chapter_11/Stencil_Test/Stencil_Test.c'],
53 'texture_wrap': [ 53 'texture_wrap': [
54 'Chapter_9/TextureWrap/TextureWrap.c'], 54 'Chapter_9/TextureWrap/TextureWrap.c'],
55 } 55 }
56 56
57 for demo, sources in gles_book_examples.iteritems(): 57 for demo, sources in gles_book_examples.iteritems():
58 nexe_name = ('ppapi_gles_book_%s_%s.nexe' 58 nexe_name = ('ppapi_gles_book_%s_%s'
59 % (demo, env.get('TARGET_FULLARCH'))) 59 % (demo, env.get('TARGET_FULLARCH')))
60 nmf_name = 'ppapi_gles_book_' + demo + '.nmf' 60 nmf_name = 'ppapi_gles_book_' + demo + '.nmf'
61 nexe = env.ComponentProgram( 61 nexe = env.ComponentProgram(
62 nexe_name, 62 nexe_name,
63 ['demos/gles2_book/demo_' + demo + '.cc'] + sources, 63 ['demos/gles2_book/demo_' + demo + '.cc'] + sources,
64 EXTRA_LIBS=['${PPAPI_LIBS}', 64 EXTRA_LIBS=['${PPAPI_LIBS}',
65 'ppapi_cpp', 65 'ppapi_cpp',
66 'ppapi_gles_demo', 66 'ppapi_gles_demo',
67 'ppapi_cpp', 67 'ppapi_cpp',
68 'ppapi_gles2', 68 'ppapi_gles2',
69 'm']) 69 'm'])
70 env.Publish(nexe_name, 'run', 70 env.Publish(nexe_name, 'run',
71 ['ppapi_gles_book.html', 71 ['ppapi_gles_book.html',
72 nmf_name]) 72 nmf_name])
73 test = env.PPAPIBrowserTester('ppapi_gles_book_' + demo + '.out', 73 test = env.PPAPIBrowserTester('ppapi_gles_book_' + demo + '.out',
74 url='ppapi_gles_book.html?manifest=' 74 url='ppapi_gles_book.html?manifest='
75 + nmf_name, 75 + nmf_name,
76 files=[nexe, 76 files=[nexe,
77 env.File(nmf_name), 77 env.File(nmf_name),
78 env.File('ppapi_gles_book.html')], 78 env.File('ppapi_gles_book.html')],
79 args=['--enable_experimental_js']) 79 args=['--enable_experimental_js'])
80 env.AddNodeToTestSuite(test, 80 env.AddNodeToTestSuite(test,
81 ['chrome_browser_tests'], 81 ['chrome_browser_tests'],
82 'run_ppapi_gles_book_' + demo + '_test', 82 'run_ppapi_gles_book_' + demo + '_test',
83 is_broken=env.PPAPIBrowserTesterIsBroken()) 83 is_broken=env.PPAPIBrowserTesterIsBroken())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698