| OLD | NEW |
| 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', 'GL_GLEXT_PROTOTYPES']) | 10 env.Prepend(CPPDEFINES=['XP_UNIX', 'GL_GLEXT_PROTOTYPES']) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 # For now, we just avoid adding them to a test suite. | 62 # For now, we just avoid adding them to a test suite. |
| 63 if env.Bit('bitcode'): | 63 if env.Bit('bitcode'): |
| 64 Return() | 64 Return() |
| 65 | 65 |
| 66 for demo, sources in gles_book_examples.iteritems(): | 66 for demo, sources in gles_book_examples.iteritems(): |
| 67 nexe_name = env.ProgramNameForNmf('ppapi_gles_book_%s' % demo) | 67 nexe_name = env.ProgramNameForNmf('ppapi_gles_book_%s' % demo) |
| 68 nmf_name = 'ppapi_gles_book_' + demo + '.nmf' | 68 nmf_name = 'ppapi_gles_book_' + demo + '.nmf' |
| 69 nexe = env.ComponentProgram( | 69 nexe = env.ComponentProgram( |
| 70 nexe_name, | 70 nexe_name, |
| 71 ['demos/gles2_book/demo_' + demo + '.cc'] + sources, | 71 ['demos/gles2_book/demo_' + demo + '.cc'] + sources, |
| 72 EXTRA_LIBS=['${PPAPI_LIBS}', | 72 EXTRA_LIBS=['ppapi', |
| 73 'ppapi_cpp', | 73 'ppapi_cpp', |
| 74 'ppapi_gles_demo', | 74 'ppapi_gles_demo', |
| 75 'ppapi_cpp', | 75 'ppapi_cpp', |
| 76 'ppapi_gles2', | 76 'ppapi_gles2', |
| 77 'm']) | 77 'm']) |
| 78 env.Publish(nexe_name, 'run', | 78 env.Publish(nexe_name, 'run', |
| 79 ['ppapi_gles_book.html']) | 79 ['ppapi_gles_book.html']) |
| 80 test = env.PPAPIBrowserTester( | 80 test = env.PPAPIBrowserTester( |
| 81 'ppapi_gles_book_' + demo + '.out', | 81 'ppapi_gles_book_' + demo + '.out', |
| 82 url='ppapi_gles_book.html?manifest=' + nmf_name, | 82 url='ppapi_gles_book.html?manifest=' + nmf_name, |
| 83 nmfs=['${TEST_DIR}/' + nmf_name], | 83 nmfs=['${TEST_DIR}/' + nmf_name], |
| 84 files=[nexe, | 84 files=[nexe, |
| 85 env.File('ppapi_gles_book.html')], | 85 env.File('ppapi_gles_book.html')], |
| 86 browser_flags=['--enable-accelerated-plugins']) | 86 browser_flags=['--enable-accelerated-plugins']) |
| 87 env.AddNodeToTestSuite( | 87 env.AddNodeToTestSuite( |
| 88 test, | 88 test, |
| 89 ['chrome_browser_tests'], | 89 ['chrome_browser_tests'], |
| 90 'run_ppapi_gles_book_' + demo + '_test', | 90 'run_ppapi_gles_book_' + demo + '_test', |
| 91 is_broken=env.PPAPIBrowserTesterIsBroken() or | 91 is_broken=env.PPAPIBrowserTesterIsBroken() or |
| 92 env.PPAPIGraphics3DIsBroken()) | 92 env.PPAPIGraphics3DIsBroken()) |
| OLD | NEW |