blob: baeae780481a99466aa0ca713194c29bb84fc2b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# -*- python -*-
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This is a Pepper font example from ppapi/examples/font.
Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_example_font/')
# Adjust compiler flags to the more forgiving standards used in
# ppapi/examples/*.
env.FilterOut(CCFLAGS=['-Werror', '-pedantic'])
env.Append(CCFLAGS=['-Wformat=0'])
nexe_name = 'ppapi_example_font_${TARGET_FULLARCH}'
obj = env.ComponentObject(
'simple_font',
'$SOURCE_ROOT/ppapi/examples/font/simple_font.cc'
)
nexe = env.ComponentProgram(nexe_name, [obj],
EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp'])
# Note that the html is required to run this program.
env.Publish(nexe_name, 'run',
['ppapi_example_font.html'])
test = env.PPAPIBrowserTester('ppapi_example_font_test.out',
url='ppapi_example_font.html',
nmfs=['${TEST_DIR}/ppapi_example_font.nmf'],
files=env.ExtractPublishedFiles(nexe_name))
env.AddNodeToTestSuite(test,
['chrome_browser_tests'],
'run_ppapi_example_font_test',
is_broken=env.PPAPIBrowserTesterIsBroken())
|