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