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 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' + | |
12 'ppapi_example_post_message/') | |
13 | 11 |
14 nexe_name = 'ppapi_example_post_message_${TARGET_FULLARCH}' | 12 nexe_name = 'ppapi_example_post_message_${TARGET_FULLARCH}' |
15 obj = env.ComponentObject( | 13 obj = env.ComponentObject( |
16 'post_message', | 14 'post_message', |
17 '$SOURCE_ROOT/ppapi/examples/scripting/post_message.cc' | 15 '$SOURCE_ROOT/ppapi/examples/scripting/post_message.cc' |
18 ) | 16 ) |
19 nexe = env.ComponentProgram(nexe_name, [obj], | 17 nexe = env.ComponentProgram(nexe_name, [obj], |
20 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) | 18 EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp']) |
21 | 19 |
22 # Note that the html is required to run this program. | 20 # Note that the html is required to run this program. |
23 env.Publish(nexe_name, 'run', | 21 env.Publish(nexe_name, 'run', |
24 ['ppapi_example_post_message.html']) | 22 ['ppapi_example_post_message.html', |
| 23 'ppapi_example_post_message.nmf']) |
25 | 24 |
26 | 25 |
27 test = env.PPAPIBrowserTester( | 26 test = env.PPAPIBrowserTester( |
28 'ppapi_example_post_message_test.out', | 27 'ppapi_example_post_message_test.out', |
29 url='ppapi_example_post_message.html', | 28 url='ppapi_example_post_message.html', |
30 nmf='${TEST_DIR}/ppapi_example_post_message.nmf', | |
31 files=env.ExtractPublishedFiles(nexe_name)) | 29 files=env.ExtractPublishedFiles(nexe_name)) |
32 | 30 |
33 env.AddNodeToTestSuite(test, | 31 env.AddNodeToTestSuite(test, |
34 ['chrome_browser_tests'], | 32 ['chrome_browser_tests'], |
35 'run_ppapi_example_post_message_test', | 33 'run_ppapi_example_post_message_test', |
36 is_broken=env.PPAPIBrowserTesterIsBroken()) | 34 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |