blob: aa2b355831ad90139dd09a6b5c1355310a299246 [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 }],
45 ['v8_target_arch=="x64"', {
46 'defines': [
47 'V8_TARGET_ARCH_X64',
48 ],
49 }],
50 ],
51 }],
52 ],
53 },
54 'targets': [
55 {
56 'target_name': 'cctest',
57 'type': 'executable',
58 'dependencies': [
59 '../../tools/gyp/v8.gyp:v8',
60 ],
61 'include_dirs': [
62 '../../src',
63 ],
64 'sources': [
65 'cctest.cc',
66 'gay-fixed.cc',
67 'gay-precision.cc',
68 'gay-shortest.cc',
69 'test-accessors.cc',
70 'test-alloc.cc',
71 'test-api.cc',
72 'test-ast.cc',
73 'test-bignum.cc',
74 'test-bignum-dtoa.cc',
75 'test-circular-queue.cc',
76 'test-compiler.cc',
77 'test-conversions.cc',
78 'test-cpu-profiler.cc',
79 'test-dataflow.cc',
80 'test-debug.cc',
81 'test-decls.cc',
82 'test-deoptimization.cc',
83 'test-diy-fp.cc',
84 'test-double.cc',
85 'test-dtoa.cc',
86 'test-fast-dtoa.cc',
87 'test-fixed-dtoa.cc',
88 'test-flags.cc',
89 'test-func-name-inference.cc',
90 'test-hashmap.cc',
91 'test-heap.cc',
92 'test-heap-profiler.cc',
93 'test-list.cc',
94 'test-liveedit.cc',
95 'test-lock.cc',
96 'test-log.cc',
97 'test-log-utils.cc',
98 'test-mark-compact.cc',
99 'test-parsing.cc',
100 'test-profile-generator.cc',
101 'test-regexp.cc',
102 'test-reloc-info.cc',
103 'test-serialize.cc',
104 'test-sockets.cc',
105 'test-spaces.cc',
106 'test-strings.cc',
107 'test-strtod.cc',
108 'test-thread-termination.cc',
109 'test-threads.cc',
110 'test-type-info.cc',
111 'test-unbound-queue.cc',
112 'test-utils.cc',
113 'test-version.cc'
114 ],
115 'conditions': [
116 ['v8_target_arch=="ia32"', {
117 'sources': [
118 'test-assembler-ia32.cc',
119 'test-disasm-ia32.cc',
120 'test-log-stack-tracer.cc'
121 ],
122 }],
123 ['v8_target_arch=="x64"', {
124 'sources': [
125 'test-assembler-x64.cc',
126 'test-macro-assembler-x64.cc',
127 'test-log-stack-tracer.cc'
128 ],
129 }],
130 ['v8_target_arch=="arm"', {
131 'sources': [
132 'test-assembler-arm.cc',
133 'test-disasm-arm.cc'
134 ],
135 }],
136 ['v8_target_arch=="mips"', {
137 'sources': [
138 'test-assembler-mips.cc',
139 'test-mips.cc',
140 ],
141 }],
142 [ 'OS=="linux"', {
143 'sources': [
144 'test-platform-linux.cc',
145 ],
146 }],
147 [ 'OS=="mac"', {
148 'sources': [
149 'test-platform-macos.cc',
150 ],
151 }],
152 [ 'OS=="win"', {
153 'sources': [
154 'test-platform-win32.cc',
155 ],
156 }],
157 ],
158 },
159 ],
160}