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