OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 # This is a C PPAPI | 6 # This is a C PPAPI |
7 # | 7 # |
8 # ppapi_messaging.html - test driver that loads the nexe and scripts it | 8 # ppapi_messaging.html - test driver that loads the nexe and scripts it |
9 # ppapi_messaging.nmf - manifest file for serving platform specific nexe binary. | 9 # ppapi_messaging.nmf - manifest file for serving platform specific nexe binary. |
10 # | 10 # |
11 # ppapi_messaging.c - implementation of PPP interface and PPP_Instance | 11 # ppapi_messaging.c - implementation of PPP interface and PPP_Instance |
12 | 12 |
13 Import('env') | 13 Import('env') |
14 | 14 |
15 env.Prepend(CPPDEFINES=['XP_UNIX']) | 15 env.Prepend(CPPDEFINES=['XP_UNIX']) |
16 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' + | |
17 'ppapi_messaging/') | |
18 | 16 |
19 nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH') | 17 nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH') |
20 | 18 |
21 env.Alias('ppapi_messaging${PROGSUFFIX}', | 19 env.Alias('ppapi_messaging${PROGSUFFIX}', |
22 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 20 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
23 | 21 |
24 ppapi_messaging_nexe = env.ComponentProgram(nexe, | 22 ppapi_messaging_nexe = env.ComponentProgram(nexe, |
25 ['ppapi_messaging.c'], | 23 ['ppapi_messaging.c'], |
26 EXTRA_LIBS=['${PPAPI_LIBS}', | 24 EXTRA_LIBS=['${PPAPI_LIBS}', |
27 'platform', | 25 'platform', |
28 'gio', | 26 'gio', |
29 'pthread', | 27 'pthread', |
30 'm', | 28 'm', |
31 ]) | 29 ]) |
32 | 30 |
33 # Note that the html is required to run this program. | 31 # Note that the html is required to run this program. |
34 dest_copy = env.Replicate('$STAGING_DIR', | 32 dest_copy = env.Replicate('$STAGING_DIR', |
35 ['ppapi_messaging.html', | 33 ['ppapi_messaging.html', |
| 34 'ppapi_messaging.nmf', |
36 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' | 35 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' |
37 'browserdata/nacltest.js')] | 36 'browserdata/nacltest.js')] |
38 ) | 37 ) |
39 env.Depends(nexe, dest_copy) | 38 env.Depends(nexe, dest_copy) |
40 | 39 |
41 node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out', | 40 node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out', |
42 url='ppapi_messaging.html', | 41 url='ppapi_messaging.html', |
43 nmf='${TEST_DIR}/ppapi_messaging.nmf', | |
44 files=[ppapi_messaging_nexe, | 42 files=[ppapi_messaging_nexe, |
45 env.File('ppapi_messaging.nmf'), | 43 env.File('ppapi_messaging.nmf'), |
46 env.File('ppapi_messaging.html')]) | 44 env.File('ppapi_messaging.html')]) |
47 | 45 |
48 env.AddNodeToTestSuite(node, | 46 env.AddNodeToTestSuite(node, |
49 ['chrome_browser_tests'], | 47 ['chrome_browser_tests'], |
50 'run_ppapi_messaging_browser_test', | 48 'run_ppapi_messaging_browser_test', |
51 is_broken=env.PPAPIBrowserTesterIsBroken()) | 49 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |