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