| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 'test-thread-termination.cc', | 60 'test-thread-termination.cc', |
| 61 'test-utils.cc', | 61 'test-utils.cc', |
| 62 'test-version.cc' | 62 'test-version.cc' |
| 63 ], | 63 ], |
| 64 'arch:arm': ['test-assembler-arm.cc', 'test-disasm-arm.cc'], | 64 'arch:arm': ['test-assembler-arm.cc', 'test-disasm-arm.cc'], |
| 65 'arch:ia32': [ | 65 'arch:ia32': [ |
| 66 'test-assembler-ia32.cc', | 66 'test-assembler-ia32.cc', |
| 67 'test-disasm-ia32.cc', | 67 'test-disasm-ia32.cc', |
| 68 'test-log-stack-tracer.cc' | 68 'test-log-stack-tracer.cc' |
| 69 ], | 69 ], |
| 70 'arch:x64': ['test-assembler-x64.cc', 'test-log-stack-tracer.cc'], | 70 'arch:x64': ['test-assembler-x64.cc', |
| 71 'test-macro-assembler-x64.cc', |
| 72 'test-log-stack-tracer.cc'], |
| 71 'os:linux': ['test-platform-linux.cc'], | 73 'os:linux': ['test-platform-linux.cc'], |
| 72 'os:macos': ['test-platform-macos.cc'], | 74 'os:macos': ['test-platform-macos.cc'], |
| 73 'os:nullos': ['test-platform-nullos.cc'], | 75 'os:nullos': ['test-platform-nullos.cc'], |
| 74 'os:win32': ['test-platform-win32.cc'] | 76 'os:win32': ['test-platform-win32.cc'] |
| 75 } | 77 } |
| 76 | 78 |
| 77 | 79 |
| 78 def Build(): | 80 def Build(): |
| 79 cctest_files = context.GetRelevantSources(SOURCES) | 81 cctest_files = context.GetRelevantSources(SOURCES) |
| 80 env = Environment() | 82 env = Environment() |
| 81 env.Replace(**context.flags['cctest']) | 83 env.Replace(**context.flags['cctest']) |
| 82 context.ApplyEnvOverrides(env) | 84 context.ApplyEnvOverrides(env) |
| 83 # There seems to be a glitch in the way scons decides where to put | 85 # There seems to be a glitch in the way scons decides where to put |
| 84 # PDB files when compiling using MSVC so we specify it manually. | 86 # PDB files when compiling using MSVC so we specify it manually. |
| 85 # This should not affect any other platforms. | 87 # This should not affect any other platforms. |
| 86 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], | 88 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], |
| 87 PDB='cctest.exe.pdb') | 89 PDB='cctest.exe.pdb') |
| 88 | 90 |
| 89 | 91 |
| 90 program = Build() | 92 program = Build() |
| 91 Return('program') | 93 Return('program') |
| OLD | NEW |