summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/nacl.scons
blob: 727e7519a9e024334f0a109405954b604b4f43c1 (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
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Import('env')

ppapi_tests_target = 'ppapi_tests_%s.nexe' % env.get('TARGET_FULLARCH')

ppapi_tests_nexe = env.ComponentProgram(ppapi_tests_target,
                                        [Glob('*.cc')],
                                        EXTRA_LIBS=['ppruntime',
                                                    'ppapi_cpp',
                                                    'platform',
                                                    'imc',
                                                    'gio',
                                                    'pthread',
                                                    'srpc'])

# Note that the html is required to run this program.
# To run, load page with mode=nacl search string:
# http://localhost:5103/scons-out/nacl-x86-32/staging/test_case.html?mode=nacl
# http://localhost:5103/scons-out/nacl-x86-64/staging/test_case.html?mode=nacl
env.Publish(ppapi_tests_nexe, 'run',
            ['test_case.html',
             'test_case.nmf',
             'test_image_data',
             'test_page.css',
             'test_url_loader_data'])