blob: f13f91e0e6c3c4450a862aead81d4dbfadbcb7c6 [file] [log] [blame]
Ben Murdochb0fe1622011-05-05 13:52:32 +01001# Copyright 2010 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
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{
29 'target_defaults': {
30 'conditions': [
31 ['OS!="mac"', {
32 # TODO(sgjesse): This is currently copied from v8.gyp, should probably
33 # be refactored.
34 'conditions': [
35 ['v8_target_arch=="arm"', {
36 'defines': [
37 'V8_TARGET_ARCH_ARM',
38 ],
39 }],
40 ['v8_target_arch=="ia32"', {
41 'defines': [
42 'V8_TARGET_ARCH_IA32',
43 ],
44 }],
Ben Murdoch257744e2011-11-30 15:57:28 +000045 ['v8_target_arch=="mips"', {
46 'defines': [
47 'V8_TARGET_ARCH_MIPS',
48 ],
49 }],
Ben Murdochb0fe1622011-05-05 13:52:32 +010050 ['v8_target_arch=="x64"', {
51 'defines': [
52 'V8_TARGET_ARCH_X64',
53 ],
54 }],
55 ],
56 }],
57 ],
58 },
59 'targets': [
60 {
61 'target_name': 'cctest',
62 'type': 'executable',
63 'dependencies': [
64 '../../tools/gyp/v8.gyp:v8',
65 ],
66 'include_dirs': [
67 '../../src',
68 ],
69 'sources': [
70 'cctest.cc',
71 'gay-fixed.cc',
72 'gay-precision.cc',
73 'gay-shortest.cc',
74 'test-accessors.cc',
75 'test-alloc.cc',
76 'test-api.cc',
77 'test-ast.cc',
78 'test-bignum.cc',
79 'test-bignum-dtoa.cc',
80 'test-circular-queue.cc',
81 'test-compiler.cc',
82 'test-conversions.cc',
83 'test-cpu-profiler.cc',
84 'test-dataflow.cc',
85 'test-debug.cc',
86 'test-decls.cc',
87 'test-deoptimization.cc',
88 'test-diy-fp.cc',
89 'test-double.cc',
90 'test-dtoa.cc',
91 'test-fast-dtoa.cc',
92 'test-fixed-dtoa.cc',
93 'test-flags.cc',
94 'test-func-name-inference.cc',
95 'test-hashmap.cc',
96 'test-heap.cc',
97 'test-heap-profiler.cc',
98 'test-list.cc',
99 'test-liveedit.cc',
100 'test-lock.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000101 'test-lockers.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100102 'test-log.cc',
103 'test-log-utils.cc',
104 'test-mark-compact.cc',
105 'test-parsing.cc',
106 'test-profile-generator.cc',
107 'test-regexp.cc',
108 'test-reloc-info.cc',
109 'test-serialize.cc',
110 'test-sockets.cc',
111 'test-spaces.cc',
112 'test-strings.cc',
113 'test-strtod.cc',
114 'test-thread-termination.cc',
115 'test-threads.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100116 'test-unbound-queue.cc',
117 'test-utils.cc',
118 'test-version.cc'
119 ],
120 'conditions': [
121 ['v8_target_arch=="ia32"', {
122 'sources': [
123 'test-assembler-ia32.cc',
124 'test-disasm-ia32.cc',
125 'test-log-stack-tracer.cc'
126 ],
127 }],
128 ['v8_target_arch=="x64"', {
129 'sources': [
130 'test-assembler-x64.cc',
131 'test-macro-assembler-x64.cc',
132 'test-log-stack-tracer.cc'
133 ],
134 }],
135 ['v8_target_arch=="arm"', {
136 'sources': [
137 'test-assembler-arm.cc',
138 'test-disasm-arm.cc'
139 ],
140 }],
141 ['v8_target_arch=="mips"', {
142 'sources': [
143 'test-assembler-mips.cc',
Ben Murdoch257744e2011-11-30 15:57:28 +0000144 'test-disasm-mips.cc',
Ben Murdochb0fe1622011-05-05 13:52:32 +0100145 ],
146 }],
147 [ 'OS=="linux"', {
148 'sources': [
149 'test-platform-linux.cc',
150 ],
151 }],
152 [ 'OS=="mac"', {
153 'sources': [
154 'test-platform-macos.cc',
155 ],
156 }],
157 [ 'OS=="win"', {
158 'sources': [
159 'test-platform-win32.cc',
160 ],
161 }],
162 ],
163 },
164 ],
165}