OLD | NEW |
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 | 6 |
7 Import('env') | 7 Import('env') |
8 | 8 |
9 env.Prepend(CPPDEFINES=['XP_UNIX']) | 9 env.Prepend(CPPDEFINES=['XP_UNIX']) |
10 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' + | |
11 'ppb_pdf') | |
12 | 10 |
13 nexe = 'ppapi_ppb_pdf_%s' % env.get('TARGET_FULLARCH') | 11 nexe = 'ppapi_ppb_pdf_%s' % env.get('TARGET_FULLARCH') |
14 env.Alias('ppapi_ppb_pdf${PROGSUFFIX}', | 12 env.Alias('ppapi_ppb_pdf${PROGSUFFIX}', |
15 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 13 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
16 | 14 |
17 ppapi_ppb_pdf_nexe = env.ComponentProgram( | 15 ppapi_ppb_pdf_nexe = env.ComponentProgram( |
18 nexe, | 16 nexe, |
19 ['ppapi_ppb_pdf.cc'], | 17 ['ppapi_ppb_pdf.cc'], |
20 EXTRA_LIBS=['${PPAPI_LIBS}', | 18 EXTRA_LIBS=['${PPAPI_LIBS}', |
21 'ppapi_test_lib', | 19 'ppapi_test_lib', |
22 'platform', # for CHECK | 20 'platform', # for CHECK |
23 'pthread', | 21 'pthread', |
24 'gio', | 22 'gio', |
25 ]) | 23 ]) |
26 | 24 |
27 env.Publish(nexe, 'run', | 25 env.Publish(nexe, 'run', |
28 ['ppapi_ppb_pdf.html', | 26 ['ppapi_ppb_pdf.html', |
| 27 'ppapi_ppb_pdf.nmf', |
29 'ppapi_ppb_pdf.js']) | 28 'ppapi_ppb_pdf.js']) |
30 | 29 |
31 node = env.PPAPIBrowserTester('ppapi_ppb_pdf_browser_test.out', | 30 node = env.PPAPIBrowserTester('ppapi_ppb_pdf_browser_test.out', |
32 url='ppapi_ppb_pdf.html', | 31 url='ppapi_ppb_pdf.html', |
33 nmf='${TEST_DIR}/ppapi_ppb_pdf.nmf', | |
34 files=env.ExtractPublishedFiles(nexe)) | 32 files=env.ExtractPublishedFiles(nexe)) |
35 | 33 |
36 env.AddNodeToTestSuite(node, | 34 env.AddNodeToTestSuite(node, |
37 ['chrome_browser_tests'], | 35 ['chrome_browser_tests'], |
38 'run_ppapi_ppb_pdf_browser_test', | 36 'run_ppapi_ppb_pdf_browser_test', |
39 is_broken=env.PPAPIBrowserTesterIsBroken()) | 37 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |