blob: 5f3a93937eab7727df59a87691a34128d179f85b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# -*- python -*-
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This is a Pepper PostMessage example from ppapi/examples/scripting.
Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_example_post_message/')
nexe_name = env.ProgramNameForNmf('ppapi_example_post_message')
obj = env.ComponentObject(
'post_message',
'$SOURCE_ROOT/ppapi/examples/scripting/post_message.cc'
)
nexe = env.ComponentProgram(nexe_name, [obj],
EXTRA_LIBS=['ppapi', 'ppapi_cpp'])
# Note that the html is required to run this program.
env.Publish(nexe_name, 'run',
['ppapi_example_post_message.html'])
test = env.PPAPIBrowserTester(
'ppapi_example_post_message_test.out',
url='ppapi_example_post_message.html',
nmf_names=['ppapi_example_post_message'],
files=env.ExtractPublishedFiles(nexe_name))
env.AddNodeToTestSuite(test,
['chrome_browser_tests'],
'run_ppapi_example_post_message_test',
is_broken=env.PPAPIBrowserTesterIsBroken())
|