Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Side by Side Diff: ppapi/native_client/tests/ppapi_example_font/nacl.scons

Issue 7778012: Landing chrome side of nacl change pre-dating ppapi switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
12 'ppapi_example_font/')
11 13
12 # Adjust compiler flags to the more forgiving standards used in 14 # Adjust compiler flags to the more forgiving standards used in
13 # ppapi/examples/*. 15 # ppapi/examples/*.
14 env.FilterOut(CCFLAGS=['-Werror', '-pedantic']) 16 env.FilterOut(CCFLAGS=['-Werror', '-pedantic'])
15 env.Append(CCFLAGS=['-Wformat=0']) 17 env.Append(CCFLAGS=['-Wformat=0'])
16 18
17 nexe_name = 'ppapi_example_font_${TARGET_FULLARCH}' 19 nexe_name = 'ppapi_example_font_${TARGET_FULLARCH}'
18 obj = env.ComponentObject( 20 obj = env.ComponentObject(
19 'simple_font', 21 'simple_font',
20 '$SOURCE_ROOT/ppapi/examples/font/simple_font.cc' 22 '$SOURCE_ROOT/ppapi/examples/font/simple_font.cc'
21 ) 23 )
22 nexe = env.ComponentProgram(nexe_name, [obj], 24 nexe = env.ComponentProgram(nexe_name, [obj],
23 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) 25 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp'])
24 26
25 # Note that the html is required to run this program. 27 # Note that the html is required to run this program.
26 env.Publish(nexe_name, 'run', 28 env.Publish(nexe_name, 'run',
27 ['ppapi_example_font.html', 'ppapi_example_font.nmf']) 29 ['ppapi_example_font.html'])
28 30
29 test = env.PPAPIBrowserTester('ppapi_example_font_test.out', 31 test = env.PPAPIBrowserTester('ppapi_example_font_test.out',
30 url='ppapi_example_font.html', 32 url='ppapi_example_font.html',
33 nmf='${TEST_DIR}/ppapi_example_font.nmf',
31 files=env.ExtractPublishedFiles(nexe_name)) 34 files=env.ExtractPublishedFiles(nexe_name))
32 35
33 env.AddNodeToTestSuite(test, 36 env.AddNodeToTestSuite(test,
34 ['chrome_browser_tests'], 37 ['chrome_browser_tests'],
35 'run_ppapi_example_font_test', 38 'run_ppapi_example_font_test',
36 is_broken=env.PPAPIBrowserTesterIsBroken()) 39 is_broken=env.PPAPIBrowserTesterIsBroken())
OLDNEW
« no previous file with comments | « ppapi/native_client/tests/ppapi_example_audio/nacl.scons ('k') | ppapi/native_client/tests/ppapi_example_gles2/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698