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

Side by Side Diff: test/cctest/SConscript

Issue 7309014: Correctly propagate toolchain setting in SConstruct. (Closed)
Patch Set: Created 9 years, 5 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
« no previous file with comments | « samples/SConscript ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 11 matching lines...) Expand all
22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 import sys 28 import sys
29 from os.path import join, dirname, abspath 29 from os.path import join, dirname, abspath
30 root_dir = dirname(File('SConstruct').rfile().abspath) 30 root_dir = dirname(File('SConstruct').rfile().abspath)
31 sys.path.append(join(root_dir, 'tools')) 31 sys.path.append(join(root_dir, 'tools'))
32 Import('context object_files') 32 Import('context object_files tools')
33 33
34 34
35 SOURCES = { 35 SOURCES = {
36 'all': [ 36 'all': [
37 'gay-fixed.cc', 37 'gay-fixed.cc',
38 'gay-precision.cc', 38 'gay-precision.cc',
39 'gay-shortest.cc', 39 'gay-shortest.cc',
40 'test-accessors.cc', 40 'test-accessors.cc',
41 'test-alloc.cc', 41 'test-alloc.cc',
42 'test-api.cc', 42 'test-api.cc',
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 'test-disasm-mips.cc'], 100 'test-disasm-mips.cc'],
101 'os:linux': ['test-platform-linux.cc'], 101 'os:linux': ['test-platform-linux.cc'],
102 'os:macos': ['test-platform-macos.cc'], 102 'os:macos': ['test-platform-macos.cc'],
103 'os:nullos': ['test-platform-nullos.cc'], 103 'os:nullos': ['test-platform-nullos.cc'],
104 'os:win32': ['test-platform-win32.cc'] 104 'os:win32': ['test-platform-win32.cc']
105 } 105 }
106 106
107 107
108 def Build(): 108 def Build():
109 cctest_files = context.GetRelevantSources(SOURCES) 109 cctest_files = context.GetRelevantSources(SOURCES)
110 env = Environment() 110 env = Environment(tools=tools)
111 env.Replace(**context.flags['cctest']) 111 env.Replace(**context.flags['cctest'])
112 context.ApplyEnvOverrides(env) 112 context.ApplyEnvOverrides(env)
113 # There seems to be a glitch in the way scons decides where to put 113 # There seems to be a glitch in the way scons decides where to put
114 # PDB files when compiling using MSVC so we specify it manually. 114 # PDB files when compiling using MSVC so we specify it manually.
115 # This should not affect any other platforms. 115 # This should not affect any other platforms.
116 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], 116 return env.Program('cctest', ['cctest.cc', cctest_files, object_files],
117 PDB='cctest.exe.pdb') 117 PDB='cctest.exe.pdb')
118 118
119 119
120 program = Build() 120 program = Build()
121 Return('program') 121 Return('program')
OLDNEW
« no previous file with comments | « samples/SConscript ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698