blob: e33ee810764fa41d53f667fdee4047b71416f9f0 [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
28{
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000029 'variables': {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000030 'v8_code': 1,
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000031 'generated_file': '<(SHARED_INTERMEDIATE_DIR)/resources.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010032 },
Ben Murdochc5610432016-08-08 18:44:38 +010033 'includes': ['../../gypfiles/toolchain.gypi', '../../gypfiles/features.gypi'],
Ben Murdochb0fe1622011-05-05 13:52:32 +010034 'targets': [
35 {
36 'target_name': 'cctest',
37 'type': 'executable',
38 'dependencies': [
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000039 'resources',
Ben Murdochc5610432016-08-08 18:44:38 +010040 '../../src/v8.gyp:v8_libplatform',
Ben Murdochb0fe1622011-05-05 13:52:32 +010041 ],
42 'include_dirs': [
Ben Murdochb8a8cc12014-11-26 15:28:44 +000043 '../..',
Ben Murdochb0fe1622011-05-05 13:52:32 +010044 ],
Ben Murdochb8a8cc12014-11-26 15:28:44 +000045 'sources': [ ### gcmole(all) ###
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000046 '<(generated_file)',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000047 'compiler/c-signature.h',
48 'compiler/codegen-tester.cc',
49 'compiler/codegen-tester.h',
50 'compiler/function-tester.h',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000051 'compiler/graph-builder-tester.h',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040052 'compiler/test-basic-block-profiler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000053 'compiler/test-branch-combine.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000054 'compiler/test-code-stub-assembler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000055 'compiler/test-gap-resolver.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040056 'compiler/test-graph-visualizer.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000057 'compiler/test-instruction.cc',
58 'compiler/test-js-context-specialization.cc',
59 'compiler/test-js-constant-cache.cc',
60 'compiler/test-js-typed-lowering.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040061 'compiler/test-jump-threading.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000062 'compiler/test-linkage.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040063 'compiler/test-loop-assignment-analysis.cc',
64 'compiler/test-loop-analysis.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000065 'compiler/test-machine-operator-reducer.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000066 'compiler/test-multiple-return.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000067 'compiler/test-node.cc',
68 'compiler/test-operator.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000069 'compiler/test-osr.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000070 'compiler/test-representation-change.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000071 'compiler/test-run-bytecode-graph-builder.cc',
Ben Murdochda12d292016-06-02 14:46:10 +010072 'compiler/test-run-calls-to-external-references.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000073 'compiler/test-run-deopt.cc',
74 'compiler/test-run-inlining.cc',
75 'compiler/test-run-intrinsics.cc',
76 'compiler/test-run-jsbranches.cc',
77 'compiler/test-run-jscalls.cc',
78 'compiler/test-run-jsexceptions.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000079 'compiler/test-run-jsobjects.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000080 'compiler/test-run-jsops.cc',
Ben Murdochc5610432016-08-08 18:44:38 +010081 'compiler/test-run-load-store.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000082 'compiler/test-run-machops.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000083 'compiler/test-run-native-calls.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040084 'compiler/test-run-stackcheck.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000085 'compiler/test-run-stubs.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000086 'compiler/test-run-variables.cc',
Ben Murdochc5610432016-08-08 18:44:38 +010087 'compiler/test-run-wasm-machops.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000088 'compiler/test-simplified-lowering.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010089 'cctest.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000090 'expression-type-collector.cc',
91 'expression-type-collector.h',
Ben Murdochda12d292016-06-02 14:46:10 +010092 'interpreter/interpreter-tester.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000093 'interpreter/test-bytecode-generator.cc',
94 'interpreter/test-interpreter.cc',
Ben Murdochda12d292016-06-02 14:46:10 +010095 'interpreter/test-interpreter-intrinsics.cc',
Ben Murdoch097c5b22016-05-18 11:27:45 +010096 'interpreter/bytecode-expectations-printer.cc',
97 'interpreter/bytecode-expectations-printer.h',
Ben Murdochb0fe1622011-05-05 13:52:32 +010098 'gay-fixed.cc',
99 'gay-precision.cc',
100 'gay-shortest.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000101 'heap/heap-tester.h',
102 'heap/test-alloc.cc',
103 'heap/test-compaction.cc',
104 'heap/test-heap.cc',
105 'heap/test-incremental-marking.cc',
106 'heap/test-lab.cc',
107 'heap/test-mark-compact.cc',
108 'heap/test-spaces.cc',
109 'heap/utils-inl.h',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000110 'print-extension.cc',
111 'profiler-extension.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100112 'test-accessors.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100113 'test-api.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000114 'test-api.h',
115 'test-api-accessors.cc',
116 'test-api-interceptors.cc',
117 'test-api-fast-accessor-builder.cc',
118 'test-array-list.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100119 'test-ast.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000120 'test-ast-expression-visitor.cc',
121 'test-asm-validator.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000122 'test-atomicops.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100123 'test-bignum.cc',
124 'test-bignum-dtoa.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400125 'test-bit-vector.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100126 'test-circular-queue.cc',
127 'test-compiler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000128 'test-constantpool.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100129 'test-conversions.cc',
130 'test-cpu-profiler.cc',
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100131 'test-date.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100132 'test-debug.cc',
133 'test-decls.cc',
134 'test-deoptimization.cc',
Ben Murdoch69a99ed2011-11-30 16:03:39 +0000135 'test-dictionary.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100136 'test-diy-fp.cc',
137 'test-double.cc',
138 'test-dtoa.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000139 'test-elements-kind.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100140 'test-fast-dtoa.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400141 'test-feedback-vector.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000142 'test-field-type-tracking.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100143 'test-fixed-dtoa.cc',
144 'test-flags.cc',
145 'test-func-name-inference.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000146 'test-global-handles.cc',
147 'test-global-object.cc',
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100148 'test-hashing.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100149 'test-hashmap.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100150 'test-heap-profiler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000151 'test-hydrogen-types.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000152 'test-identity-map.cc',
153 'test-inobject-slack-tracking.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100154 'test-list.cc',
155 'test-liveedit.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000156 'test-lockers.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100157 'test-log.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000158 'test-mementos.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100159 'test-parsing.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000160 'test-platform.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100161 'test-profile-generator.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000162 'test-random-number-generator.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000163 'test-receiver-check-hidden-prototype.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100164 'test-regexp.cc',
165 'test-reloc-info.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000166 'test-representation.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400167 'test-sampler-api.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100168 'test-serialize.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000169 'test-simd.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100170 'test-strings.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000171 'test-symbols.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100172 'test-strtod.cc',
173 'test-thread-termination.cc',
174 'test-threads.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000175 'test-trace-event.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400176 'test-transitions.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000177 'test-typedarrays.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000178 'test-types.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100179 'test-unbound-queue.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400180 'test-unboxed-doubles.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000181 'test-unique.cc',
182 'test-unscopables-hidden-prototype.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100183 'test-utils.cc',
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100184 'test-version.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000185 'test-weakmaps.cc',
186 'test-weaksets.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000187 'trace-extension.cc',
188 'wasm/test-run-wasm.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100189 'wasm/test-run-wasm-64.cc',
Ben Murdochc5610432016-08-08 18:44:38 +0100190 'wasm/test-run-wasm-asmjs.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000191 'wasm/test-run-wasm-js.cc',
192 'wasm/test-run-wasm-module.cc',
193 'wasm/test-signatures.h',
Ben Murdochc5610432016-08-08 18:44:38 +0100194 'wasm/test-wasm-function-name-table.cc',
195 'wasm/test-wasm-stack.cc',
196 'wasm/test-wasm-trap-position.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000197 'wasm/wasm-run-utils.h',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100198 ],
199 'conditions': [
200 ['v8_target_arch=="ia32"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000201 'sources': [ ### gcmole(arch:ia32) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100202 'test-assembler-ia32.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000203 'test-code-stubs.cc',
204 'test-code-stubs-ia32.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100205 'test-disasm-ia32.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000206 'test-macro-assembler-ia32.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100207 'test-log-stack-tracer.cc',
208 'test-run-wasm-relocation-ia32.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100209 ],
210 }],
211 ['v8_target_arch=="x64"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000212 'sources': [ ### gcmole(arch:x64) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100213 'test-assembler-x64.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000214 'test-code-stubs.cc',
215 'test-code-stubs-x64.cc',
216 'test-disasm-x64.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100217 'test-macro-assembler-x64.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100218 'test-log-stack-tracer.cc',
219 'test-run-wasm-relocation-x64.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100220 ],
221 }],
222 ['v8_target_arch=="arm"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000223 'sources': [ ### gcmole(arch:arm) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100224 'test-assembler-arm.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000225 'test-code-stubs.cc',
226 'test-code-stubs-arm.cc',
227 'test-disasm-arm.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100228 'test-macro-assembler-arm.cc',
229 'test-run-wasm-relocation-arm.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100230 ],
231 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000232 ['v8_target_arch=="arm64"', {
233 'sources': [ ### gcmole(arch:arm64) ###
234 'test-utils-arm64.cc',
235 'test-assembler-arm64.cc',
236 'test-code-stubs.cc',
237 'test-code-stubs-arm64.cc',
238 'test-disasm-arm64.cc',
239 'test-fuzz-arm64.cc',
240 'test-javascript-arm64.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100241 'test-js-arm64-variables.cc',
242 'test-run-wasm-relocation-arm64.cc'
243 ],
244 }],
245 ['v8_target_arch=="s390"', {
246 'sources': [ ### gcmole(arch:s390) ###
247 'test-assembler-s390.cc',
248 'test-code-stubs.cc',
249 'test-disasm-s390.cc'
250 ],
251 }],
252 ['v8_target_arch=="s390x"', {
253 'sources': [ ### gcmole(arch:s390x) ###
254 'test-assembler-s390.cc',
255 'test-code-stubs.cc',
256 'test-disasm-s390.cc'
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000257 ],
258 }],
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000259 ['v8_target_arch=="ppc"', {
260 'sources': [ ### gcmole(arch:ppc) ###
261 'test-assembler-ppc.cc',
262 'test-code-stubs.cc',
263 'test-disasm-ppc.cc'
264 ],
265 }],
266 ['v8_target_arch=="ppc64"', {
267 'sources': [ ### gcmole(arch:ppc64) ###
268 'test-assembler-ppc.cc',
269 'test-code-stubs.cc',
270 'test-disasm-ppc.cc'
271 ],
272 }],
Ben Murdochc5610432016-08-08 18:44:38 +0100273 ['v8_target_arch=="mips"', {
274 'sources': [ ### gcmole(arch:mips) ###
275 'test-assembler-mips.cc',
276 'test-code-stubs.cc',
277 'test-code-stubs-mips.cc',
278 'test-disasm-mips.cc',
279 'test-macro-assembler-mips.cc'
280 ],
281 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000282 ['v8_target_arch=="mipsel"', {
283 'sources': [ ### gcmole(arch:mipsel) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100284 'test-assembler-mips.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000285 'test-code-stubs.cc',
286 'test-code-stubs-mips.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000287 'test-disasm-mips.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000288 'test-macro-assembler-mips.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100289 ],
290 }],
Ben Murdochc5610432016-08-08 18:44:38 +0100291 ['v8_target_arch=="mips64"', {
292 'sources': [ ### gcmole(arch:mips64) ###
293 'test-assembler-mips64.cc',
294 'test-code-stubs.cc',
295 'test-code-stubs-mips64.cc',
296 'test-disasm-mips64.cc',
297 'test-macro-assembler-mips64.cc'
298 ],
299 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000300 ['v8_target_arch=="mips64el"', {
Ben Murdochc5610432016-08-08 18:44:38 +0100301 'sources': [ ### gcmole(arch:mips64el) ###
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000302 'test-assembler-mips64.cc',
303 'test-code-stubs.cc',
304 'test-code-stubs-mips64.cc',
305 'test-disasm-mips64.cc',
306 'test-macro-assembler-mips64.cc'
307 ],
308 }],
309 ['v8_target_arch=="x87"', {
310 'sources': [ ### gcmole(arch:x87) ###
311 'test-assembler-x87.cc',
312 'test-code-stubs.cc',
313 'test-code-stubs-x87.cc',
314 'test-disasm-x87.cc',
315 'test-macro-assembler-x87.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100316 'test-log-stack-tracer.cc',
317 'test-run-wasm-relocation-x87.cc'
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000318 ],
319 }],
320 [ 'OS=="linux" or OS=="qnx"', {
Ben Murdochb0fe1622011-05-05 13:52:32 +0100321 'sources': [
322 'test-platform-linux.cc',
323 ],
324 }],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100325 [ 'OS=="win"', {
326 'sources': [
327 'test-platform-win32.cc',
328 ],
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100329 'msvs_settings': {
330 'VCCLCompilerTool': {
331 # MSVS wants this for gay-{precision,shortest}.cc.
332 'AdditionalOptions': ['/bigobj'],
333 },
334 },
Ben Murdochb0fe1622011-05-05 13:52:32 +0100335 }],
Ben Murdochda12d292016-06-02 14:46:10 +0100336 ['v8_target_arch=="ppc" or v8_target_arch=="ppc64" \
337 or v8_target_arch=="arm" or v8_target_arch=="arm64" \
338 or v8_target_arch=="s390" or v8_target_arch=="s390x"', {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000339 # disable fmadd/fmsub so that expected results match generated code in
340 # RunFloat64MulAndFloat64Add1 and friends.
341 'cflags': ['-ffp-contract=off'],
342 }],
343 ['OS=="aix"', {
344 'ldflags': [ '-Wl,-bbigtoc' ],
345 }],
Ben Murdoch589d6972011-11-30 16:04:58 +0000346 ['component=="shared_library"', {
347 # cctest can't be built against a shared library, so we need to
348 # depend on the underlying static target in that case.
Ben Murdochc5610432016-08-08 18:44:38 +0100349 'dependencies': ['../../src/v8.gyp:v8_maybe_snapshot'],
Ben Murdoch589d6972011-11-30 16:04:58 +0000350 }, {
Ben Murdochc5610432016-08-08 18:44:38 +0100351 'dependencies': ['../../src/v8.gyp:v8'],
Ben Murdoch589d6972011-11-30 16:04:58 +0000352 }],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100353 ],
354 },
Ben Murdoch3fb3ca82011-12-02 17:19:32 +0000355 {
356 'target_name': 'resources',
357 'type': 'none',
358 'variables': {
359 'file_list': [
360 '../../tools/splaytree.js',
361 '../../tools/codemap.js',
362 '../../tools/csvparser.js',
363 '../../tools/consarray.js',
364 '../../tools/profile.js',
365 '../../tools/profile_view.js',
366 '../../tools/logreader.js',
367 'log-eq-of-logging-and-traversal.js',
368 ],
369 },
370 'actions': [
371 {
372 'action_name': 'js2c',
373 'inputs': [
374 '../../tools/js2c.py',
375 '<@(file_list)',
376 ],
377 'outputs': [
378 '<(generated_file)',
379 ],
380 'action': [
381 'python',
382 '../../tools/js2c.py',
383 '<@(_outputs)',
384 'TEST', # type
Ben Murdoch3fb3ca82011-12-02 17:19:32 +0000385 '<@(file_list)',
386 ],
387 }
388 ],
389 },
Ben Murdoch097c5b22016-05-18 11:27:45 +0100390 {
391 'target_name': 'generate-bytecode-expectations',
392 'type': 'executable',
393 'dependencies': [
Ben Murdochc5610432016-08-08 18:44:38 +0100394 '../../src/v8.gyp:v8_libplatform',
Ben Murdoch097c5b22016-05-18 11:27:45 +0100395 ],
396 'conditions': [
397 ['component=="shared_library"', {
398 # Same as cctest, we need to depend on the underlying static target.
Ben Murdochc5610432016-08-08 18:44:38 +0100399 'dependencies': ['../../src/v8.gyp:v8_maybe_snapshot'],
Ben Murdoch097c5b22016-05-18 11:27:45 +0100400 }, {
Ben Murdochc5610432016-08-08 18:44:38 +0100401 'dependencies': ['../../src/v8.gyp:v8'],
Ben Murdoch097c5b22016-05-18 11:27:45 +0100402 }],
403 ],
404 'include_dirs+': [
405 '../..',
406 ],
407 'sources': [
408 'interpreter/bytecode-expectations-printer.cc',
409 'interpreter/bytecode-expectations-printer.h',
410 'interpreter/generate-bytecode-expectations.cc',
411 ],
412 },
Ben Murdochb0fe1622011-05-05 13:52:32 +0100413 ],
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000414 'conditions': [
415 ['test_isolation_mode != "noop"', {
416 'targets': [
417 {
Ben Murdoch097c5b22016-05-18 11:27:45 +0100418 'target_name': 'cctest_exe_run',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000419 'type': 'none',
420 'dependencies': [
421 'cctest',
422 ],
423 'includes': [
Ben Murdochc5610432016-08-08 18:44:38 +0100424 '../../gypfiles/isolate.gypi',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000425 ],
426 'sources': [
Ben Murdoch097c5b22016-05-18 11:27:45 +0100427 'cctest_exe.isolate',
428 ],
429 },
430 {
431 'target_name': 'cctest_run',
432 'type': 'none',
433 'dependencies': [
434 'cctest_exe_run',
435 ],
436 'includes': [
Ben Murdochc5610432016-08-08 18:44:38 +0100437 '../../gypfiles/isolate.gypi',
Ben Murdoch097c5b22016-05-18 11:27:45 +0100438 ],
439 'sources': [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000440 'cctest.isolate',
441 ],
442 },
443 ],
444 }],
445 ],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100446}