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