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