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

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

Issue 7242011: Get rid of assumptions about ".nexe" extension. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 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
« no previous file with comments | « tests/dynamic_linking/nacl.scons ('k') | tests/egyptian_cotton/nacl.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Import('env') 6 Import('env')
7 7
8 if (not env.Bit('bitcode')): 8 if (not env.Bit('bitcode')):
9 flags = ['-mfpmath=sse', '-msse2', '-O3', '-ffast-math', 9 flags = ['-mfpmath=sse', '-msse2', '-O3', '-ffast-math',
10 '-fomit-frame-pointer'] 10 '-fomit-frame-pointer']
11 env.Append(CCFLAGS=flags) 11 env.Append(CCFLAGS=flags)
12 env.Append(CXXFLAGS=flags) 12 env.Append(CXXFLAGS=flags)
13 13
14 earthlib = env.ComponentLibrary('earthlib', ['earth.cc']) 14 earthlib = env.ComponentLibrary('earthlib', ['earth.cc'])
15 15
16 # build, C then C++ 16 # build, C then C++
17 cobj=['pepper_c.c'] 17 cobj=['pepper_c.c']
18 c_nexe_name = 'earth_c_%s.nexe' % env.get('TARGET_FULLARCH') 18 c_nexe_name = 'earth_c_%s' % env.get('TARGET_FULLARCH')
19 cnexe = env.ComponentProgram(c_nexe_name, cobj, 19 cnexe = env.ComponentProgram(c_nexe_name, cobj,
20 EXTRA_LIBS=['earthlib', 20 EXTRA_LIBS=['earthlib',
21 '${PPAPI_LIBS}', 21 '${PPAPI_LIBS}',
22 'm', 'pthread']) 22 'm', 'pthread'])
23 env.Publish(c_nexe_name, 'run', ['earth_c.html', 'earth_c.nmf']) 23 env.Publish(c_nexe_name, 'run', ['earth_c.html', 'earth_c.nmf'])
24 24
25 node = env.DemoSelLdrNacl('demo_earth_c', cnexe, args=[]) 25 node = env.DemoSelLdrNacl('demo_earth_c', cnexe, args=[])
26 # Note: Make this available from top level 26 # Note: Make this available from top level
27 Alias('demo_earth_c', node) 27 Alias('demo_earth_c', node)
28 28
29 ccobj=['pepper_cc.cc'] 29 ccobj=['pepper_cc.cc']
30 cc_nexe_name = 'earth_cc_%s.nexe' % env.get('TARGET_FULLARCH') 30 cc_nexe_name = 'earth_cc_%s' % env.get('TARGET_FULLARCH')
31 ccnexe = env.ComponentProgram(cc_nexe_name, ccobj, 31 ccnexe = env.ComponentProgram(cc_nexe_name, ccobj,
32 EXTRA_LIBS=['earthlib', 32 EXTRA_LIBS=['earthlib',
33 '${PPAPI_LIBS}', 33 '${PPAPI_LIBS}',
34 'ppapi_cpp', 34 'ppapi_cpp',
35 'm', 'pthread']) 35 'm', 'pthread'])
36 env.Publish(cc_nexe_name, 'run', ['earth_cc.html', 'earth_cc.nmf']) 36 env.Publish(cc_nexe_name, 'run', ['earth_cc.html', 'earth_cc.nmf'])
37 37
38 node = env.DemoSelLdrNacl('demo_earth_cc', ccnexe, args=[]) 38 node = env.DemoSelLdrNacl('demo_earth_cc', ccnexe, args=[])
39 # Note: Make this available from top level 39 # Note: Make this available from top level
40 Alias('demo_earth_cc', node) 40 Alias('demo_earth_cc', node)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 'earth_browser_test_cc.out', 78 'earth_browser_test_cc.out',
79 url='earth_cc.html', 79 url='earth_cc.html',
80 files=[ccnexe, 80 files=[ccnexe,
81 env.File('earth_cc.html'), 81 env.File('earth_cc.html'),
82 env.File('earth_cc.nmf'), 82 env.File('earth_cc.nmf'),
83 ], 83 ],
84 args=['--enable_experimental_js'] 84 args=['--enable_experimental_js']
85 ) 85 )
86 86
87 env.AddNodeToTestSuite(node, ['chrome_browser_tests'], 'earth_browser_test_cc') 87 env.AddNodeToTestSuite(node, ['chrome_browser_tests'], 'earth_browser_test_cc')
OLDNEW
« no previous file with comments | « tests/dynamic_linking/nacl.scons ('k') | tests/egyptian_cotton/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698