1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are
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.
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.
31 'generated_file': '<(SHARED_INTERMEDIATE_DIR)/resources.cc',
33 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
36 'target_name': 'cctest',
40 '../../tools/gyp/v8.gyp:v8_libplatform',
45 'sources': [ ### gcmole(all) ###
47 'compiler/c-signature.h',
48 'compiler/codegen-tester.cc',
49 'compiler/codegen-tester.h',
50 'compiler/function-tester.h',
51 'compiler/graph-builder-tester.h',
52 'compiler/simplified-graph-builder.cc',
53 'compiler/simplified-graph-builder.h',
54 'compiler/test-basic-block-profiler.cc',
55 'compiler/test-branch-combine.cc',
56 'compiler/test-changes-lowering.cc',
57 'compiler/test-gap-resolver.cc',
58 'compiler/test-graph-visualizer.cc',
59 'compiler/test-instruction.cc',
60 'compiler/test-js-context-specialization.cc',
61 'compiler/test-js-constant-cache.cc',
62 'compiler/test-js-typed-lowering.cc',
63 'compiler/test-jump-threading.cc',
64 'compiler/test-linkage.cc',
65 'compiler/test-loop-assignment-analysis.cc',
66 'compiler/test-loop-analysis.cc',
67 'compiler/test-machine-operator-reducer.cc',
68 'compiler/test-node.cc',
69 'compiler/test-operator.cc',
70 'compiler/test-osr.cc',
71 'compiler/test-pipeline.cc',
72 'compiler/test-representation-change.cc',
73 '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',
79 'compiler/test-run-jsops.cc',
80 'compiler/test-run-machops.cc',
81 'compiler/test-run-properties.cc',
82 'compiler/test-run-stackcheck.cc',
83 'compiler/test-run-stubs.cc',
84 'compiler/test-run-variables.cc',
85 'compiler/test-simplified-lowering.cc',
91 'profiler-extension.cc',
96 'test-api-interceptors.cc',
101 'test-bignum-dtoa.cc',
102 'test-bit-vector.cc',
103 'test-circular-queue.cc',
105 'test-constantpool.cc',
106 'test-conversions.cc',
107 'test-cpu-profiler.cc',
111 'test-deoptimization.cc',
112 'test-dictionary.cc',
117 'test-feedback-vector.cc',
118 'test-fixed-dtoa.cc',
120 'test-func-name-inference.cc',
122 'test-global-handles.cc',
123 'test-global-object.cc',
127 'test-heap-profiler.cc',
128 'test-hydrogen-types.cc',
129 'test-identity-map.cc',
134 'test-microtask-delivery.cc',
135 'test-mark-compact.cc',
137 'test-migrations.cc',
138 'test-object-observe.cc',
141 'test-profile-generator.cc',
142 'test-random-number-generator.cc',
144 'test-reloc-info.cc',
145 'test-representation.cc',
146 'test-sampler-api.cc',
153 'test-thread-termination.cc',
155 'test-transitions.cc',
156 'test-typedarrays.cc',
158 'test-unbound-queue.cc',
159 'test-unboxed-doubles.cc',
161 'test-unscopables-hidden-prototype.cc',
166 'trace-extension.cc',
167 '../../src/startup-data-util.h',
168 '../../src/startup-data-util.cc'
171 ['v8_target_arch=="ia32"', {
172 'sources': [ ### gcmole(arch:ia32) ###
173 'test-assembler-ia32.cc',
174 'test-code-stubs.cc',
175 'test-code-stubs-ia32.cc',
176 'test-disasm-ia32.cc',
177 'test-macro-assembler-ia32.cc',
178 'test-log-stack-tracer.cc'
181 ['v8_target_arch=="x64"', {
182 'sources': [ ### gcmole(arch:x64) ###
183 'test-assembler-x64.cc',
184 'test-code-stubs.cc',
185 'test-code-stubs-x64.cc',
186 'test-disasm-x64.cc',
187 'test-macro-assembler-x64.cc',
188 'test-log-stack-tracer.cc'
191 ['v8_target_arch=="arm"', {
192 'sources': [ ### gcmole(arch:arm) ###
193 'test-assembler-arm.cc',
194 'test-code-stubs.cc',
195 'test-code-stubs-arm.cc',
196 'test-disasm-arm.cc',
197 'test-macro-assembler-arm.cc'
200 ['v8_target_arch=="arm64"', {
201 'sources': [ ### gcmole(arch:arm64) ###
202 'test-utils-arm64.cc',
203 'test-assembler-arm64.cc',
204 'test-code-stubs.cc',
205 'test-code-stubs-arm64.cc',
206 'test-disasm-arm64.cc',
207 'test-fuzz-arm64.cc',
208 'test-javascript-arm64.cc',
209 'test-js-arm64-variables.cc'
212 ['v8_target_arch=="ppc"', {
213 'sources': [ ### gcmole(arch:ppc) ###
214 'test-assembler-ppc.cc',
215 'test-code-stubs.cc',
219 ['v8_target_arch=="ppc64"', {
220 'sources': [ ### gcmole(arch:ppc64) ###
221 'test-assembler-ppc.cc',
222 'test-code-stubs.cc',
226 ['v8_target_arch=="mipsel"', {
227 'sources': [ ### gcmole(arch:mipsel) ###
228 'test-assembler-mips.cc',
229 'test-code-stubs.cc',
230 'test-code-stubs-mips.cc',
231 'test-disasm-mips.cc',
232 'test-macro-assembler-mips.cc'
235 ['v8_target_arch=="mips64el"', {
237 'test-assembler-mips64.cc',
238 'test-code-stubs.cc',
239 'test-code-stubs-mips64.cc',
240 'test-disasm-mips64.cc',
241 'test-macro-assembler-mips64.cc'
244 ['v8_target_arch=="x87"', {
245 'sources': [ ### gcmole(arch:x87) ###
246 'test-assembler-x87.cc',
247 'test-code-stubs.cc',
248 'test-code-stubs-x87.cc',
249 'test-disasm-x87.cc',
250 'test-macro-assembler-x87.cc',
251 'test-log-stack-tracer.cc'
254 [ 'OS=="linux" or OS=="qnx"', {
256 'test-platform-linux.cc',
261 'test-platform-win32.cc',
264 'VCCLCompilerTool': {
265 # MSVS wants this for gay-{precision,shortest}.cc.
266 'AdditionalOptions': ['/bigobj'],
271 'ldflags': [ '-Wl,-bbigtoc' ],
273 ['component=="shared_library"', {
274 # cctest can't be built against a shared library, so we need to
275 # depend on the underlying static target in that case.
276 'dependencies': ['../../tools/gyp/v8.gyp:v8_maybe_snapshot'],
278 'dependencies': ['../../tools/gyp/v8.gyp:v8'],
283 'target_name': 'resources',
287 '../../tools/splaytree.js',
288 '../../tools/codemap.js',
289 '../../tools/csvparser.js',
290 '../../tools/consarray.js',
291 '../../tools/profile.js',
292 '../../tools/profile_view.js',
293 '../../tools/logreader.js',
294 'log-eq-of-logging-and-traversal.js',
299 'action_name': 'js2c',
301 '../../tools/js2c.py',
309 '../../tools/js2c.py',