OLD | NEW |
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 'test-disasm-arm.cc' | 89 'test-disasm-arm.cc' |
90 ], | 90 ], |
91 'arch:ia32': [ | 91 'arch:ia32': [ |
92 'test-assembler-ia32.cc', | 92 'test-assembler-ia32.cc', |
93 'test-disasm-ia32.cc', | 93 'test-disasm-ia32.cc', |
94 'test-log-stack-tracer.cc' | 94 'test-log-stack-tracer.cc' |
95 ], | 95 ], |
96 'arch:x64': ['test-assembler-x64.cc', | 96 'arch:x64': ['test-assembler-x64.cc', |
97 'test-macro-assembler-x64.cc', | 97 'test-macro-assembler-x64.cc', |
98 'test-log-stack-tracer.cc'], | 98 'test-log-stack-tracer.cc'], |
99 'arch:mips': ['test-assembler-mips.cc', 'test-mips.cc'], | 99 'arch:mips': ['test-assembler-mips.cc'], |
100 'os:linux': ['test-platform-linux.cc'], | 100 'os:linux': ['test-platform-linux.cc'], |
101 'os:macos': ['test-platform-macos.cc'], | 101 'os:macos': ['test-platform-macos.cc'], |
102 'os:nullos': ['test-platform-nullos.cc'], | 102 'os:nullos': ['test-platform-nullos.cc'], |
103 'os:win32': ['test-platform-win32.cc'] | 103 'os:win32': ['test-platform-win32.cc'] |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 def Build(): | 107 def Build(): |
108 cctest_files = context.GetRelevantSources(SOURCES) | 108 cctest_files = context.GetRelevantSources(SOURCES) |
109 env = Environment() | 109 env = Environment() |
110 env.Replace(**context.flags['cctest']) | 110 env.Replace(**context.flags['cctest']) |
111 context.ApplyEnvOverrides(env) | 111 context.ApplyEnvOverrides(env) |
112 # There seems to be a glitch in the way scons decides where to put | 112 # There seems to be a glitch in the way scons decides where to put |
113 # PDB files when compiling using MSVC so we specify it manually. | 113 # PDB files when compiling using MSVC so we specify it manually. |
114 # This should not affect any other platforms. | 114 # This should not affect any other platforms. |
115 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], | 115 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], |
116 PDB='cctest.exe.pdb') | 116 PDB='cctest.exe.pdb') |
117 | 117 |
118 | 118 |
119 program = Build() | 119 program = Build() |
120 Return('program') | 120 Return('program') |
OLD | NEW |