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