blob: 2e00e88b5b77874bd3af9a405c6098f0df9425f4 [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 Murdochb8a8cc12014-11-26 15:28:44 +000033 'includes': ['../../build/toolchain.gypi', '../../build/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 Murdochb8a8cc12014-11-26 15:28:44 +000040 '../../tools/gyp/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',
54 'compiler/test-changes-lowering.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000055 'compiler/test-code-stub-assembler.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000056 'compiler/test-gap-resolver.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040057 'compiler/test-graph-visualizer.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000058 'compiler/test-instruction.cc',
59 'compiler/test-js-context-specialization.cc',
60 'compiler/test-js-constant-cache.cc',
61 'compiler/test-js-typed-lowering.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040062 'compiler/test-jump-threading.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000063 'compiler/test-linkage.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040064 'compiler/test-loop-assignment-analysis.cc',
65 'compiler/test-loop-analysis.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000066 'compiler/test-machine-operator-reducer.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000067 'compiler/test-multiple-return.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000068 'compiler/test-node.cc',
69 'compiler/test-operator.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000070 'compiler/test-osr.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000071 'compiler/test-pipeline.cc',
72 'compiler/test-representation-change.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000073 'compiler/test-run-bytecode-graph-builder.cc',
Ben Murdochda12d292016-06-02 14:46:10 +010074 'compiler/test-run-calls-to-external-references.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000075 'compiler/test-run-deopt.cc',
76 'compiler/test-run-inlining.cc',
77 'compiler/test-run-intrinsics.cc',
78 'compiler/test-run-jsbranches.cc',
79 'compiler/test-run-jscalls.cc',
80 'compiler/test-run-jsexceptions.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000081 'compiler/test-run-jsobjects.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000082 'compiler/test-run-jsops.cc',
83 'compiler/test-run-machops.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000084 'compiler/test-run-native-calls.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -040085 'compiler/test-run-stackcheck.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000086 'compiler/test-run-stubs.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +000087 'compiler/test-run-variables.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-microtask-delivery.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000159 'test-mementos.cc',
160 'test-object-observe.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100161 'test-parsing.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000162 'test-platform.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100163 'test-profile-generator.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000164 'test-random-number-generator.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000165 'test-receiver-check-hidden-prototype.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100166 'test-regexp.cc',
167 'test-reloc-info.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000168 'test-representation.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400169 'test-sampler-api.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100170 'test-serialize.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000171 'test-simd.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100172 'test-strings.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000173 'test-symbols.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100174 'test-strtod.cc',
175 'test-thread-termination.cc',
176 'test-threads.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000177 'test-trace-event.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400178 'test-transitions.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000179 'test-typedarrays.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000180 'test-types.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000181 'test-typing-reset.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100182 'test-unbound-queue.cc',
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400183 'test-unboxed-doubles.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000184 'test-unique.cc',
185 'test-unscopables-hidden-prototype.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100186 'test-utils.cc',
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100187 'test-version.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000188 'test-weakmaps.cc',
189 'test-weaksets.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000190 'trace-extension.cc',
191 'wasm/test-run-wasm.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100192 'wasm/test-run-wasm-64.cc',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000193 'wasm/test-run-wasm-js.cc',
194 'wasm/test-run-wasm-module.cc',
195 'wasm/test-signatures.h',
196 'wasm/wasm-run-utils.h',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100197 ],
198 'conditions': [
199 ['v8_target_arch=="ia32"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000200 'sources': [ ### gcmole(arch:ia32) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100201 'test-assembler-ia32.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000202 'test-code-stubs.cc',
203 'test-code-stubs-ia32.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100204 'test-disasm-ia32.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000205 'test-macro-assembler-ia32.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100206 'test-log-stack-tracer.cc',
207 'test-run-wasm-relocation-ia32.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100208 ],
209 }],
210 ['v8_target_arch=="x64"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000211 'sources': [ ### gcmole(arch:x64) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100212 'test-assembler-x64.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000213 'test-code-stubs.cc',
214 'test-code-stubs-x64.cc',
215 'test-disasm-x64.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100216 'test-macro-assembler-x64.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100217 'test-log-stack-tracer.cc',
218 'test-run-wasm-relocation-x64.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100219 ],
220 }],
221 ['v8_target_arch=="arm"', {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000222 'sources': [ ### gcmole(arch:arm) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100223 'test-assembler-arm.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000224 'test-code-stubs.cc',
225 'test-code-stubs-arm.cc',
226 'test-disasm-arm.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100227 'test-macro-assembler-arm.cc',
228 'test-run-wasm-relocation-arm.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100229 ],
230 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000231 ['v8_target_arch=="arm64"', {
232 'sources': [ ### gcmole(arch:arm64) ###
233 'test-utils-arm64.cc',
234 'test-assembler-arm64.cc',
235 'test-code-stubs.cc',
236 'test-code-stubs-arm64.cc',
237 'test-disasm-arm64.cc',
238 'test-fuzz-arm64.cc',
239 'test-javascript-arm64.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100240 'test-js-arm64-variables.cc',
241 'test-run-wasm-relocation-arm64.cc'
242 ],
243 }],
244 ['v8_target_arch=="s390"', {
245 'sources': [ ### gcmole(arch:s390) ###
246 'test-assembler-s390.cc',
247 'test-code-stubs.cc',
248 'test-disasm-s390.cc'
249 ],
250 }],
251 ['v8_target_arch=="s390x"', {
252 'sources': [ ### gcmole(arch:s390x) ###
253 'test-assembler-s390.cc',
254 'test-code-stubs.cc',
255 'test-disasm-s390.cc'
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000256 ],
257 }],
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000258 ['v8_target_arch=="ppc"', {
259 'sources': [ ### gcmole(arch:ppc) ###
260 'test-assembler-ppc.cc',
261 'test-code-stubs.cc',
262 'test-disasm-ppc.cc'
263 ],
264 }],
265 ['v8_target_arch=="ppc64"', {
266 'sources': [ ### gcmole(arch:ppc64) ###
267 'test-assembler-ppc.cc',
268 'test-code-stubs.cc',
269 'test-disasm-ppc.cc'
270 ],
271 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000272 ['v8_target_arch=="mipsel"', {
273 'sources': [ ### gcmole(arch:mipsel) ###
Ben Murdochb0fe1622011-05-05 13:52:32 +0100274 'test-assembler-mips.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000275 'test-code-stubs.cc',
276 'test-code-stubs-mips.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000277 'test-disasm-mips.cc',
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000278 'test-macro-assembler-mips.cc'
Ben Murdochb0fe1622011-05-05 13:52:32 +0100279 ],
280 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000281 ['v8_target_arch=="mips64el"', {
282 'sources': [
283 'test-assembler-mips64.cc',
284 'test-code-stubs.cc',
285 'test-code-stubs-mips64.cc',
286 'test-disasm-mips64.cc',
287 'test-macro-assembler-mips64.cc'
288 ],
289 }],
290 ['v8_target_arch=="x87"', {
291 'sources': [ ### gcmole(arch:x87) ###
292 'test-assembler-x87.cc',
293 'test-code-stubs.cc',
294 'test-code-stubs-x87.cc',
295 'test-disasm-x87.cc',
296 'test-macro-assembler-x87.cc',
Ben Murdochda12d292016-06-02 14:46:10 +0100297 'test-log-stack-tracer.cc',
298 'test-run-wasm-relocation-x87.cc'
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000299 ],
300 }],
301 [ 'OS=="linux" or OS=="qnx"', {
Ben Murdochb0fe1622011-05-05 13:52:32 +0100302 'sources': [
303 'test-platform-linux.cc',
304 ],
305 }],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100306 [ 'OS=="win"', {
307 'sources': [
308 'test-platform-win32.cc',
309 ],
Ben Murdoch3ef787d2012-04-12 10:51:47 +0100310 'msvs_settings': {
311 'VCCLCompilerTool': {
312 # MSVS wants this for gay-{precision,shortest}.cc.
313 'AdditionalOptions': ['/bigobj'],
314 },
315 },
Ben Murdochb0fe1622011-05-05 13:52:32 +0100316 }],
Ben Murdochda12d292016-06-02 14:46:10 +0100317 ['v8_target_arch=="ppc" or v8_target_arch=="ppc64" \
318 or v8_target_arch=="arm" or v8_target_arch=="arm64" \
319 or v8_target_arch=="s390" or v8_target_arch=="s390x"', {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000320 # disable fmadd/fmsub so that expected results match generated code in
321 # RunFloat64MulAndFloat64Add1 and friends.
322 'cflags': ['-ffp-contract=off'],
323 }],
324 ['OS=="aix"', {
325 'ldflags': [ '-Wl,-bbigtoc' ],
326 }],
Ben Murdoch589d6972011-11-30 16:04:58 +0000327 ['component=="shared_library"', {
328 # cctest can't be built against a shared library, so we need to
329 # depend on the underlying static target in that case.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000330 'dependencies': ['../../tools/gyp/v8.gyp:v8_maybe_snapshot'],
Ben Murdoch589d6972011-11-30 16:04:58 +0000331 }, {
332 'dependencies': ['../../tools/gyp/v8.gyp:v8'],
333 }],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100334 ],
335 },
Ben Murdoch3fb3ca82011-12-02 17:19:32 +0000336 {
337 'target_name': 'resources',
338 'type': 'none',
339 'variables': {
340 'file_list': [
341 '../../tools/splaytree.js',
342 '../../tools/codemap.js',
343 '../../tools/csvparser.js',
344 '../../tools/consarray.js',
345 '../../tools/profile.js',
346 '../../tools/profile_view.js',
347 '../../tools/logreader.js',
348 'log-eq-of-logging-and-traversal.js',
349 ],
350 },
351 'actions': [
352 {
353 'action_name': 'js2c',
354 'inputs': [
355 '../../tools/js2c.py',
356 '<@(file_list)',
357 ],
358 'outputs': [
359 '<(generated_file)',
360 ],
361 'action': [
362 'python',
363 '../../tools/js2c.py',
364 '<@(_outputs)',
365 'TEST', # type
Ben Murdoch3fb3ca82011-12-02 17:19:32 +0000366 '<@(file_list)',
367 ],
368 }
369 ],
370 },
Ben Murdoch097c5b22016-05-18 11:27:45 +0100371 {
372 'target_name': 'generate-bytecode-expectations',
373 'type': 'executable',
374 'dependencies': [
375 '../../tools/gyp/v8.gyp:v8_libplatform',
376 ],
377 'conditions': [
378 ['component=="shared_library"', {
379 # Same as cctest, we need to depend on the underlying static target.
380 'dependencies': ['../../tools/gyp/v8.gyp:v8_maybe_snapshot'],
381 }, {
382 'dependencies': ['../../tools/gyp/v8.gyp:v8'],
383 }],
384 ],
385 'include_dirs+': [
386 '../..',
387 ],
388 'sources': [
389 'interpreter/bytecode-expectations-printer.cc',
390 'interpreter/bytecode-expectations-printer.h',
391 'interpreter/generate-bytecode-expectations.cc',
392 ],
393 },
Ben Murdochb0fe1622011-05-05 13:52:32 +0100394 ],
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000395 'conditions': [
396 ['test_isolation_mode != "noop"', {
397 'targets': [
398 {
Ben Murdoch097c5b22016-05-18 11:27:45 +0100399 'target_name': 'cctest_exe_run',
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000400 'type': 'none',
401 'dependencies': [
402 'cctest',
403 ],
404 'includes': [
405 '../../build/isolate.gypi',
406 ],
407 'sources': [
Ben Murdoch097c5b22016-05-18 11:27:45 +0100408 'cctest_exe.isolate',
409 ],
410 },
411 {
412 'target_name': 'cctest_run',
413 'type': 'none',
414 'dependencies': [
415 'cctest_exe_run',
416 ],
417 'includes': [
418 '../../build/isolate.gypi',
419 ],
420 'sources': [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000421 'cctest.isolate',
422 ],
423 },
424 ],
425 }],
426 ],
Ben Murdochb0fe1622011-05-05 13:52:32 +0100427}