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