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