Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: ppapi/native_client/tests/earth/nacl.scons

Issue 7920012: Add missing NaCl PPAPI test components to Chrome repo. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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 Import('env')
7
8 if (not env.Bit('bitcode')):
9 flags = ['-mfpmath=sse', '-msse2', '-O3', '-ffast-math',
10 '-fomit-frame-pointer']
11 env.Append(CCFLAGS=flags)
12 env.Append(CXXFLAGS=flags)
13
14 earthlib = env.ComponentLibrary('earthlib', ['earth.cc'])
15
16 # build, C then C++
17 cobj=['pepper_c.c']
18 c_nexe_name = 'earth_c_%s' % env.get('TARGET_FULLARCH')
19 cnexe = env.ComponentProgram(c_nexe_name, cobj,
20 EXTRA_LIBS=['earthlib',
21 '${PPAPI_LIBS}',
22 'm', 'pthread'])
23 env.Publish(c_nexe_name, 'run', ['earth_c.html'])
24
25 node = env.DemoSelLdrNacl('demo_earth_c', cnexe, args=[])
26 # Note: Make this available from top level
27 Alias('demo_earth_c', node)
28
29 ccobj=['pepper_cc.cc']
30 cc_nexe_name = 'earth_cc_%s' % env.get('TARGET_FULLARCH')
31 ccnexe = env.ComponentProgram(cc_nexe_name, ccobj,
32 EXTRA_LIBS=['earthlib',
33 '${PPAPI_LIBS}',
34 'ppapi_cpp',
35 'm', 'pthread'])
36 env.Publish(cc_nexe_name, 'run', ['earth_cc.html'])
37
38 node = env.DemoSelLdrNacl('demo_earth_cc', ccnexe, args=[])
39 # Note: Make this available from top level
40 Alias('demo_earth_cc', node)
41
42
43 # Validator tests, C then C++, but not for glibc
44 # TODO(bradchen): enable these tests when ncval works with glibc DSOs
45 if not env.Bit('nacl_glibc'):
46 node = env.CommandValidatorTestNacl(
47 'earth_test_val_c.out',
48 image=[cnexe],
49 )
50 env.AddNodeToTestSuite(node, ['validator_tests', 'small_tests'],
51 'run_earth_c')
52 node = env.CommandValidatorTestNacl(
53 'earth_test_val_cc.out',
54 image=[ccnexe],
55 )
56 env.AddNodeToTestSuite(node, ['validator_tests', 'small_tests'],
57 'run_earth_cc')
58
59 # TODO(robertm): enable arm support ASAP
60 if env.Bit('target_arm'):
61 Return()
62
63 # browser tests, C then C++
64
65 node = env.PPAPIBrowserTester(
66 'earth_browser_test_c.out',
67 url='earth_c.html',
68 nmfs=['earth_c.nmf'],
69 files=[cnexe,
70 env.File('earth_c.html'),
71 env.File('earth_c.nmf'),
72 ]
73 )
74
75 env.AddNodeToTestSuite(node, ['chrome_browser_tests'], 'earth_browser_test_c',
76 is_broken=env.Bit('nacl_glibc'))
77
78 node = env.PPAPIBrowserTester(
79 'earth_browser_test_cc.out',
80 url='earth_cc.html',
81 nmfs=['earth_cc.nmf'],
82 files=[ccnexe,
83 env.File('earth_cc.html'),
84 env.File('earth_cc.nmf'),
85 ]
86 )
87
88 env.AddNodeToTestSuite(node, ['chrome_browser_tests'], 'earth_browser_test_cc',
89 is_broken=env.Bit('nacl_glibc'))
OLDNEW
« no previous file with comments | « ppapi/native_client/tests/earth/earth_cc.nmf ('k') | ppapi/native_client/tests/earth/pepper_c.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698