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

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

Issue 10191008: Restore ppapi_gles example NMF files so that they look more (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | ppapi/native_client/tests/ppapi_gles_book/ppapi_gles_book_hello_triangle.nmf » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 'simple_texture_cubemap': [ 49 'simple_texture_cubemap': [
50 'Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c'], 50 'Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c'],
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 # TODO(jvoung): PPAPIGraphics3DIsBroken is currently marked True.
60 # When we turn on these tests again, be sure to convert these
61 # NMF files to work with PNaCl (have a portable-only version).
62 # For now, we just avoid adding them to a test suite.
63 if env.Bit('bitcode'):
64 Return()
65
59 for demo, sources in gles_book_examples.iteritems(): 66 for demo, sources in gles_book_examples.iteritems():
60 nexe_name = env.ProgramNameForNmf('ppapi_gles_book_%s' % demo) 67 nexe_name = env.ProgramNameForNmf('ppapi_gles_book_%s' % demo)
61 nmf_name_base = 'ppapi_gles_book_' + demo 68 nmf_name = 'ppapi_gles_book_' + demo + '.nmf'
62 nmf_name = nmf_name_base + '.nmf'
63 nexe = env.ComponentProgram( 69 nexe = env.ComponentProgram(
64 nexe_name, 70 nexe_name,
65 ['demos/gles2_book/demo_' + demo + '.cc'] + sources, 71 ['demos/gles2_book/demo_' + demo + '.cc'] + sources,
66 EXTRA_LIBS=['${PPAPI_LIBS}', 72 EXTRA_LIBS=['${PPAPI_LIBS}',
67 'ppapi_cpp', 73 'ppapi_cpp',
68 'ppapi_gles_demo', 74 'ppapi_gles_demo',
69 'ppapi_cpp', 75 'ppapi_cpp',
70 'ppapi_gles2', 76 'ppapi_gles2',
71 'm']) 77 'm'])
72 env.Publish(nexe_name, 'run', 78 env.Publish(nexe_name, 'run',
73 ['ppapi_gles_book.html']) 79 ['ppapi_gles_book.html'])
74 test = env.PPAPIBrowserTester( 80 test = env.PPAPIBrowserTester(
75 'ppapi_gles_book_' + demo + '.out', 81 'ppapi_gles_book_' + demo + '.out',
76 url='ppapi_gles_book.html?manifest=' + nmf_name, 82 url='ppapi_gles_book.html?manifest=' + nmf_name,
77 nmf_names=[nmf_name_base], 83 nmfs=['${TEST_DIR}/' + nmf_name],
78 files=[nexe, 84 files=[nexe,
79 env.File('ppapi_gles_book.html')], 85 env.File('ppapi_gles_book.html')],
80 browser_flags=['--enable-accelerated-plugins']) 86 browser_flags=['--enable-accelerated-plugins'])
81 env.AddNodeToTestSuite( 87 env.AddNodeToTestSuite(
82 test, 88 test,
83 ['chrome_browser_tests'], 89 ['chrome_browser_tests'],
84 'run_ppapi_gles_book_' + demo + '_test', 90 'run_ppapi_gles_book_' + demo + '_test',
85 is_broken=env.PPAPIBrowserTesterIsBroken() or 91 is_broken=env.PPAPIBrowserTesterIsBroken() or
86 env.PPAPIGraphics3DIsBroken()) 92 env.PPAPIGraphics3DIsBroken())
OLDNEW
« no previous file with comments | « no previous file | ppapi/native_client/tests/ppapi_gles_book/ppapi_gles_book_hello_triangle.nmf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698