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 # This is a Pepper PostMessage example from ppapi/examples/scripting. | 6 # This is a Pepper PostMessage example from ppapi/examples/scripting. |
7 | 7 |
8 Import('env') | 8 Import('env') |
9 | 9 |
10 env.Prepend(CPPDEFINES=['XP_UNIX']) | 10 env.Prepend(CPPDEFINES=['XP_UNIX']) |
11 | 11 |
12 nexe_name = 'ppapi_example_post_message_%s.nexe' % env.get('TARGET_FULLARCH') | 12 nexe_name = 'ppapi_example_post_message_${TARGET_FULLARCH}' |
13 nexe = env.ComponentProgram( | 13 nexe = env.ComponentProgram( |
14 nexe_name, | 14 nexe_name, |
15 ['$SOURCE_ROOT/ppapi/examples/scripting/post_message.cc'], | 15 ['$SOURCE_ROOT/ppapi/examples/scripting/post_message.cc'], |
16 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) | 16 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) |
17 | 17 |
18 # Note that the html is required to run this program. | 18 # Note that the html is required to run this program. |
19 env.Publish(nexe_name, 'run', | 19 env.Publish(nexe_name, 'run', |
20 ['ppapi_example_post_message.html', | 20 ['ppapi_example_post_message.html', |
21 'ppapi_example_post_message.nmf']) | 21 'ppapi_example_post_message.nmf']) |
22 | 22 |
23 | 23 |
24 test = env.PPAPIBrowserTester( | 24 test = env.PPAPIBrowserTester( |
25 'ppapi_example_post_message_test.out', | 25 'ppapi_example_post_message_test.out', |
26 url='ppapi_example_post_message.html', | 26 url='ppapi_example_post_message.html', |
27 files=env.ExtractPublishedFiles(nexe_name), | 27 files=env.ExtractPublishedFiles(nexe_name), |
28 args=['--enable_experimental_js']) | 28 args=['--enable_experimental_js']) |
29 | 29 |
30 env.AddNodeToTestSuite(test, | 30 env.AddNodeToTestSuite(test, |
31 ['chrome_browser_tests'], | 31 ['chrome_browser_tests'], |
32 'run_ppapi_example_post_message_test', | 32 'run_ppapi_example_post_message_test', |
33 is_broken=env.PPAPIBrowserTesterIsBroken()) | 33 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |