| 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-fast-dtoa.cc', | 57 'test-fast-dtoa.cc', |
| 58 'test-fixed-dtoa.cc', | 58 'test-fixed-dtoa.cc', |
| 59 'test-flags.cc', | 59 'test-flags.cc', |
| 60 'test-func-name-inference.cc', | 60 'test-func-name-inference.cc', |
| 61 'test-hashmap.cc', | 61 'test-hashmap.cc', |
| 62 'test-heap-profiler.cc', | 62 'test-heap-profiler.cc', |
| 63 'test-heap.cc', | 63 'test-heap.cc', |
| 64 'test-list.cc', | 64 'test-list.cc', |
| 65 'test-liveedit.cc', | 65 'test-liveedit.cc', |
| 66 'test-lock.cc', | 66 'test-lock.cc', |
| 67 'test-lockers.cc', |
| 67 'test-log-utils.cc', | 68 'test-log-utils.cc', |
| 68 'test-log.cc', | 69 'test-log.cc', |
| 69 'test-mark-compact.cc', | 70 'test-mark-compact.cc', |
| 70 'test-parsing.cc', | 71 'test-parsing.cc', |
| 71 'test-platform-tls.cc', | 72 'test-platform-tls.cc', |
| 72 'test-profile-generator.cc', | 73 'test-profile-generator.cc', |
| 73 'test-regexp.cc', | 74 'test-regexp.cc', |
| 74 'test-reloc-info.cc', | 75 'test-reloc-info.cc', |
| 75 'test-serialize.cc', | 76 'test-serialize.cc', |
| 76 'test-sockets.cc', | 77 'test-sockets.cc', |
| 77 'test-spaces.cc', | 78 'test-spaces.cc', |
| 78 'test-strings.cc', | 79 'test-strings.cc', |
| 79 'test-strtod.cc', | 80 'test-strtod.cc', |
| 80 'test-thread-termination.cc', | 81 'test-thread-termination.cc', |
| 81 'test-threads.cc', | 82 'test-threads.cc', |
| 82 'test-type-info.cc', | |
| 83 'test-unbound-queue.cc', | 83 'test-unbound-queue.cc', |
| 84 'test-utils.cc', | 84 'test-utils.cc', |
| 85 'test-version.cc' | 85 'test-version.cc' |
| 86 ], | 86 ], |
| 87 'arch:arm': [ | 87 'arch:arm': [ |
| 88 'test-assembler-arm.cc', | 88 'test-assembler-arm.cc', |
| 89 'test-disasm-arm.cc' | 89 'test-disasm-arm.cc' |
| 90 ], | 90 ], |
| 91 'arch:ia32': [ | 91 'arch:ia32': [ |
| 92 'test-assembler-ia32.cc', | 92 'test-assembler-ia32.cc', |
| 93 'test-disasm-ia32.cc', | 93 'test-disasm-ia32.cc', |
| 94 'test-log-stack-tracer.cc' | 94 'test-log-stack-tracer.cc' |
| 95 ], | 95 ], |
| 96 'arch:x64': ['test-assembler-x64.cc', | 96 'arch:x64': ['test-assembler-x64.cc', |
| 97 'test-macro-assembler-x64.cc', | 97 'test-macro-assembler-x64.cc', |
| 98 'test-log-stack-tracer.cc'], | 98 'test-log-stack-tracer.cc'], |
| 99 'arch:mips': ['test-assembler-mips.cc'], | 99 'arch:mips': ['test-assembler-mips.cc', |
| 100 'test-disasm-mips.cc'], |
| 100 'os:linux': ['test-platform-linux.cc'], | 101 'os:linux': ['test-platform-linux.cc'], |
| 101 'os:macos': ['test-platform-macos.cc'], | 102 'os:macos': ['test-platform-macos.cc'], |
| 102 'os:nullos': ['test-platform-nullos.cc'], | 103 'os:nullos': ['test-platform-nullos.cc'], |
| 103 'os:win32': ['test-platform-win32.cc'] | 104 'os:win32': ['test-platform-win32.cc'] |
| 104 } | 105 } |
| 105 | 106 |
| 106 | 107 |
| 107 def Build(): | 108 def Build(): |
| 108 cctest_files = context.GetRelevantSources(SOURCES) | 109 cctest_files = context.GetRelevantSources(SOURCES) |
| 109 env = Environment() | 110 env = Environment() |
| 110 env.Replace(**context.flags['cctest']) | 111 env.Replace(**context.flags['cctest']) |
| 111 context.ApplyEnvOverrides(env) | 112 context.ApplyEnvOverrides(env) |
| 112 # There seems to be a glitch in the way scons decides where to put | 113 # There seems to be a glitch in the way scons decides where to put |
| 113 # PDB files when compiling using MSVC so we specify it manually. | 114 # PDB files when compiling using MSVC so we specify it manually. |
| 114 # This should not affect any other platforms. | 115 # This should not affect any other platforms. |
| 115 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], | 116 return env.Program('cctest', ['cctest.cc', cctest_files, object_files], |
| 116 PDB='cctest.exe.pdb') | 117 PDB='cctest.exe.pdb') |
| 117 | 118 |
| 118 | 119 |
| 119 program = Build() | 120 program = Build() |
| 120 Return('program') | 121 Return('program') |
| OLD | NEW |