blob: 9cbcb9cfa49b8e0b1434ea39fc5e10187602ffe1 [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 Murdoch3fb3ca82011-12-02 17:19:32 +000029 'variables': {
30 'generated_file': '<(SHARED_INTERMEDIATE_DIR)/resources.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010031 },
Ben Murdoch3fb3ca82011-12-02 17:19:32 +000032 'includes': [ '../../build/v8-features.gypi' ],
Ben Murdochb0fe1622011-05-05 13:52:32 +010033 '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',
64 'test-diy-fp.cc',
65 'test-double.cc',
66 'test-dtoa.cc',
67 'test-fast-dtoa.cc',
68 'test-fixed-dtoa.cc',
69 'test-flags.cc',
70 'test-func-name-inference.cc',
71 'test-hashmap.cc',
72 'test-heap.cc',
73 'test-heap-profiler.cc',
74 'test-list.cc',
75 'test-liveedit.cc',
76 'test-lock.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +000077 'test-lockers.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010078 'test-log.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010079 'test-mark-compact.cc',
80 'test-parsing.cc',
81 'test-profile-generator.cc',
82 'test-regexp.cc',
83 'test-reloc-info.cc',
84 'test-serialize.cc',
85 'test-sockets.cc',
86 'test-spaces.cc',
87 'test-strings.cc',
88 'test-strtod.cc',
89 'test-thread-termination.cc',
90 'test-threads.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +010091 'test-unbound-queue.cc',
92 'test-utils.cc',
93 'test-version.cc'
94 ],
95 'conditions': [
96 ['v8_target_arch=="ia32"', {
97 'sources': [
98 'test-assembler-ia32.cc',
99 'test-disasm-ia32.cc',
100 'test-log-stack-tracer.cc'
101 ],
102 }],
103 ['v8_target_arch=="x64"', {
104 'sources': [
105 'test-assembler-x64.cc',
106 'test-macro-assembler-x64.cc',
107 'test-log-stack-tracer.cc'
108 ],
109 }],
110 ['v8_target_arch=="arm"', {
111 'sources': [
112 'test-assembler-arm.cc',
113 'test-disasm-arm.cc'
114 ],
115 }],
116 ['v8_target_arch=="mips"', {
117 'sources': [
118 'test-assembler-mips.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000119 'test-disasm-mips.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100120 ],
121 }],
122 [ 'OS=="linux"', {
123 'sources': [
124 'test-platform-linux.cc',
125 ],
126 }],
127 [ 'OS=="mac"', {
128 'sources': [
129 'test-platform-macos.cc',
130 ],
131 }],
132 [ 'OS=="win"', {
133 'sources': [
134 'test-platform-win32.cc',
135 ],
136 }],
137 ],
138 },
Ben Murdoch3fb3ca82011-12-02 17:19:32 +0000139 {
140 'target_name': 'resources',
141 'type': 'none',
142 'variables': {
143 'file_list': [
144 '../../tools/splaytree.js',
145 '../../tools/codemap.js',
146 '../../tools/csvparser.js',
147 '../../tools/consarray.js',
148 '../../tools/profile.js',
149 '../../tools/profile_view.js',
150 '../../tools/logreader.js',
151 'log-eq-of-logging-and-traversal.js',
152 ],
153 },
154 'actions': [
155 {
156 'action_name': 'js2c',
157 'inputs': [
158 '../../tools/js2c.py',
159 '<@(file_list)',
160 ],
161 'outputs': [
162 '<(generated_file)',
163 ],
164 'action': [
165 'python',
166 '../../tools/js2c.py',
167 '<@(_outputs)',
168 'TEST', # type
169 'off', # compression
170 '<@(file_list)',
171 ],
172 }
173 ],
174 },
Ben Murdochb0fe1622011-05-05 13:52:32 +0100175 ],
176}