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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 'test-disasm-arm.cc' | 74 'test-disasm-arm.cc' |
75 ], | 75 ], |
76 'arch:ia32': [ | 76 'arch:ia32': [ |
77 'test-assembler-ia32.cc', | 77 'test-assembler-ia32.cc', |
78 'test-disasm-ia32.cc', | 78 'test-disasm-ia32.cc', |
79 'test-log-stack-tracer.cc' | 79 'test-log-stack-tracer.cc' |
80 ], | 80 ], |
81 'arch:x64': ['test-assembler-x64.cc', | 81 'arch:x64': ['test-assembler-x64.cc', |
82 'test-macro-assembler-x64.cc', | 82 'test-macro-assembler-x64.cc', |
83 'test-log-stack-tracer.cc'], | 83 'test-log-stack-tracer.cc'], |
84 'arch:mips': ['test-assembler-mips.cc'], | 84 'arch:mips': ['test-assembler-mips.cc', 'test-mips.cc'], |
85 'os:linux': ['test-platform-linux.cc'], | 85 'os:linux': ['test-platform-linux.cc'], |
86 'os:macos': ['test-platform-macos.cc'], | 86 'os:macos': ['test-platform-macos.cc'], |
87 'os:nullos': ['test-platform-nullos.cc'], | 87 'os:nullos': ['test-platform-nullos.cc'], |
88 'os:win32': ['test-platform-win32.cc'] | 88 'os:win32': ['test-platform-win32.cc'] |
89 } | 89 } |
90 | 90 |
91 | 91 |
92 def Build(): | 92 def Build(): |
93 cctest_files = context.GetRelevantSources(SOURCES) | 93 cctest_files = context.GetRelevantSources(SOURCES) |
94 env = Environment() | 94 env = Environment() |
95 env.Replace(**context.flags['cctest']) | 95 env.Replace(**context.flags['cctest']) |
96 context.ApplyEnvOverrides(env) | 96 context.ApplyEnvOverrides(env) |
97 # There seems to be a glitch in the way scons decides where to put | 97 # There seems to be a glitch in the way scons decides where to put |
98 # PDB files when compiling using MSVC so we specify it manually. | 98 # PDB files when compiling using MSVC so we specify it manually. |
99 # This should not affect any other platforms. | 99 # This should not affect any other platforms. |
100 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], | 100 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], |
101 PDB='cctest.exe.pdb') | 101 PDB='cctest.exe.pdb') |
102 | 102 |
103 | 103 |
104 program = Build() | 104 program = Build() |
105 Return('program') | 105 Return('program') |
OLD | NEW |