blob: ee9995b86610eaa00b220a58fa12018e9c9df46b [file] [log] [blame]
erik.corry@gmail.combbceb572012-03-09 10:52:05 +00001# Copyright 2012 the V8 project authors. All rights reserved.
ager@chromium.org5f0c45f2010-12-17 08:51:21 +00002# 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{
ricow@chromium.org4668a2c2011-08-29 10:41:00 +000029 'includes': ['../../build/common.gypi'],
svenpanne@chromium.org84bcc552011-07-18 09:50:57 +000030 'variables': {
31 'generated_file': '<(SHARED_INTERMEDIATE_DIR)/resources.cc',
32 },
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000033 'targets': [
34 {
35 'target_name': 'cctest',
36 'type': 'executable',
37 'dependencies': [
svenpanne@chromium.org84bcc552011-07-18 09:50:57 +000038 'resources',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000039 ],
40 'include_dirs': [
41 '../../src',
42 ],
43 'sources': [
svenpanne@chromium.org84bcc552011-07-18 09:50:57 +000044 '<(generated_file)',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000045 'cctest.cc',
46 'gay-fixed.cc',
47 'gay-precision.cc',
48 'gay-shortest.cc',
49 'test-accessors.cc',
50 'test-alloc.cc',
51 'test-api.cc',
52 'test-ast.cc',
53 'test-bignum.cc',
54 'test-bignum-dtoa.cc',
55 'test-circular-queue.cc',
56 'test-compiler.cc',
57 'test-conversions.cc',
58 'test-cpu-profiler.cc',
59 'test-dataflow.cc',
svenpanne@chromium.org4efbdb12012-03-12 08:18:42 +000060 'test-date.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000061 'test-debug.cc',
ulan@chromium.org750145a2013-03-07 15:14:13 +000062 'test-declarative-accessors.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000063 'test-decls.cc',
64 'test-deoptimization.cc',
vegorov@chromium.org7943d462011-08-01 11:41:52 +000065 'test-dictionary.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000066 'test-diy-fp.cc',
67 'test-double.cc',
68 'test-dtoa.cc',
69 'test-fast-dtoa.cc',
70 'test-fixed-dtoa.cc',
71 'test-flags.cc',
72 'test-func-name-inference.cc',
mvstanton@chromium.orgc47dff52013-01-23 16:28:41 +000073 'test-global-object.cc',
danno@chromium.org2c456792011-11-11 12:00:53 +000074 'test-hashing.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000075 'test-hashmap.cc',
76 'test-heap.cc',
77 'test-heap-profiler.cc',
78 'test-list.cc',
79 'test-liveedit.cc',
80 'test-lock.cc',
lrn@chromium.org1c092762011-05-09 09:42:16 +000081 'test-lockers.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000082 'test-log.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000083 'test-mark-compact.cc',
mvstanton@chromium.orge4ac3ef2012-11-12 14:53:34 +000084 'test-object-observe.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000085 'test-parsing.cc',
yangguo@chromium.orgc03a1922013-02-19 13:55:47 +000086 'test-platform.cc',
kmillikin@chromium.org7c2628c2011-08-10 11:27:35 +000087 'test-platform-tls.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000088 'test-profile-generator.cc',
erik.corry@gmail.combbceb572012-03-09 10:52:05 +000089 'test-random.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000090 'test-regexp.cc',
91 'test-reloc-info.cc',
92 'test-serialize.cc',
93 'test-sockets.cc',
94 'test-spaces.cc',
95 'test-strings.cc',
yangguo@chromium.org4a9f6552013-03-04 14:46:33 +000096 'test-symbols.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +000097 'test-strtod.cc',
98 'test-thread-termination.cc',
99 'test-threads.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +0000100 'test-unbound-queue.cc',
101 'test-utils.cc',
erik.corry@gmail.comc3b670f2011-10-05 21:44:48 +0000102 'test-version.cc',
103 'test-weakmaps.cc'
ager@chromium.org5f0c45f2010-12-17 08:51:21 +0000104 ],
105 'conditions': [
106 ['v8_target_arch=="ia32"', {
107 'sources': [
108 'test-assembler-ia32.cc',
109 'test-disasm-ia32.cc',
110 'test-log-stack-tracer.cc'
111 ],
112 }],
113 ['v8_target_arch=="x64"', {
114 'sources': [
115 'test-assembler-x64.cc',
116 'test-macro-assembler-x64.cc',
117 'test-log-stack-tracer.cc'
118 ],
119 }],
120 ['v8_target_arch=="arm"', {
121 'sources': [
122 'test-assembler-arm.cc',
123 'test-disasm-arm.cc'
124 ],
125 }],
rossberg@chromium.org657d53b2012-07-12 11:06:03 +0000126 ['v8_target_arch=="mipsel"', {
ager@chromium.org5f0c45f2010-12-17 08:51:21 +0000127 'sources': [
128 'test-assembler-mips.cc',
karlklose@chromium.org83a47282011-05-11 11:54:09 +0000129 'test-disasm-mips.cc',
ager@chromium.org5f0c45f2010-12-17 08:51:21 +0000130 ],
131 }],
132 [ 'OS=="linux"', {
133 'sources': [
134 'test-platform-linux.cc',
135 ],
136 }],
137 [ 'OS=="mac"', {
138 'sources': [
139 'test-platform-macos.cc',
140 ],
141 }],
142 [ 'OS=="win"', {
143 'sources': [
144 'test-platform-win32.cc',
145 ],
erik.corry@gmail.comc3b670f2011-10-05 21:44:48 +0000146 'msvs_settings': {
147 'VCCLCompilerTool': {
148 # MSVS wants this for gay-{precision,shortest}.cc.
149 'AdditionalOptions': ['/bigobj'],
150 },
151 },
ager@chromium.org5f0c45f2010-12-17 08:51:21 +0000152 }],
fschneider@chromium.org1805e212011-09-05 10:49:12 +0000153 ['component=="shared_library"', {
154 # cctest can't be built against a shared library, so we need to
155 # depend on the underlying static target in that case.
156 'conditions': [
157 ['v8_use_snapshot=="true"', {
158 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'],
159 },
160 {
161 'dependencies': ['../../tools/gyp/v8.gyp:v8_nosnapshot'],
162 }],
163 ],
164 }, {
165 'dependencies': ['../../tools/gyp/v8.gyp:v8'],
166 }],
ager@chromium.org5f0c45f2010-12-17 08:51:21 +0000167 ],
168 },
svenpanne@chromium.org84bcc552011-07-18 09:50:57 +0000169 {
170 'target_name': 'resources',
171 'type': 'none',
172 'variables': {
173 'file_list': [
174 '../../tools/splaytree.js',
175 '../../tools/codemap.js',
176 '../../tools/csvparser.js',
177 '../../tools/consarray.js',
178 '../../tools/profile.js',
179 '../../tools/profile_view.js',
180 '../../tools/logreader.js',
181 'log-eq-of-logging-and-traversal.js',
182 ],
183 },
184 'actions': [
185 {
186 'action_name': 'js2c',
187 'inputs': [
188 '../../tools/js2c.py',
189 '<@(file_list)',
190 ],
191 'outputs': [
192 '<(generated_file)',
193 ],
194 'action': [
195 'python',
196 '../../tools/js2c.py',
197 '<@(_outputs)',
198 'TEST', # type
199 'off', # compression
200 '<@(file_list)',
201 ],
202 }
203 ],
204 },
ager@chromium.org5f0c45f2010-12-17 08:51:21 +0000205 ],
206}