| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # This is a Pepper 3D (OpenGLES2) example from ppapi/examples/gles2. | 6 # This is a Pepper 3D (OpenGLES2) example from ppapi/examples/gles2. |
| 7 | 7 |
| 8 Import('env') | 8 Import('env') |
| 9 | 9 |
| 10 env.Prepend(CPPDEFINES=['XP_UNIX']) | 10 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 11 | 11 |
| 12 env.Append(CPPPATH=['$SOURCE_ROOT/ppapi/lib/gl/include']) | 12 env.Append(CPPPATH=['$SOURCE_ROOT/ppapi/lib/gl/include']) |
| 13 | 13 |
| 14 nexe_name = 'ppapi_example_gles2_%s.nexe' % env.get('TARGET_FULLARCH') | 14 nexe_name = 'ppapi_example_gles2_%s' % env.get('TARGET_FULLARCH') |
| 15 nexe = env.ComponentProgram( | 15 nexe = env.ComponentProgram( |
| 16 nexe_name, | 16 nexe_name, |
| 17 ['$SOURCE_ROOT/ppapi/examples/gles2/gles2.cc'], | 17 ['$SOURCE_ROOT/ppapi/examples/gles2/gles2.cc'], |
| 18 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) | 18 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) |
| 19 | 19 |
| 20 # Note that the html is required to run this program. | 20 # Note that the html is required to run this program. |
| 21 env.Publish(nexe_name, 'run', | 21 env.Publish(nexe_name, 'run', |
| 22 ['ppapi_example_gles2.html', 'ppapi_example_gles2.nmf']) | 22 ['ppapi_example_gles2.html', 'ppapi_example_gles2.nmf']) |
| 23 | 23 |
| 24 test = env.PPAPIBrowserTester('ppapi_example_gles2_test.out', | 24 test = env.PPAPIBrowserTester('ppapi_example_gles2_test.out', |
| 25 url='ppapi_example_gles2.html', | 25 url='ppapi_example_gles2.html', |
| 26 files=env.ExtractPublishedFiles(nexe_name), | 26 files=env.ExtractPublishedFiles(nexe_name), |
| 27 args=['--enable_experimental_js']) | 27 args=['--enable_experimental_js']) |
| 28 | 28 |
| 29 env.AddNodeToTestSuite(test, | 29 env.AddNodeToTestSuite(test, |
| 30 ['chrome_browser_tests'], | 30 ['chrome_browser_tests'], |
| 31 'run_ppapi_example_gles2_test', | 31 'run_ppapi_example_gles2_test', |
| 32 # TODO(cstefansen): When fixed set to | 32 # TODO(cstefansen): When fixed set to |
| 33 # env.PPAPIBrowserTesterIsBroken(). | 33 # env.PPAPIBrowserTesterIsBroken(). |
| 34 # code.google.com/p/nativeclient/issues/detail?id=1936 | 34 # code.google.com/p/nativeclient/issues/detail?id=1936 |
| 35 is_broken=True) | 35 is_broken=True) |
| OLD | NEW |