| 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 font example from ppapi/examples/font. | 6 # This is a Pepper font example from ppapi/examples/font. |
| 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 # Adjust compiler flags to the more forgiving standards used in | 12 # Adjust compiler flags to the more forgiving standards used in |
| 13 # ppapi/examples/*. | 13 # ppapi/examples/*. |
| 14 env.FilterOut(CCFLAGS=['-Werror', '-pedantic']) | 14 env.FilterOut(CCFLAGS=['-Werror', '-pedantic']) |
| 15 env.Append(CCFLAGS=['-Wformat=0']) | 15 env.Append(CCFLAGS=['-Wformat=0']) |
| 16 | 16 |
| 17 nexe_name = 'ppapi_example_font_%s.nexe' % env.get('TARGET_FULLARCH') | 17 nexe_name = 'ppapi_example_font_${TARGET_FULLARCH}' |
| 18 nexe = env.ComponentProgram( | 18 nexe = env.ComponentProgram( |
| 19 nexe_name, | 19 nexe_name, |
| 20 ['$SOURCE_ROOT/ppapi/examples/font/simple_font.cc'], | 20 ['$SOURCE_ROOT/ppapi/examples/font/simple_font.cc'], |
| 21 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) | 21 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) |
| 22 | 22 |
| 23 # Note that the html is required to run this program. | 23 # Note that the html is required to run this program. |
| 24 env.Publish(nexe_name, 'run', | 24 env.Publish(nexe_name, 'run', |
| 25 ['ppapi_example_font.html', 'ppapi_example_font.nmf']) | 25 ['ppapi_example_font.html', 'ppapi_example_font.nmf']) |
| 26 | 26 |
| 27 test = env.PPAPIBrowserTester('ppapi_example_font_test.out', | 27 test = env.PPAPIBrowserTester('ppapi_example_font_test.out', |
| 28 url='ppapi_example_font.html', | 28 url='ppapi_example_font.html', |
| 29 files=env.ExtractPublishedFiles(nexe_name), | 29 files=env.ExtractPublishedFiles(nexe_name), |
| 30 args=['--enable_experimental_js']) | 30 args=['--enable_experimental_js']) |
| 31 | 31 |
| 32 env.AddNodeToTestSuite(test, | 32 env.AddNodeToTestSuite(test, |
| 33 ['chrome_browser_tests'], | 33 ['chrome_browser_tests'], |
| 34 'run_ppapi_example_font_test', | 34 'run_ppapi_example_font_test', |
| 35 is_broken=env.PPAPIBrowserTesterIsBroken()) | 35 is_broken=env.PPAPIBrowserTesterIsBroken()) |
| OLD | NEW |