blob: c0b531636c1205ba703aacbb3dc4e8a4963515a1 [file] [log] [blame]
Ben Murdoch3fb3ca82011-12-02 17:19:32 +00001# Copyright 2011 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 Murdoch69a99ed2011-11-30 16:03:39 +000029 'includes': ['../../build/common.gypi'],
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000030 'variables': {
31 'generated_file': '<(SHARED_INTERMEDIATE_DIR)/resources.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010032 },
33 'targets': [
34 {
35 'target_name': 'cctest',
36 'type': 'executable',
37 'dependencies': [
38 '../../tools/gyp/v8.gyp:v8',
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000039 'resources',
Ben Murdochb0fe1622011-05-05 13:52:32 +010040 ],
41 'include_dirs': [
42 '../../src',
43 ],
44 'sources': [
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000045 '<(generated_file)',
Ben Murdochb0fe1622011-05-05 13:52:32 +010046 'cctest.cc',
47 'gay-fixed.cc',
48 'gay-precision.cc',
49 'gay-shortest.cc',
50 'test-accessors.cc',
51 'test-alloc.cc',
52 'test-api.cc',
53 'test-ast.cc',
54 'test-bignum.cc',
55 'test-bignum-dtoa.cc',
56 'test-circular-queue.cc',
57 'test-compiler.cc',
58 'test-conversions.cc',
59 'test-cpu-profiler.cc',
60 'test-dataflow.cc',
61 'test-debug.cc',
62 'test-decls.cc',
63 'test-deoptimization.cc',
Ben Murdoch69a99ed2011-11-30 16:03:39 +000064 'test-dictionary.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010065 'test-diy-fp.cc',
66 'test-double.cc',
67 'test-dtoa.cc',
68 'test-fast-dtoa.cc',
69 'test-fixed-dtoa.cc',
70 'test-flags.cc',
71 'test-func-name-inference.cc',
72 'test-hashmap.cc',
73 'test-heap.cc',
74 'test-heap-profiler.cc',
75 'test-list.cc',
76 'test-liveedit.cc',
77 'test-lock.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +000078 'test-lockers.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010079 'test-log.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010080 'test-mark-compact.cc',
81 'test-parsing.cc',
Ben Murdoch69a99ed2011-11-30 16:03:39 +000082 'test-platform-tls.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010083 'test-profile-generator.cc',
84 'test-regexp.cc',
85 'test-reloc-info.cc',
86 'test-serialize.cc',
87 'test-sockets.cc',
88 'test-spaces.cc',
89 'test-strings.cc',
90 'test-strtod.cc',
91 'test-thread-termination.cc',
92 'test-threads.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010093 'test-unbound-queue.cc',
94 'test-utils.cc',
95 'test-version.cc'
96 ],
97 'conditions': [
98 ['v8_target_arch=="ia32"', {
99 'sources': [
100 'test-assembler-ia32.cc',
101 'test-disasm-ia32.cc',
102 'test-log-stack-tracer.cc'
103 ],
104 }],
105 ['v8_target_arch=="x64"', {
106 'sources': [
107 'test-assembler-x64.cc',
108 'test-macro-assembler-x64.cc',
109 'test-log-stack-tracer.cc'
110 ],
111 }],
112 ['v8_target_arch=="arm"', {
113 'sources': [
114 'test-assembler-arm.cc',
115 'test-disasm-arm.cc'
116 ],
117 }],
118 ['v8_target_arch=="mips"', {
119 'sources': [
120 'test-assembler-mips.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000121 'test-disasm-mips.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100122 ],
123 }],
124 [ 'OS=="linux"', {
125 'sources': [
126 'test-platform-linux.cc',
127 ],
128 }],
129 [ 'OS=="mac"', {
130 'sources': [
131 'test-platform-macos.cc',
132 ],
133 }],
134 [ 'OS=="win"', {
135 'sources': [
136 'test-platform-win32.cc',
137 ],
138 }],
139 ],
140 },
Ben Murdoch3fb3ca82011-12-02 17:19:32 +0000141 {
142 'target_name': 'resources',
143 'type': 'none',
144 'variables': {
145 'file_list': [
146 '../../tools/splaytree.js',
147 '../../tools/codemap.js',
148 '../../tools/csvparser.js',
149 '../../tools/consarray.js',
150 '../../tools/profile.js',
151 '../../tools/profile_view.js',
152 '../../tools/logreader.js',
153 'log-eq-of-logging-and-traversal.js',
154 ],
155 },
156 'actions': [
157 {
158 'action_name': 'js2c',
159 'inputs': [
160 '../../tools/js2c.py',
161 '<@(file_list)',
162 ],
163 'outputs': [
164 '<(generated_file)',
165 ],
166 'action': [
167 'python',
168 '../../tools/js2c.py',
169 '<@(_outputs)',
170 'TEST', # type
171 'off', # compression
172 '<@(file_list)',
173 ],
174 }
175 ],
176 },
Ben Murdochb0fe1622011-05-05 13:52:32 +0100177 ],
178}