blob: c71bc9f146bf506200dca727b358bf7e03835b8f [file] [log] [blame]
Ben Murdoch3ef787d2012-04-12 10:51:47 +01001# Copyright 2012 the V8 project authors. All rights reserved.
Ben Murdochb0fe1622011-05-05 13:52:32 +01002# Redistribution and use in source and binary forms, with or without
3# modification, are permitted provided that the following conditions are
4# met:
5#
6# * Redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer.
8# * Redistributions in binary form must reproduce the above
9# copyright notice, this list of conditions and the following
10# disclaimer in the documentation and/or other materials provided
11# with the distribution.
12# * Neither the name of Google Inc. nor the names of its
13# contributors may be used to endorse or promote products derived
14# from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
Ben Murdoch61f157c2016-09-16 13:49:30 +010028# Please keep this file in sync with BUILD.gn.
29
Ben Murdochb0fe1622011-05-05 13:52:32 +010030{
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000031 'variables': {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000032 'v8_code': 1,
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000033 'generated_file': '<(SHARED_INTERMEDIATE_DIR)/resources.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010034 },
Ben Murdochc5610432016-08-08 18:44:38 +010035 'includes': ['../../gypfiles/toolchain.gypi', '../../gypfiles/features.gypi'],
Ben Murdochb0fe1622011-05-05 13:52:32 +010036 'targets': [
37 {
38 'target_name': 'cctest',
39 'type': 'executable',
40 'dependencies': [
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000041 'resources',
Ben Murdochc5610432016-08-08 18:44:38 +010042 '../../src/v8.gyp:v8_libplatform',
Ben Murdochb0fe1622011-05-05 13:52:32 +010043 ],
44 'include_dirs': [
Ben Murdochb8a8cc12014-11-26 15:28:44 +000045 '../..',
Ben Murdochb0fe1622011-05-05 13:52:32 +010046 ],
Ben Murdochb8a8cc12014-11-26 15:28:44 +000047 'sources': [ ### gcmole(all) ###
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000048 '<(generated_file)',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000049 'compiler/c-signature.h',
50 'compiler/codegen-tester.cc',
51 'compiler/codegen-tester.h',
Ben Murdoch61f157c2016-09-16 13:49:30 +010052 'compiler/code-assembler-tester.h',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000053 'compiler/function-tester.h',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000054 'compiler/graph-builder-tester.h',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040055 'compiler/test-basic-block-profiler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000056 'compiler/test-branch-combine.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000057 'compiler/test-gap-resolver.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040058 'compiler/test-graph-visualizer.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +010059 'compiler/test-code-assembler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000060 'compiler/test-instruction.cc',
61 'compiler/test-js-context-specialization.cc',
62 'compiler/test-js-constant-cache.cc',
63 'compiler/test-js-typed-lowering.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040064 'compiler/test-jump-threading.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000065 'compiler/test-linkage.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040066 'compiler/test-loop-assignment-analysis.cc',
67 'compiler/test-loop-analysis.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000068 'compiler/test-machine-operator-reducer.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000069 'compiler/test-multiple-return.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000070 'compiler/test-node.cc',
71 'compiler/test-operator.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000072 'compiler/test-osr.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000073 'compiler/test-representation-change.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000074 'compiler/test-run-bytecode-graph-builder.cc',
Ben Murdochda12d292016-06-02 14:46:10 +010075 'compiler/test-run-calls-to-external-references.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000076 'compiler/test-run-deopt.cc',
77 'compiler/test-run-inlining.cc',
78 'compiler/test-run-intrinsics.cc',
79 'compiler/test-run-jsbranches.cc',
80 'compiler/test-run-jscalls.cc',
81 'compiler/test-run-jsexceptions.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000082 'compiler/test-run-jsobjects.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000083 'compiler/test-run-jsops.cc',
Ben Murdochc5610432016-08-08 18:44:38 +010084 'compiler/test-run-load-store.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000085 'compiler/test-run-machops.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000086 'compiler/test-run-native-calls.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040087 'compiler/test-run-stackcheck.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000088 'compiler/test-run-stubs.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000089 'compiler/test-run-variables.cc',
Ben Murdochc5610432016-08-08 18:44:38 +010090 'compiler/test-run-wasm-machops.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000091 'compiler/test-simplified-lowering.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010092 'cctest.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000093 'expression-type-collector.cc',
94 'expression-type-collector.h',
Ben Murdochda12d292016-06-02 14:46:10 +010095 'interpreter/interpreter-tester.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +010096 'interpreter/source-position-matcher.cc',
97 'interpreter/source-position-matcher.h',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000098 'interpreter/test-bytecode-generator.cc',
99 'interpreter/test-interpreter.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100100 'interpreter/test-interpreter-intrinsics.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100101 'interpreter/test-source-positions.cc',
Ben Murdoch097c5b22016-05-18 11:27:45 +0100102 'interpreter/bytecode-expectations-printer.cc',
103 'interpreter/bytecode-expectations-printer.h',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100104 'gay-fixed.cc',
105 'gay-precision.cc',
106 'gay-shortest.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000107 'heap/heap-tester.h',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100108 'heap/heap-utils.cc',
109 'heap/heap-utils.h',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000110 'heap/test-alloc.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100111 'heap/test-array-buffer-tracker.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000112 'heap/test-compaction.cc',
113 'heap/test-heap.cc',
114 'heap/test-incremental-marking.cc',
115 'heap/test-lab.cc',
116 'heap/test-mark-compact.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100117 'heap/test-page-promotion.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000118 'heap/test-spaces.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100119 'libsampler/test-sampler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000120 'print-extension.cc',
121 'profiler-extension.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100122 'test-access-checks.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100123 'test-accessors.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100124 'test-api.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000125 'test-api.h',
126 'test-api-accessors.cc',
127 'test-api-interceptors.cc',
128 'test-api-fast-accessor-builder.cc',
129 'test-array-list.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100130 'test-ast.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000131 'test-ast-expression-visitor.cc',
132 'test-asm-validator.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000133 'test-atomicops.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100134 'test-bignum.cc',
135 'test-bignum-dtoa.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400136 'test-bit-vector.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100137 'test-circular-queue.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100138 'test-code-cache.cc',
139 'test-code-layout.cc',
140 'test-code-stub-assembler.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100141 'test-compiler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000142 'test-constantpool.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100143 'test-conversions.cc',
144 'test-cpu-profiler.cc',
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100145 'test-date.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100146 'test-debug.cc',
147 'test-decls.cc',
148 'test-deoptimization.cc',
Ben Murdoch69a99ed2011-11-30 16:03:39 +0000149 'test-dictionary.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100150 'test-diy-fp.cc',
151 'test-double.cc',
152 'test-dtoa.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000153 'test-elements-kind.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100154 'test-eh-frame-hdr.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100155 'test-fast-dtoa.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400156 'test-feedback-vector.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000157 'test-field-type-tracking.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100158 'test-fixed-dtoa.cc',
159 'test-flags.cc',
160 'test-func-name-inference.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000161 'test-global-handles.cc',
162 'test-global-object.cc',
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100163 'test-hashing.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100164 'test-hashmap.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100165 'test-heap-profiler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000166 'test-hydrogen-types.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000167 'test-identity-map.cc',
168 'test-inobject-slack-tracking.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100169 'test-list.cc',
170 'test-liveedit.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000171 'test-lockers.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100172 'test-log.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000173 'test-mementos.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100174 'test-parsing.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000175 'test-platform.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100176 'test-profile-generator.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000177 'test-random-number-generator.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000178 'test-receiver-check-hidden-prototype.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100179 'test-regexp.cc',
180 'test-reloc-info.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000181 'test-representation.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400182 'test-sampler-api.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100183 'test-serialize.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000184 'test-simd.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100185 'test-strings.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000186 'test-symbols.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100187 'test-strtod.cc',
188 'test-thread-termination.cc',
189 'test-threads.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000190 'test-trace-event.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400191 'test-transitions.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000192 'test-typedarrays.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000193 'test-types.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100194 'test-unbound-queue.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400195 'test-unboxed-doubles.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000196 'test-unique.cc',
197 'test-unscopables-hidden-prototype.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100198 'test-usecounters.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100199 'test-utils.cc',
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100200 'test-version.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000201 'test-weakmaps.cc',
202 'test-weaksets.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000203 'trace-extension.cc',
204 'wasm/test-run-wasm.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100205 'wasm/test-run-wasm-64.cc',
Ben Murdochc5610432016-08-08 18:44:38 +0100206 'wasm/test-run-wasm-asmjs.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100207 'wasm/test-run-wasm-interpreter.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000208 'wasm/test-run-wasm-js.cc',
209 'wasm/test-run-wasm-module.cc',
210 'wasm/test-signatures.h',
Ben Murdochc5610432016-08-08 18:44:38 +0100211 'wasm/test-wasm-function-name-table.cc',
Ben Murdoch61f157c2016-09-16 13:49:30 +0100212 'wasm/test-run-wasm-relocation.cc',
Ben Murdochc5610432016-08-08 18:44:38 +0100213 'wasm/test-wasm-stack.cc',
214 'wasm/test-wasm-trap-position.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000215 'wasm/wasm-run-utils.h',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100216 ],
217 'conditions': [
218 ['v8_target_arch=="ia32"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000219 'sources': [ ### gcmole(arch:ia32) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100220 'test-assembler-ia32.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000221 'test-code-stubs.cc',
222 'test-code-stubs-ia32.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100223 'test-disasm-ia32.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000224 'test-macro-assembler-ia32.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100225 'test-log-stack-tracer.cc',
226 'test-run-wasm-relocation-ia32.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100227 ],
228 }],
229 ['v8_target_arch=="x64"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000230 'sources': [ ### gcmole(arch:x64) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100231 'test-assembler-x64.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000232 'test-code-stubs.cc',
233 'test-code-stubs-x64.cc',
234 'test-disasm-x64.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100235 'test-macro-assembler-x64.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100236 'test-log-stack-tracer.cc',
237 'test-run-wasm-relocation-x64.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100238 ],
239 }],
240 ['v8_target_arch=="arm"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000241 'sources': [ ### gcmole(arch:arm) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100242 'test-assembler-arm.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000243 'test-code-stubs.cc',
244 'test-code-stubs-arm.cc',
245 'test-disasm-arm.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100246 'test-macro-assembler-arm.cc',
247 'test-run-wasm-relocation-arm.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100248 ],
249 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000250 ['v8_target_arch=="arm64"', {
251 'sources': [ ### gcmole(arch:arm64) ###
252 'test-utils-arm64.cc',
253 'test-assembler-arm64.cc',
254 'test-code-stubs.cc',
255 'test-code-stubs-arm64.cc',
256 'test-disasm-arm64.cc',
257 'test-fuzz-arm64.cc',
258 'test-javascript-arm64.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100259 'test-js-arm64-variables.cc',
260 'test-run-wasm-relocation-arm64.cc'
261 ],
262 }],
263 ['v8_target_arch=="s390"', {
264 'sources': [ ### gcmole(arch:s390) ###
265 'test-assembler-s390.cc',
266 'test-code-stubs.cc',
267 'test-disasm-s390.cc'
268 ],
269 }],
270 ['v8_target_arch=="s390x"', {
271 'sources': [ ### gcmole(arch:s390x) ###
272 'test-assembler-s390.cc',
273 'test-code-stubs.cc',
274 'test-disasm-s390.cc'
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000275 ],
276 }],
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000277 ['v8_target_arch=="ppc"', {
278 'sources': [ ### gcmole(arch:ppc) ###
279 'test-assembler-ppc.cc',
280 'test-code-stubs.cc',
281 'test-disasm-ppc.cc'
282 ],
283 }],
284 ['v8_target_arch=="ppc64"', {
285 'sources': [ ### gcmole(arch:ppc64) ###
286 'test-assembler-ppc.cc',
287 'test-code-stubs.cc',
288 'test-disasm-ppc.cc'
289 ],
290 }],
Ben Murdochc5610432016-08-08 18:44:38 +0100291 ['v8_target_arch=="mips"', {
292 'sources': [ ### gcmole(arch:mips) ###
293 'test-assembler-mips.cc',
294 'test-code-stubs.cc',
295 'test-code-stubs-mips.cc',
296 'test-disasm-mips.cc',
297 'test-macro-assembler-mips.cc'
298 ],
299 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000300 ['v8_target_arch=="mipsel"', {
301 'sources': [ ### gcmole(arch:mipsel) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100302 'test-assembler-mips.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000303 'test-code-stubs.cc',
304 'test-code-stubs-mips.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000305 'test-disasm-mips.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000306 'test-macro-assembler-mips.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100307 ],
308 }],
Ben Murdochc5610432016-08-08 18:44:38 +0100309 ['v8_target_arch=="mips64"', {
310 'sources': [ ### gcmole(arch:mips64) ###
311 'test-assembler-mips64.cc',
312 'test-code-stubs.cc',
313 'test-code-stubs-mips64.cc',
314 'test-disasm-mips64.cc',
315 'test-macro-assembler-mips64.cc'
316 ],
317 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000318 ['v8_target_arch=="mips64el"', {
Ben Murdochc5610432016-08-08 18:44:38 +0100319 'sources': [ ### gcmole(arch:mips64el) ###
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000320 'test-assembler-mips64.cc',
321 'test-code-stubs.cc',
322 'test-code-stubs-mips64.cc',
323 'test-disasm-mips64.cc',
324 'test-macro-assembler-mips64.cc'
325 ],
326 }],
327 ['v8_target_arch=="x87"', {
328 'sources': [ ### gcmole(arch:x87) ###
329 'test-assembler-x87.cc',
330 'test-code-stubs.cc',
331 'test-code-stubs-x87.cc',
332 'test-disasm-x87.cc',
333 'test-macro-assembler-x87.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100334 'test-log-stack-tracer.cc',
335 'test-run-wasm-relocation-x87.cc'
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000336 ],
337 }],
338 [ 'OS=="linux" or OS=="qnx"', {
Ben Murdochb0fe1622011-05-05 13:52:32 +0100339 'sources': [
340 'test-platform-linux.cc',
341 ],
342 }],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100343 [ 'OS=="win"', {
344 'sources': [
345 'test-platform-win32.cc',
346 ],
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100347 'msvs_settings': {
348 'VCCLCompilerTool': {
349 # MSVS wants this for gay-{precision,shortest}.cc.
350 'AdditionalOptions': ['/bigobj'],
351 },
352 },
Ben Murdochb0fe1622011-05-05 13:52:32 +0100353 }],
Ben Murdochda12d292016-06-02 14:46:10 +0100354 ['v8_target_arch=="ppc" or v8_target_arch=="ppc64" \
355 or v8_target_arch=="arm" or v8_target_arch=="arm64" \
356 or v8_target_arch=="s390" or v8_target_arch=="s390x"', {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000357 # disable fmadd/fmsub so that expected results match generated code in
358 # RunFloat64MulAndFloat64Add1 and friends.
359 'cflags': ['-ffp-contract=off'],
360 }],
361 ['OS=="aix"', {
362 'ldflags': [ '-Wl,-bbigtoc' ],
363 }],
Ben Murdoch589d6972011-11-30 16:04:58 +0000364 ['component=="shared_library"', {
365 # cctest can't be built against a shared library, so we need to
366 # depend on the underlying static target in that case.
Ben Murdochc5610432016-08-08 18:44:38 +0100367 'dependencies': ['../../src/v8.gyp:v8_maybe_snapshot'],
Ben Murdoch589d6972011-11-30 16:04:58 +0000368 }, {
Ben Murdochc5610432016-08-08 18:44:38 +0100369 'dependencies': ['../../src/v8.gyp:v8'],
Ben Murdoch589d6972011-11-30 16:04:58 +0000370 }],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100371 ],
372 },
Ben Murdoch3fb3ca82011-12-02 17:19:32 +0000373 {
374 'target_name': 'resources',
375 'type': 'none',
376 'variables': {
377 'file_list': [
378 '../../tools/splaytree.js',
379 '../../tools/codemap.js',
380 '../../tools/csvparser.js',
381 '../../tools/consarray.js',
382 '../../tools/profile.js',
383 '../../tools/profile_view.js',
384 '../../tools/logreader.js',
385 'log-eq-of-logging-and-traversal.js',
386 ],
387 },
388 'actions': [
389 {
390 'action_name': 'js2c',
391 'inputs': [
392 '../../tools/js2c.py',
393 '<@(file_list)',
394 ],
395 'outputs': [
396 '<(generated_file)',
397 ],
398 'action': [
399 'python',
400 '../../tools/js2c.py',
401 '<@(_outputs)',
402 'TEST', # type
Ben Murdoch3fb3ca82011-12-02 17:19:32 +0000403 '<@(file_list)',
404 ],
405 }
406 ],
407 },
Ben Murdoch097c5b22016-05-18 11:27:45 +0100408 {
409 'target_name': 'generate-bytecode-expectations',
410 'type': 'executable',
411 'dependencies': [
Ben Murdochc5610432016-08-08 18:44:38 +0100412 '../../src/v8.gyp:v8_libplatform',
Ben Murdoch097c5b22016-05-18 11:27:45 +0100413 ],
414 'conditions': [
415 ['component=="shared_library"', {
416 # Same as cctest, we need to depend on the underlying static target.
Ben Murdochc5610432016-08-08 18:44:38 +0100417 'dependencies': ['../../src/v8.gyp:v8_maybe_snapshot'],
Ben Murdoch097c5b22016-05-18 11:27:45 +0100418 }, {
Ben Murdochc5610432016-08-08 18:44:38 +0100419 'dependencies': ['../../src/v8.gyp:v8'],
Ben Murdoch097c5b22016-05-18 11:27:45 +0100420 }],
421 ],
422 'include_dirs+': [
423 '../..',
424 ],
425 'sources': [
426 'interpreter/bytecode-expectations-printer.cc',
427 'interpreter/bytecode-expectations-printer.h',
428 'interpreter/generate-bytecode-expectations.cc',
429 ],
430 },
Ben Murdochb0fe1622011-05-05 13:52:32 +0100431 ],
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000432 'conditions': [
433 ['test_isolation_mode != "noop"', {
434 'targets': [
435 {
Ben Murdoch097c5b22016-05-18 11:27:45 +0100436 'target_name': 'cctest_exe_run',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000437 'type': 'none',
438 'dependencies': [
439 'cctest',
440 ],
441 'includes': [
Ben Murdochc5610432016-08-08 18:44:38 +0100442 '../../gypfiles/isolate.gypi',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000443 ],
444 'sources': [
Ben Murdoch097c5b22016-05-18 11:27:45 +0100445 'cctest_exe.isolate',
446 ],
447 },
448 {
449 'target_name': 'cctest_run',
450 'type': 'none',
451 'dependencies': [
452 'cctest_exe_run',
453 ],
454 'includes': [
Ben Murdochc5610432016-08-08 18:44:38 +0100455 '../../gypfiles/isolate.gypi',
Ben Murdoch097c5b22016-05-18 11:27:45 +0100456 ],
457 'sources': [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000458 'cctest.isolate',
459 ],
460 },
461 ],
462 }],
463 ],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100464}