| 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_widget') |
| 10 | 12 |
| 11 nexe = 'ppapi_ppb_widget_%s' % env.get('TARGET_FULLARCH') | 13 nexe = 'ppapi_ppb_widget_%s' % env.get('TARGET_FULLARCH') |
| 12 env.Alias('ppapi_ppb_widget${PROGSUFFIX}', | 14 env.Alias('ppapi_ppb_widget${PROGSUFFIX}', |
| 13 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 15 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
| 14 | 16 |
| 15 ppapi_ppb_widget_nexe = env.ComponentProgram( | 17 ppapi_ppb_widget_nexe = env.ComponentProgram( |
| 16 nexe, | 18 nexe, |
| 17 ['ppapi_ppb_widget.cc'], | 19 ['ppapi_ppb_widget.cc'], |
| 18 EXTRA_LIBS=['${PPAPI_LIBS}', | 20 EXTRA_LIBS=['${PPAPI_LIBS}', |
| 19 'ppapi_test_lib', | 21 'ppapi_test_lib', |
| 20 'platform', # for CHECK | 22 'platform', # for CHECK |
| 21 'pthread', | 23 'pthread', |
| 22 'gio', | 24 'gio', |
| 23 ]) | 25 ]) |
| 24 | 26 |
| 25 env.Publish(nexe, 'run', | 27 env.Publish(nexe, 'run', |
| 26 ['ppapi_ppb_widget.html', | 28 ['ppapi_ppb_widget.html', |
| 27 'ppapi_ppb_widget.nmf', | |
| 28 'ppapi_ppb_widget.js']) | 29 'ppapi_ppb_widget.js']) |
| 29 | 30 |
| 30 node = env.PPAPIBrowserTester('ppapi_ppb_widget_browser_test.out', | 31 node = env.PPAPIBrowserTester('ppapi_ppb_widget_browser_test.out', |
| 31 url='ppapi_ppb_widget.html', | 32 url='ppapi_ppb_widget.html', |
| 33 nmf='${TEST_DIR}/ppapi_ppb_widget.nmf', |
| 32 files=env.ExtractPublishedFiles(nexe)) | 34 files=env.ExtractPublishedFiles(nexe)) |
| 33 | 35 |
| 34 env.AddNodeToTestSuite(node, | 36 env.AddNodeToTestSuite(node, |
| 35 ['chrome_browser_tests'], | 37 ['chrome_browser_tests'], |
| 36 'run_ppapi_ppb_widget_browser_test', | 38 'run_ppapi_ppb_widget_browser_test', |
| 37 is_broken=env.PPAPIBrowserTesterIsBroken()) | 39 is_broken=env.PPAPIBrowserTesterIsBroken()) |
| OLD | NEW |