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