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
40
41
42
43
44
45
46
47
48
49
|
# -*- python -*-
# Copyright 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 C PPAPI
#
# ppapi_messaging.html - test driver that loads the nexe and scripts it
# ppapi_messaging.nmf - manifest file for serving platform specific nexe binary.
#
# ppapi_messaging.c - implementation of PPP interface and PPP_Instance
Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX'])
nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_messaging${PROGSUFFIX}',
['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])
ppapi_messaging_nexe = env.ComponentProgram(nexe,
['ppapi_messaging.c'],
EXTRA_LIBS=['${PPAPI_LIBS}',
'platform',
'gio',
'pthread',
'm',
])
# Note that the html is required to run this program.
dest_copy = env.Replicate('$STAGING_DIR',
['ppapi_messaging.html',
'ppapi_messaging.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js')]
)
env.Depends(nexe, dest_copy)
node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out',
url='ppapi_messaging.html',
files=[ppapi_messaging_nexe,
env.File('ppapi_messaging.nmf'),
env.File('ppapi_messaging.html')])
env.AddNodeToTestSuite(node,
['chrome_browser_tests'],
'run_ppapi_messaging_browser_test',
is_broken=env.PPAPIBrowserTesterIsBroken())
|