OLD | NEW |
1 # Copyright 2009 the V8 project authors. All rights reserved. | 1 # Copyright 2009 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
11 # with the distribution. | 11 # with the distribution. |
12 # * Neither the name of Google Inc. nor the names of its | 12 # * Neither the name of Google Inc. nor the names of its |
13 # contributors may be used to endorse or promote products derived | 13 # contributors may be used to endorse or promote products derived |
14 # from this software without specific prior written permission. | 14 # from this software without specific prior written permission. |
15 # | 15 # |
16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 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. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 { | 28 { |
29 'variables': { | 29 'variables': { |
| 30 'use_system_v8%': 0, |
30 'msvs_use_common_release': 0, | 31 'msvs_use_common_release': 0, |
31 'gcc_version%': 'unknown', | 32 'gcc_version%': 'unknown', |
32 'v8_target_arch%': '<(target_arch)', | 33 'v8_target_arch%': '<(target_arch)', |
33 'v8_use_snapshot%': 'true', | 34 'v8_use_snapshot%': 'true', |
34 }, | 35 }, |
35 'target_defaults': { | 36 'conditions': [ |
36 'defines': [ | 37 ['use_system_v8==0', { |
37 'ENABLE_LOGGING_AND_PROFILING', | 38 'target_defaults': { |
38 'ENABLE_DEBUGGER_SUPPORT', | 39 'defines': [ |
39 'ENABLE_VMSTATE_TRACKING', | 40 'ENABLE_LOGGING_AND_PROFILING', |
40 ], | 41 'ENABLE_DEBUGGER_SUPPORT', |
41 'conditions': [ | 42 'ENABLE_VMSTATE_TRACKING', |
42 ['OS!="mac"', { | 43 ], |
43 # TODO(mark): The OS!="mac" conditional is temporary. It can be | |
44 # removed once the Mac Chromium build stops setting target_arch to | |
45 # ia32 and instead sets it to mac. Other checks in this file for | |
46 # OS=="mac" can be removed at that time as well. This can be cleaned | |
47 # up once http://crbug.com/44205 is fixed. | |
48 'conditions': [ | 44 'conditions': [ |
49 ['v8_target_arch=="arm"', { | 45 ['OS!="mac"', { |
50 'defines': [ | 46 # TODO(mark): The OS!="mac" conditional is temporary. It can be |
51 'V8_TARGET_ARCH_ARM', | 47 # removed once the Mac Chromium build stops setting target_arch to |
52 ], | 48 # ia32 and instead sets it to mac. Other checks in this file for |
53 }], | 49 # OS=="mac" can be removed at that time as well. This can be cleaned |
54 ['v8_target_arch=="ia32"', { | 50 # up once http://crbug.com/44205 is fixed. |
55 'defines': [ | 51 'conditions': [ |
56 'V8_TARGET_ARCH_IA32', | 52 ['v8_target_arch=="arm"', { |
57 ], | 53 'defines': [ |
58 }], | 54 'V8_TARGET_ARCH_ARM', |
59 ['v8_target_arch=="x64"', { | 55 ], |
60 'defines': [ | 56 }], |
61 'V8_TARGET_ARCH_X64', | 57 ['v8_target_arch=="ia32"', { |
| 58 'defines': [ |
| 59 'V8_TARGET_ARCH_IA32', |
| 60 ], |
| 61 }], |
| 62 ['v8_target_arch=="x64"', { |
| 63 'defines': [ |
| 64 'V8_TARGET_ARCH_X64', |
| 65 ], |
| 66 }], |
62 ], | 67 ], |
63 }], | 68 }], |
64 ], | 69 ], |
65 }], | 70 'configurations': { |
66 ], | 71 'Debug': { |
67 'configurations': { | 72 'defines': [ |
68 'Debug': { | 73 'DEBUG', |
69 'defines': [ | 74 '_DEBUG', |
70 'DEBUG', | 75 'ENABLE_DISASSEMBLER', |
71 '_DEBUG', | 76 'V8_ENABLE_CHECKS', |
72 'ENABLE_DISASSEMBLER', | 77 'OBJECT_PRINT', |
73 'V8_ENABLE_CHECKS', | 78 ], |
74 'OBJECT_PRINT', | |
75 ], | |
76 'msvs_settings': { | |
77 'VCCLCompilerTool': { | |
78 'Optimization': '0', | |
79 | |
80 'conditions': [ | |
81 ['OS=="win" and component=="shared_library"', { | |
82 'RuntimeLibrary': '3', # /MDd | |
83 }, { | |
84 'RuntimeLibrary': '1', # /MTd | |
85 }], | |
86 ], | |
87 }, | |
88 'VCLinkerTool': { | |
89 'LinkIncremental': '2', | |
90 }, | |
91 }, | |
92 'conditions': [ | |
93 ['OS=="freebsd" or OS=="openbsd"', { | |
94 'cflags': [ '-I/usr/local/include' ], | |
95 }], | |
96 ], | |
97 }, | |
98 'Release': { | |
99 'conditions': [ | |
100 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | |
101 'cflags!': [ | |
102 '-O2', | |
103 '-Os', | |
104 ], | |
105 'cflags': [ | |
106 '-fomit-frame-pointer', | |
107 '-O3', | |
108 ], | |
109 'conditions': [ | |
110 [ 'gcc_version==44', { | |
111 'cflags': [ | |
112 # Avoid crashes with gcc 4.4 in the v8 test suite. | |
113 '-fno-tree-vrp', | |
114 ], | |
115 }], | |
116 ], | |
117 }], | |
118 ['OS=="freebsd" or OS=="openbsd"', { | |
119 'cflags': [ '-I/usr/local/include' ], | |
120 }], | |
121 ['OS=="mac"', { | |
122 'xcode_settings': { | |
123 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | |
124 'GCC_STRICT_ALIASING': 'YES', # -fstrict-aliasing. Mainline gcc | |
125 # enables this at -O2 and above, | |
126 # but Apple gcc does not unless it | |
127 # is specified explicitly. | |
128 }, | |
129 }], | |
130 ['OS=="win"', { | |
131 'msvs_configuration_attributes': { | |
132 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', | |
133 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', | |
134 'CharacterSet': '1', | |
135 }, | |
136 'msvs_settings': { | 79 'msvs_settings': { |
137 'VCCLCompilerTool': { | 80 'VCCLCompilerTool': { |
138 'Optimization': '2', | 81 'Optimization': '0', |
139 'InlineFunctionExpansion': '2', | 82 |
140 'EnableIntrinsicFunctions': 'true', | |
141 'FavorSizeOrSpeed': '0', | |
142 'OmitFramePointers': 'true', | |
143 'StringPooling': 'true', | |
144 | |
145 'conditions': [ | 83 'conditions': [ |
146 ['OS=="win" and component=="shared_library"', { | 84 ['OS=="win" and component=="shared_library"', { |
147 'RuntimeLibrary': '2', #/MD | 85 'RuntimeLibrary': '3', # /MDd |
148 }, { | 86 }, { |
149 'RuntimeLibrary': '0', #/MT | 87 'RuntimeLibrary': '1', # /MTd |
150 }], | 88 }], |
151 ], | 89 ], |
152 }, | 90 }, |
153 'VCLinkerTool': { | 91 'VCLinkerTool': { |
154 'LinkIncremental': '1', | 92 'LinkIncremental': '2', |
155 'OptimizeReferences': '2', | |
156 'OptimizeForWindows98': '1', | |
157 'EnableCOMDATFolding': '2', | |
158 }, | 93 }, |
159 }, | 94 }, |
160 }], | 95 'conditions': [ |
161 ], | 96 ['OS=="freebsd" or OS=="openbsd"', { |
| 97 'cflags': [ '-I/usr/local/include' ], |
| 98 }], |
| 99 ], |
| 100 }, |
| 101 'Release': { |
| 102 'conditions': [ |
| 103 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 104 'cflags!': [ |
| 105 '-O2', |
| 106 '-Os', |
| 107 ], |
| 108 'cflags': [ |
| 109 '-fomit-frame-pointer', |
| 110 '-O3', |
| 111 ], |
| 112 'conditions': [ |
| 113 [ 'gcc_version==44', { |
| 114 'cflags': [ |
| 115 # Avoid crashes with gcc 4.4 in the v8 test suite. |
| 116 '-fno-tree-vrp', |
| 117 ], |
| 118 }], |
| 119 ], |
| 120 }], |
| 121 ['OS=="freebsd" or OS=="openbsd"', { |
| 122 'cflags': [ '-I/usr/local/include' ], |
| 123 }], |
| 124 ['OS=="mac"', { |
| 125 'xcode_settings': { |
| 126 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
| 127 |
| 128 # -fstrict-aliasing. Mainline gcc |
| 129 # enables this at -O2 and above, |
| 130 # but Apple gcc does not unless it |
| 131 # is specified explicitly. |
| 132 'GCC_STRICT_ALIASING': 'YES', |
| 133 }, |
| 134 }], |
| 135 ['OS=="win"', { |
| 136 'msvs_configuration_attributes': { |
| 137 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', |
| 138 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', |
| 139 'CharacterSet': '1', |
| 140 }, |
| 141 'msvs_settings': { |
| 142 'VCCLCompilerTool': { |
| 143 'Optimization': '2', |
| 144 'InlineFunctionExpansion': '2', |
| 145 'EnableIntrinsicFunctions': 'true', |
| 146 'FavorSizeOrSpeed': '0', |
| 147 'OmitFramePointers': 'true', |
| 148 'StringPooling': 'true', |
| 149 |
| 150 'conditions': [ |
| 151 ['OS=="win" and component=="shared_library"', { |
| 152 'RuntimeLibrary': '2', #/MD |
| 153 }, { |
| 154 'RuntimeLibrary': '0', #/MT |
| 155 }], |
| 156 ], |
| 157 }, |
| 158 'VCLinkerTool': { |
| 159 'LinkIncremental': '1', |
| 160 'OptimizeReferences': '2', |
| 161 'OptimizeForWindows98': '1', |
| 162 'EnableCOMDATFolding': '2', |
| 163 }, |
| 164 }, |
| 165 }], |
| 166 ], |
| 167 }, |
| 168 }, |
162 }, | 169 }, |
163 }, | 170 'targets': [ |
164 }, | 171 { |
165 'targets': [ | 172 'target_name': 'v8', |
166 { | 173 'conditions': [ |
167 'target_name': 'v8', | 174 ['v8_use_snapshot=="true"', { |
168 'conditions': [ | 175 'dependencies': ['v8_snapshot'], |
169 ['v8_use_snapshot=="true"', { | 176 }, |
170 'dependencies': ['v8_snapshot'], | 177 { |
171 }, | 178 'dependencies': ['v8_nosnapshot'], |
172 { | 179 }], |
173 'dependencies': ['v8_nosnapshot'], | 180 ['OS=="win" and component=="shared_library"', { |
174 }], | 181 'type': '<(component)', |
175 ['OS=="win" and component=="shared_library"', { | 182 'sources': [ |
176 'type': '<(component)', | 183 '../../src/v8dll-main.cc', |
| 184 ], |
| 185 'defines': [ |
| 186 'BUILDING_V8_SHARED' |
| 187 ], |
| 188 'direct_dependent_settings': { |
| 189 'defines': [ |
| 190 'USING_V8_SHARED', |
| 191 ], |
| 192 }, |
| 193 }, |
| 194 { |
| 195 'type': 'none', |
| 196 }], |
| 197 ], |
| 198 'direct_dependent_settings': { |
| 199 'include_dirs': [ |
| 200 '../../include', |
| 201 ], |
| 202 }, |
| 203 }, |
| 204 { |
| 205 'target_name': 'v8_preparser', |
| 206 'include_dirs': [ |
| 207 '../../include', |
| 208 '../../src', |
| 209 ], |
177 'sources': [ | 210 'sources': [ |
178 '../../src/v8dll-main.cc', | 211 '../../src/allocation.cc', |
179 ], | 212 '../../src/hashmap.cc', |
180 'defines': [ | 213 '../../src/preparse-data.cc', |
181 'BUILDING_V8_SHARED' | 214 '../../src/preparser.cc', |
182 ], | 215 '../../src/preparser-api.cc', |
183 'direct_dependent_settings': { | 216 '../../src/scanner-base.cc', |
184 'defines': [ | 217 '../../src/token.cc', |
185 'USING_V8_SHARED', | 218 '../../src/unicode.cc', |
186 ], | 219 ], |
187 }, | 220 'conditions': [ |
188 }, | 221 ['OS=="win" and component=="shared_library"', { |
189 { | 222 'sources': [ '../../src/v8preparserdll-main.cc' ], |
190 'type': 'none', | 223 'defines': [ 'BUILDING_V8_SHARED' ], |
191 }], | 224 'direct_dependent_settings': { |
192 ], | 225 'defines': [ 'USING_V8_SHARED' ] |
193 'direct_dependent_settings': { | 226 }, |
194 'include_dirs': [ | 227 'type': '<(component)', |
195 '../../include', | 228 } , { |
196 ], | 229 'type': 'none' |
197 }, | 230 }], |
198 }, | 231 ['OS!="win"', { |
199 { | 232 'type': '<(library)' |
200 'target_name': 'v8_preparser', | 233 }], |
201 'include_dirs': [ | 234 ] |
202 '../../include', | 235 }, |
203 '../../src', | 236 { |
204 ], | 237 'target_name': 'v8_snapshot', |
205 'sources': [ | 238 'type': '<(library)', |
206 '../../src/allocation.cc', | 239 'conditions': [ |
207 '../../src/hashmap.cc', | 240 ['OS=="win" and component=="shared_library"', { |
208 '../../src/preparse-data.cc', | 241 'defines': [ |
209 '../../src/preparser.cc', | 242 'BUILDING_V8_SHARED', |
210 '../../src/preparser-api.cc', | 243 ], |
211 '../../src/scanner-base.cc', | 244 }], |
212 '../../src/token.cc', | 245 ], |
213 '../../src/unicode.cc', | 246 'dependencies': [ |
214 ], | 247 'mksnapshot#host', |
215 'conditions': [ | 248 'js2c#host', |
216 ['OS=="win" and component=="shared_library"', { | 249 'v8_base', |
217 'sources': [ '../../src/v8preparserdll-main.cc' ], | 250 ], |
218 'defines': [ 'BUILDING_V8_SHARED' ], | 251 'include_dirs+': [ |
219 'direct_dependent_settings': { | 252 '../../src', |
220 'defines': [ 'USING_V8_SHARED' ] | 253 ], |
221 }, | 254 'sources': [ |
222 'type': '<(component)', | 255 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', |
223 } , { | |
224 'type': 'none' | |
225 }], | |
226 ['OS!="win"', { | |
227 'type': '<(library)' | |
228 }], | |
229 ] | |
230 }, | |
231 { | |
232 'target_name': 'v8_snapshot', | |
233 'type': '<(library)', | |
234 'conditions': [ | |
235 ['OS=="win" and component=="shared_library"', { | |
236 'defines': [ | |
237 'BUILDING_V8_SHARED', | |
238 ], | |
239 }], | |
240 ], | |
241 'dependencies': [ | |
242 'mksnapshot#host', | |
243 'js2c#host', | |
244 'v8_base', | |
245 ], | |
246 'include_dirs+': [ | |
247 '../../src', | |
248 ], | |
249 'sources': [ | |
250 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', | |
251 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
252 ], | |
253 'actions': [ | |
254 { | |
255 'action_name': 'run_mksnapshot', | |
256 'inputs': [ | |
257 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', | |
258 ], | |
259 'outputs': [ | |
260 '<(INTERMEDIATE_DIR)/snapshot.cc', | 256 '<(INTERMEDIATE_DIR)/snapshot.cc', |
261 ], | 257 ], |
262 'action': ['<@(_inputs)', '<@(_outputs)'], | 258 'actions': [ |
263 }, | 259 { |
264 ], | 260 'action_name': 'run_mksnapshot', |
265 }, | 261 'inputs': [ |
266 { | 262 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI
X)', |
267 'target_name': 'v8_nosnapshot', | 263 ], |
268 'type': '<(library)', | 264 'outputs': [ |
269 'toolsets': ['host', 'target'], | 265 '<(INTERMEDIATE_DIR)/snapshot.cc', |
270 'dependencies': [ | 266 ], |
271 'js2c#host', | 267 'action': ['<@(_inputs)', '<@(_outputs)'], |
272 'v8_base', | 268 }, |
273 ], | 269 ], |
274 'include_dirs+': [ | 270 }, |
275 '../../src', | 271 { |
276 ], | 272 'target_name': 'v8_nosnapshot', |
277 'sources': [ | 273 'type': '<(library)', |
278 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 274 'toolsets': ['host', 'target'], |
279 '../../src/snapshot-empty.cc', | 275 'dependencies': [ |
280 ], | 276 'js2c#host', |
281 'conditions': [ | 277 'v8_base', |
282 # The ARM assembler assumes the host is 32 bits, so force building | 278 ], |
283 # 32-bit host tools. | |
284 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', { | |
285 'cflags': ['-m32'], | |
286 'ldflags': ['-m32'], | |
287 }], | |
288 ['OS=="win" and component=="shared_library"', { | |
289 'defines': [ | |
290 'BUILDING_V8_SHARED', | |
291 ], | |
292 }], | |
293 ] | |
294 }, | |
295 { | |
296 'target_name': 'v8_base', | |
297 'type': '<(library)', | |
298 'toolsets': ['host', 'target'], | |
299 'include_dirs+': [ | |
300 '../../src', | |
301 ], | |
302 'sources': [ | |
303 '../../src/accessors.cc', | |
304 '../../src/accessors.h', | |
305 '../../src/allocation.cc', | |
306 '../../src/allocation.h', | |
307 '../../src/api.cc', | |
308 '../../src/api.h', | |
309 '../../src/apiutils.h', | |
310 '../../src/arguments.h', | |
311 '../../src/assembler.cc', | |
312 '../../src/assembler.h', | |
313 '../../src/ast.cc', | |
314 '../../src/ast-inl.h', | |
315 '../../src/ast.h', | |
316 '../../src/atomicops_internals_x86_gcc.cc', | |
317 '../../src/bignum.cc', | |
318 '../../src/bignum.h', | |
319 '../../src/bignum-dtoa.cc', | |
320 '../../src/bignum-dtoa.h', | |
321 '../../src/bootstrapper.cc', | |
322 '../../src/bootstrapper.h', | |
323 '../../src/builtins.cc', | |
324 '../../src/builtins.h', | |
325 '../../src/bytecodes-irregexp.h', | |
326 '../../src/cached-powers.cc', | |
327 '../../src/cached-powers.h', | |
328 '../../src/char-predicates-inl.h', | |
329 '../../src/char-predicates.h', | |
330 '../../src/checks.cc', | |
331 '../../src/checks.h', | |
332 '../../src/circular-queue-inl.h', | |
333 '../../src/circular-queue.cc', | |
334 '../../src/circular-queue.h', | |
335 '../../src/code-stubs.cc', | |
336 '../../src/code-stubs.h', | |
337 '../../src/code.h', | |
338 '../../src/codegen-inl.h', | |
339 '../../src/codegen.cc', | |
340 '../../src/codegen.h', | |
341 '../../src/compilation-cache.cc', | |
342 '../../src/compilation-cache.h', | |
343 '../../src/compiler.cc', | |
344 '../../src/compiler.h', | |
345 '../../src/contexts.cc', | |
346 '../../src/contexts.h', | |
347 '../../src/conversions-inl.h', | |
348 '../../src/conversions.cc', | |
349 '../../src/conversions.h', | |
350 '../../src/counters.cc', | |
351 '../../src/counters.h', | |
352 '../../src/cpu.h', | |
353 '../../src/cpu-profiler-inl.h', | |
354 '../../src/cpu-profiler.cc', | |
355 '../../src/cpu-profiler.h', | |
356 '../../src/data-flow.cc', | |
357 '../../src/data-flow.h', | |
358 '../../src/dateparser.cc', | |
359 '../../src/dateparser.h', | |
360 '../../src/dateparser-inl.h', | |
361 '../../src/debug.cc', | |
362 '../../src/debug.h', | |
363 '../../src/debug-agent.cc', | |
364 '../../src/debug-agent.h', | |
365 '../../src/deoptimizer.cc', | |
366 '../../src/deoptimizer.h', | |
367 '../../src/disasm.h', | |
368 '../../src/disassembler.cc', | |
369 '../../src/disassembler.h', | |
370 '../../src/dtoa.cc', | |
371 '../../src/dtoa.h', | |
372 '../../src/diy-fp.cc', | |
373 '../../src/diy-fp.h', | |
374 '../../src/double.h', | |
375 '../../src/execution.cc', | |
376 '../../src/execution.h', | |
377 '../../src/factory.cc', | |
378 '../../src/factory.h', | |
379 '../../src/fast-dtoa.cc', | |
380 '../../src/fast-dtoa.h', | |
381 '../../src/flag-definitions.h', | |
382 '../../src/fixed-dtoa.cc', | |
383 '../../src/fixed-dtoa.h', | |
384 '../../src/flags.cc', | |
385 '../../src/flags.h', | |
386 '../../src/frame-element.cc', | |
387 '../../src/frame-element.h', | |
388 '../../src/frames-inl.h', | |
389 '../../src/frames.cc', | |
390 '../../src/frames.h', | |
391 '../../src/full-codegen.cc', | |
392 '../../src/full-codegen.h', | |
393 '../../src/func-name-inferrer.cc', | |
394 '../../src/func-name-inferrer.h', | |
395 '../../src/global-handles.cc', | |
396 '../../src/global-handles.h', | |
397 '../../src/globals.h', | |
398 '../../src/handles-inl.h', | |
399 '../../src/handles.cc', | |
400 '../../src/handles.h', | |
401 '../../src/hashmap.cc', | |
402 '../../src/hashmap.h', | |
403 '../../src/heap-inl.h', | |
404 '../../src/heap.cc', | |
405 '../../src/heap.h', | |
406 '../../src/heap-profiler.cc', | |
407 '../../src/heap-profiler.h', | |
408 '../../src/hydrogen.cc', | |
409 '../../src/hydrogen.h', | |
410 '../../src/hydrogen-instructions.cc', | |
411 '../../src/hydrogen-instructions.h', | |
412 '../../src/ic-inl.h', | |
413 '../../src/ic.cc', | |
414 '../../src/ic.h', | |
415 '../../src/interpreter-irregexp.cc', | |
416 '../../src/interpreter-irregexp.h', | |
417 '../../src/jump-target-inl.h', | |
418 '../../src/jump-target.cc', | |
419 '../../src/jump-target.h', | |
420 '../../src/jsregexp.cc', | |
421 '../../src/jsregexp.h', | |
422 '../../src/list-inl.h', | |
423 '../../src/list.h', | |
424 '../../src/lithium-allocator.cc', | |
425 '../../src/lithium-allocator.h', | |
426 '../../src/liveedit.cc', | |
427 '../../src/liveedit.h', | |
428 '../../src/log-inl.h', | |
429 '../../src/log-utils.cc', | |
430 '../../src/log-utils.h', | |
431 '../../src/log.cc', | |
432 '../../src/log.h', | |
433 '../../src/macro-assembler.h', | |
434 '../../src/mark-compact.cc', | |
435 '../../src/mark-compact.h', | |
436 '../../src/memory.h', | |
437 '../../src/messages.cc', | |
438 '../../src/messages.h', | |
439 '../../src/natives.h', | |
440 '../../src/objects-debug.cc', | |
441 '../../src/objects-printer.cc', | |
442 '../../src/objects-inl.h', | |
443 '../../src/objects-visiting.cc', | |
444 '../../src/objects-visiting.h', | |
445 '../../src/objects.cc', | |
446 '../../src/objects.h', | |
447 '../../src/oprofile-agent.h', | |
448 '../../src/oprofile-agent.cc', | |
449 '../../src/parser.cc', | |
450 '../../src/parser.h', | |
451 '../../src/platform.h', | |
452 '../../src/preparse-data.cc', | |
453 '../../src/preparse-data.h', | |
454 '../../src/preparser.cc', | |
455 '../../src/preparser.h', | |
456 '../../src/prettyprinter.cc', | |
457 '../../src/prettyprinter.h', | |
458 '../../src/property.cc', | |
459 '../../src/property.h', | |
460 '../../src/profile-generator-inl.h', | |
461 '../../src/profile-generator.cc', | |
462 '../../src/profile-generator.h', | |
463 '../../src/regexp-macro-assembler-irregexp-inl.h', | |
464 '../../src/regexp-macro-assembler-irregexp.cc', | |
465 '../../src/regexp-macro-assembler-irregexp.h', | |
466 '../../src/regexp-macro-assembler-tracer.cc', | |
467 '../../src/regexp-macro-assembler-tracer.h', | |
468 '../../src/regexp-macro-assembler.cc', | |
469 '../../src/regexp-macro-assembler.h', | |
470 '../../src/regexp-stack.cc', | |
471 '../../src/regexp-stack.h', | |
472 '../../src/register-allocator.h', | |
473 '../../src/register-allocator-inl.h', | |
474 '../../src/register-allocator.cc', | |
475 '../../src/rewriter.cc', | |
476 '../../src/rewriter.h', | |
477 '../../src/runtime.cc', | |
478 '../../src/runtime.h', | |
479 '../../src/runtime-profiler.cc', | |
480 '../../src/runtime-profiler.h', | |
481 '../../src/safepoint-table.cc', | |
482 '../../src/safepoint-table.h', | |
483 '../../src/scanner-base.cc', | |
484 '../../src/scanner-base.h', | |
485 '../../src/scanner.cc', | |
486 '../../src/scanner.h', | |
487 '../../src/scopeinfo.cc', | |
488 '../../src/scopeinfo.h', | |
489 '../../src/scopes.cc', | |
490 '../../src/scopes.h', | |
491 '../../src/serialize.cc', | |
492 '../../src/serialize.h', | |
493 '../../src/shell.h', | |
494 '../../src/smart-pointer.h', | |
495 '../../src/snapshot-common.cc', | |
496 '../../src/snapshot.h', | |
497 '../../src/spaces-inl.h', | |
498 '../../src/spaces.cc', | |
499 '../../src/spaces.h', | |
500 '../../src/string-search.cc', | |
501 '../../src/string-search.h', | |
502 '../../src/string-stream.cc', | |
503 '../../src/string-stream.h', | |
504 '../../src/strtod.cc', | |
505 '../../src/strtod.h', | |
506 '../../src/stub-cache.cc', | |
507 '../../src/stub-cache.h', | |
508 '../../src/token.cc', | |
509 '../../src/token.h', | |
510 '../../src/top.cc', | |
511 '../../src/top.h', | |
512 '../../src/type-info.cc', | |
513 '../../src/type-info.h', | |
514 '../../src/unbound-queue-inl.h', | |
515 '../../src/unbound-queue.h', | |
516 '../../src/unicode-inl.h', | |
517 '../../src/unicode.cc', | |
518 '../../src/unicode.h', | |
519 '../../src/utils.cc', | |
520 '../../src/utils.h', | |
521 '../../src/v8-counters.cc', | |
522 '../../src/v8-counters.h', | |
523 '../../src/v8.cc', | |
524 '../../src/v8.h', | |
525 '../../src/v8checks.h', | |
526 '../../src/v8globals.h', | |
527 '../../src/v8threads.cc', | |
528 '../../src/v8threads.h', | |
529 '../../src/v8utils.h', | |
530 '../../src/variables.cc', | |
531 '../../src/variables.h', | |
532 '../../src/version.cc', | |
533 '../../src/version.h', | |
534 '../../src/virtual-frame-inl.h', | |
535 '../../src/virtual-frame.cc', | |
536 '../../src/virtual-frame.h', | |
537 '../../src/vm-state-inl.h', | |
538 '../../src/vm-state.h', | |
539 '../../src/zone-inl.h', | |
540 '../../src/zone.cc', | |
541 '../../src/zone.h', | |
542 '../../src/extensions/externalize-string-extension.cc', | |
543 '../../src/extensions/externalize-string-extension.h', | |
544 '../../src/extensions/gc-extension.cc', | |
545 '../../src/extensions/gc-extension.h', | |
546 ], | |
547 'conditions': [ | |
548 ['v8_target_arch=="arm"', { | |
549 'include_dirs+': [ | 279 'include_dirs+': [ |
550 '../../src/arm', | 280 '../../src', |
551 ], | 281 ], |
552 'sources': [ | 282 'sources': [ |
553 '../../src/jump-target-light.h', | 283 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
554 '../../src/jump-target-light-inl.h', | 284 '../../src/snapshot-empty.cc', |
555 '../../src/jump-target-light.cc', | |
556 '../../src/virtual-frame-light-inl.h', | |
557 '../../src/virtual-frame-light.cc', | |
558 '../../src/arm/assembler-arm-inl.h', | |
559 '../../src/arm/assembler-arm.cc', | |
560 '../../src/arm/assembler-arm.h', | |
561 '../../src/arm/builtins-arm.cc', | |
562 '../../src/arm/code-stubs-arm.cc', | |
563 '../../src/arm/code-stubs-arm.h', | |
564 '../../src/arm/codegen-arm.cc', | |
565 '../../src/arm/codegen-arm.h', | |
566 '../../src/arm/constants-arm.h', | |
567 '../../src/arm/constants-arm.cc', | |
568 '../../src/arm/cpu-arm.cc', | |
569 '../../src/arm/debug-arm.cc', | |
570 '../../src/arm/deoptimizer-arm.cc', | |
571 '../../src/arm/disasm-arm.cc', | |
572 '../../src/arm/frames-arm.cc', | |
573 '../../src/arm/frames-arm.h', | |
574 '../../src/arm/full-codegen-arm.cc', | |
575 '../../src/arm/ic-arm.cc', | |
576 '../../src/arm/jump-target-arm.cc', | |
577 '../../src/arm/lithium-codegen-arm.cc', | |
578 '../../src/arm/lithium-codegen-arm.h', | |
579 '../../src/arm/lithium-arm.cc', | |
580 '../../src/arm/lithium-arm.h', | |
581 '../../src/arm/macro-assembler-arm.cc', | |
582 '../../src/arm/macro-assembler-arm.h', | |
583 '../../src/arm/regexp-macro-assembler-arm.cc', | |
584 '../../src/arm/regexp-macro-assembler-arm.h', | |
585 '../../src/arm/register-allocator-arm.cc', | |
586 '../../src/arm/simulator-arm.cc', | |
587 '../../src/arm/stub-cache-arm.cc', | |
588 '../../src/arm/virtual-frame-arm-inl.h', | |
589 '../../src/arm/virtual-frame-arm.cc', | |
590 '../../src/arm/virtual-frame-arm.h', | |
591 ], | 285 ], |
592 'conditions': [ | 286 'conditions': [ |
593 # The ARM assembler assumes the host is 32 bits, so force building | 287 # The ARM assembler assumes the host is 32 bits, so force building |
594 # 32-bit host tools. | 288 # 32-bit host tools. |
595 ['host_arch=="x64" and _toolset=="host"', { | 289 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"',
{ |
| 290 'cflags': ['-m32'], |
| 291 'ldflags': ['-m32'], |
| 292 }], |
| 293 ['OS=="win" and component=="shared_library"', { |
| 294 'defines': [ |
| 295 'BUILDING_V8_SHARED', |
| 296 ], |
| 297 }], |
| 298 ] |
| 299 }, |
| 300 { |
| 301 'target_name': 'v8_base', |
| 302 'type': '<(library)', |
| 303 'toolsets': ['host', 'target'], |
| 304 'include_dirs+': [ |
| 305 '../../src', |
| 306 ], |
| 307 'sources': [ |
| 308 '../../src/accessors.cc', |
| 309 '../../src/accessors.h', |
| 310 '../../src/allocation.cc', |
| 311 '../../src/allocation.h', |
| 312 '../../src/api.cc', |
| 313 '../../src/api.h', |
| 314 '../../src/apiutils.h', |
| 315 '../../src/arguments.h', |
| 316 '../../src/assembler.cc', |
| 317 '../../src/assembler.h', |
| 318 '../../src/ast.cc', |
| 319 '../../src/ast-inl.h', |
| 320 '../../src/ast.h', |
| 321 '../../src/atomicops_internals_x86_gcc.cc', |
| 322 '../../src/bignum.cc', |
| 323 '../../src/bignum.h', |
| 324 '../../src/bignum-dtoa.cc', |
| 325 '../../src/bignum-dtoa.h', |
| 326 '../../src/bootstrapper.cc', |
| 327 '../../src/bootstrapper.h', |
| 328 '../../src/builtins.cc', |
| 329 '../../src/builtins.h', |
| 330 '../../src/bytecodes-irregexp.h', |
| 331 '../../src/cached-powers.cc', |
| 332 '../../src/cached-powers.h', |
| 333 '../../src/char-predicates-inl.h', |
| 334 '../../src/char-predicates.h', |
| 335 '../../src/checks.cc', |
| 336 '../../src/checks.h', |
| 337 '../../src/circular-queue-inl.h', |
| 338 '../../src/circular-queue.cc', |
| 339 '../../src/circular-queue.h', |
| 340 '../../src/code-stubs.cc', |
| 341 '../../src/code-stubs.h', |
| 342 '../../src/code.h', |
| 343 '../../src/codegen-inl.h', |
| 344 '../../src/codegen.cc', |
| 345 '../../src/codegen.h', |
| 346 '../../src/compilation-cache.cc', |
| 347 '../../src/compilation-cache.h', |
| 348 '../../src/compiler.cc', |
| 349 '../../src/compiler.h', |
| 350 '../../src/contexts.cc', |
| 351 '../../src/contexts.h', |
| 352 '../../src/conversions-inl.h', |
| 353 '../../src/conversions.cc', |
| 354 '../../src/conversions.h', |
| 355 '../../src/counters.cc', |
| 356 '../../src/counters.h', |
| 357 '../../src/cpu.h', |
| 358 '../../src/cpu-profiler-inl.h', |
| 359 '../../src/cpu-profiler.cc', |
| 360 '../../src/cpu-profiler.h', |
| 361 '../../src/data-flow.cc', |
| 362 '../../src/data-flow.h', |
| 363 '../../src/dateparser.cc', |
| 364 '../../src/dateparser.h', |
| 365 '../../src/dateparser-inl.h', |
| 366 '../../src/debug.cc', |
| 367 '../../src/debug.h', |
| 368 '../../src/debug-agent.cc', |
| 369 '../../src/debug-agent.h', |
| 370 '../../src/deoptimizer.cc', |
| 371 '../../src/deoptimizer.h', |
| 372 '../../src/disasm.h', |
| 373 '../../src/disassembler.cc', |
| 374 '../../src/disassembler.h', |
| 375 '../../src/dtoa.cc', |
| 376 '../../src/dtoa.h', |
| 377 '../../src/diy-fp.cc', |
| 378 '../../src/diy-fp.h', |
| 379 '../../src/double.h', |
| 380 '../../src/execution.cc', |
| 381 '../../src/execution.h', |
| 382 '../../src/factory.cc', |
| 383 '../../src/factory.h', |
| 384 '../../src/fast-dtoa.cc', |
| 385 '../../src/fast-dtoa.h', |
| 386 '../../src/flag-definitions.h', |
| 387 '../../src/fixed-dtoa.cc', |
| 388 '../../src/fixed-dtoa.h', |
| 389 '../../src/flags.cc', |
| 390 '../../src/flags.h', |
| 391 '../../src/frame-element.cc', |
| 392 '../../src/frame-element.h', |
| 393 '../../src/frames-inl.h', |
| 394 '../../src/frames.cc', |
| 395 '../../src/frames.h', |
| 396 '../../src/full-codegen.cc', |
| 397 '../../src/full-codegen.h', |
| 398 '../../src/func-name-inferrer.cc', |
| 399 '../../src/func-name-inferrer.h', |
| 400 '../../src/global-handles.cc', |
| 401 '../../src/global-handles.h', |
| 402 '../../src/globals.h', |
| 403 '../../src/handles-inl.h', |
| 404 '../../src/handles.cc', |
| 405 '../../src/handles.h', |
| 406 '../../src/hashmap.cc', |
| 407 '../../src/hashmap.h', |
| 408 '../../src/heap-inl.h', |
| 409 '../../src/heap.cc', |
| 410 '../../src/heap.h', |
| 411 '../../src/heap-profiler.cc', |
| 412 '../../src/heap-profiler.h', |
| 413 '../../src/hydrogen.cc', |
| 414 '../../src/hydrogen.h', |
| 415 '../../src/hydrogen-instructions.cc', |
| 416 '../../src/hydrogen-instructions.h', |
| 417 '../../src/ic-inl.h', |
| 418 '../../src/ic.cc', |
| 419 '../../src/ic.h', |
| 420 '../../src/interpreter-irregexp.cc', |
| 421 '../../src/interpreter-irregexp.h', |
| 422 '../../src/jump-target-inl.h', |
| 423 '../../src/jump-target.cc', |
| 424 '../../src/jump-target.h', |
| 425 '../../src/jsregexp.cc', |
| 426 '../../src/jsregexp.h', |
| 427 '../../src/list-inl.h', |
| 428 '../../src/list.h', |
| 429 '../../src/lithium-allocator.cc', |
| 430 '../../src/lithium-allocator.h', |
| 431 '../../src/liveedit.cc', |
| 432 '../../src/liveedit.h', |
| 433 '../../src/log-inl.h', |
| 434 '../../src/log-utils.cc', |
| 435 '../../src/log-utils.h', |
| 436 '../../src/log.cc', |
| 437 '../../src/log.h', |
| 438 '../../src/macro-assembler.h', |
| 439 '../../src/mark-compact.cc', |
| 440 '../../src/mark-compact.h', |
| 441 '../../src/memory.h', |
| 442 '../../src/messages.cc', |
| 443 '../../src/messages.h', |
| 444 '../../src/natives.h', |
| 445 '../../src/objects-debug.cc', |
| 446 '../../src/objects-printer.cc', |
| 447 '../../src/objects-inl.h', |
| 448 '../../src/objects-visiting.cc', |
| 449 '../../src/objects-visiting.h', |
| 450 '../../src/objects.cc', |
| 451 '../../src/objects.h', |
| 452 '../../src/oprofile-agent.h', |
| 453 '../../src/oprofile-agent.cc', |
| 454 '../../src/parser.cc', |
| 455 '../../src/parser.h', |
| 456 '../../src/platform.h', |
| 457 '../../src/preparse-data.cc', |
| 458 '../../src/preparse-data.h', |
| 459 '../../src/preparser.cc', |
| 460 '../../src/preparser.h', |
| 461 '../../src/prettyprinter.cc', |
| 462 '../../src/prettyprinter.h', |
| 463 '../../src/property.cc', |
| 464 '../../src/property.h', |
| 465 '../../src/profile-generator-inl.h', |
| 466 '../../src/profile-generator.cc', |
| 467 '../../src/profile-generator.h', |
| 468 '../../src/regexp-macro-assembler-irregexp-inl.h', |
| 469 '../../src/regexp-macro-assembler-irregexp.cc', |
| 470 '../../src/regexp-macro-assembler-irregexp.h', |
| 471 '../../src/regexp-macro-assembler-tracer.cc', |
| 472 '../../src/regexp-macro-assembler-tracer.h', |
| 473 '../../src/regexp-macro-assembler.cc', |
| 474 '../../src/regexp-macro-assembler.h', |
| 475 '../../src/regexp-stack.cc', |
| 476 '../../src/regexp-stack.h', |
| 477 '../../src/register-allocator.h', |
| 478 '../../src/register-allocator-inl.h', |
| 479 '../../src/register-allocator.cc', |
| 480 '../../src/rewriter.cc', |
| 481 '../../src/rewriter.h', |
| 482 '../../src/runtime.cc', |
| 483 '../../src/runtime.h', |
| 484 '../../src/runtime-profiler.cc', |
| 485 '../../src/runtime-profiler.h', |
| 486 '../../src/safepoint-table.cc', |
| 487 '../../src/safepoint-table.h', |
| 488 '../../src/scanner-base.cc', |
| 489 '../../src/scanner-base.h', |
| 490 '../../src/scanner.cc', |
| 491 '../../src/scanner.h', |
| 492 '../../src/scopeinfo.cc', |
| 493 '../../src/scopeinfo.h', |
| 494 '../../src/scopes.cc', |
| 495 '../../src/scopes.h', |
| 496 '../../src/serialize.cc', |
| 497 '../../src/serialize.h', |
| 498 '../../src/shell.h', |
| 499 '../../src/smart-pointer.h', |
| 500 '../../src/snapshot-common.cc', |
| 501 '../../src/snapshot.h', |
| 502 '../../src/spaces-inl.h', |
| 503 '../../src/spaces.cc', |
| 504 '../../src/spaces.h', |
| 505 '../../src/string-search.cc', |
| 506 '../../src/string-search.h', |
| 507 '../../src/string-stream.cc', |
| 508 '../../src/string-stream.h', |
| 509 '../../src/strtod.cc', |
| 510 '../../src/strtod.h', |
| 511 '../../src/stub-cache.cc', |
| 512 '../../src/stub-cache.h', |
| 513 '../../src/token.cc', |
| 514 '../../src/token.h', |
| 515 '../../src/top.cc', |
| 516 '../../src/top.h', |
| 517 '../../src/type-info.cc', |
| 518 '../../src/type-info.h', |
| 519 '../../src/unbound-queue-inl.h', |
| 520 '../../src/unbound-queue.h', |
| 521 '../../src/unicode-inl.h', |
| 522 '../../src/unicode.cc', |
| 523 '../../src/unicode.h', |
| 524 '../../src/utils.cc', |
| 525 '../../src/utils.h', |
| 526 '../../src/v8-counters.cc', |
| 527 '../../src/v8-counters.h', |
| 528 '../../src/v8.cc', |
| 529 '../../src/v8.h', |
| 530 '../../src/v8checks.h', |
| 531 '../../src/v8globals.h', |
| 532 '../../src/v8threads.cc', |
| 533 '../../src/v8threads.h', |
| 534 '../../src/v8utils.h', |
| 535 '../../src/variables.cc', |
| 536 '../../src/variables.h', |
| 537 '../../src/version.cc', |
| 538 '../../src/version.h', |
| 539 '../../src/virtual-frame-inl.h', |
| 540 '../../src/virtual-frame.cc', |
| 541 '../../src/virtual-frame.h', |
| 542 '../../src/vm-state-inl.h', |
| 543 '../../src/vm-state.h', |
| 544 '../../src/zone-inl.h', |
| 545 '../../src/zone.cc', |
| 546 '../../src/zone.h', |
| 547 '../../src/extensions/externalize-string-extension.cc', |
| 548 '../../src/extensions/externalize-string-extension.h', |
| 549 '../../src/extensions/gc-extension.cc', |
| 550 '../../src/extensions/gc-extension.h', |
| 551 ], |
| 552 'conditions': [ |
| 553 ['v8_target_arch=="arm"', { |
| 554 'include_dirs+': [ |
| 555 '../../src/arm', |
| 556 ], |
| 557 'sources': [ |
| 558 '../../src/jump-target-light.h', |
| 559 '../../src/jump-target-light-inl.h', |
| 560 '../../src/jump-target-light.cc', |
| 561 '../../src/virtual-frame-light-inl.h', |
| 562 '../../src/virtual-frame-light.cc', |
| 563 '../../src/arm/assembler-arm-inl.h', |
| 564 '../../src/arm/assembler-arm.cc', |
| 565 '../../src/arm/assembler-arm.h', |
| 566 '../../src/arm/builtins-arm.cc', |
| 567 '../../src/arm/code-stubs-arm.cc', |
| 568 '../../src/arm/code-stubs-arm.h', |
| 569 '../../src/arm/codegen-arm.cc', |
| 570 '../../src/arm/codegen-arm.h', |
| 571 '../../src/arm/constants-arm.h', |
| 572 '../../src/arm/constants-arm.cc', |
| 573 '../../src/arm/cpu-arm.cc', |
| 574 '../../src/arm/debug-arm.cc', |
| 575 '../../src/arm/deoptimizer-arm.cc', |
| 576 '../../src/arm/disasm-arm.cc', |
| 577 '../../src/arm/frames-arm.cc', |
| 578 '../../src/arm/frames-arm.h', |
| 579 '../../src/arm/full-codegen-arm.cc', |
| 580 '../../src/arm/ic-arm.cc', |
| 581 '../../src/arm/jump-target-arm.cc', |
| 582 '../../src/arm/lithium-codegen-arm.cc', |
| 583 '../../src/arm/lithium-codegen-arm.h', |
| 584 '../../src/arm/lithium-arm.cc', |
| 585 '../../src/arm/lithium-arm.h', |
| 586 '../../src/arm/macro-assembler-arm.cc', |
| 587 '../../src/arm/macro-assembler-arm.h', |
| 588 '../../src/arm/regexp-macro-assembler-arm.cc', |
| 589 '../../src/arm/regexp-macro-assembler-arm.h', |
| 590 '../../src/arm/register-allocator-arm.cc', |
| 591 '../../src/arm/simulator-arm.cc', |
| 592 '../../src/arm/stub-cache-arm.cc', |
| 593 '../../src/arm/virtual-frame-arm-inl.h', |
| 594 '../../src/arm/virtual-frame-arm.cc', |
| 595 '../../src/arm/virtual-frame-arm.h', |
| 596 ], |
| 597 'conditions': [ |
| 598 # The ARM assembler assumes the host is 32 bits, |
| 599 # so force building 32-bit host tools. |
| 600 ['host_arch=="x64" and _toolset=="host"', { |
| 601 'cflags': ['-m32'], |
| 602 'ldflags': ['-m32'], |
| 603 }] |
| 604 ] |
| 605 }], |
| 606 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { |
| 607 'include_dirs+': [ |
| 608 '../../src/ia32', |
| 609 ], |
| 610 'sources': [ |
| 611 '../../src/jump-target-heavy.h', |
| 612 '../../src/jump-target-heavy-inl.h', |
| 613 '../../src/jump-target-heavy.cc', |
| 614 '../../src/virtual-frame-heavy-inl.h', |
| 615 '../../src/virtual-frame-heavy.cc', |
| 616 '../../src/ia32/assembler-ia32-inl.h', |
| 617 '../../src/ia32/assembler-ia32.cc', |
| 618 '../../src/ia32/assembler-ia32.h', |
| 619 '../../src/ia32/builtins-ia32.cc', |
| 620 '../../src/ia32/code-stubs-ia32.cc', |
| 621 '../../src/ia32/code-stubs-ia32.h', |
| 622 '../../src/ia32/codegen-ia32.cc', |
| 623 '../../src/ia32/codegen-ia32.h', |
| 624 '../../src/ia32/cpu-ia32.cc', |
| 625 '../../src/ia32/debug-ia32.cc', |
| 626 '../../src/ia32/deoptimizer-ia32.cc', |
| 627 '../../src/ia32/disasm-ia32.cc', |
| 628 '../../src/ia32/frames-ia32.cc', |
| 629 '../../src/ia32/frames-ia32.h', |
| 630 '../../src/ia32/full-codegen-ia32.cc', |
| 631 '../../src/ia32/ic-ia32.cc', |
| 632 '../../src/ia32/jump-target-ia32.cc', |
| 633 '../../src/ia32/lithium-codegen-ia32.cc', |
| 634 '../../src/ia32/lithium-codegen-ia32.h', |
| 635 '../../src/ia32/lithium-ia32.cc', |
| 636 '../../src/ia32/lithium-ia32.h', |
| 637 '../../src/ia32/macro-assembler-ia32.cc', |
| 638 '../../src/ia32/macro-assembler-ia32.h', |
| 639 '../../src/ia32/regexp-macro-assembler-ia32.cc', |
| 640 '../../src/ia32/regexp-macro-assembler-ia32.h', |
| 641 '../../src/ia32/register-allocator-ia32.cc', |
| 642 '../../src/ia32/stub-cache-ia32.cc', |
| 643 '../../src/ia32/virtual-frame-ia32.cc', |
| 644 '../../src/ia32/virtual-frame-ia32.h', |
| 645 ], |
| 646 }], |
| 647 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', { |
| 648 'include_dirs+': [ |
| 649 '../../src/x64', |
| 650 ], |
| 651 'sources': [ |
| 652 '../../src/jump-target-heavy.h', |
| 653 '../../src/jump-target-heavy-inl.h', |
| 654 '../../src/jump-target-heavy.cc', |
| 655 '../../src/virtual-frame-heavy-inl.h', |
| 656 '../../src/virtual-frame-heavy.cc', |
| 657 '../../src/x64/assembler-x64-inl.h', |
| 658 '../../src/x64/assembler-x64.cc', |
| 659 '../../src/x64/assembler-x64.h', |
| 660 '../../src/x64/builtins-x64.cc', |
| 661 '../../src/x64/code-stubs-x64.cc', |
| 662 '../../src/x64/code-stubs-x64.h', |
| 663 '../../src/x64/codegen-x64.cc', |
| 664 '../../src/x64/codegen-x64.h', |
| 665 '../../src/x64/cpu-x64.cc', |
| 666 '../../src/x64/debug-x64.cc', |
| 667 '../../src/x64/deoptimizer-x64.cc', |
| 668 '../../src/x64/disasm-x64.cc', |
| 669 '../../src/x64/frames-x64.cc', |
| 670 '../../src/x64/frames-x64.h', |
| 671 '../../src/x64/full-codegen-x64.cc', |
| 672 '../../src/x64/ic-x64.cc', |
| 673 '../../src/x64/jump-target-x64.cc', |
| 674 '../../src/x64/macro-assembler-x64.cc', |
| 675 '../../src/x64/macro-assembler-x64.h', |
| 676 '../../src/x64/regexp-macro-assembler-x64.cc', |
| 677 '../../src/x64/regexp-macro-assembler-x64.h', |
| 678 '../../src/x64/register-allocator-x64.cc', |
| 679 '../../src/x64/stub-cache-x64.cc', |
| 680 '../../src/x64/virtual-frame-x64.cc', |
| 681 '../../src/x64/virtual-frame-x64.h', |
| 682 ], |
| 683 }], |
| 684 ['OS=="linux"', { |
| 685 'link_settings': { |
| 686 'libraries': [ |
| 687 # Needed for clock_gettime() used by src/platform-linux.cc. |
| 688 '-lrt', |
| 689 ]}, |
| 690 'sources': [ |
| 691 '../../src/platform-linux.cc', |
| 692 '../../src/platform-posix.cc' |
| 693 ], |
| 694 } |
| 695 ], |
| 696 ['OS=="freebsd"', { |
| 697 'link_settings': { |
| 698 'libraries': [ |
| 699 '-L/usr/local/lib -lexecinfo', |
| 700 ]}, |
| 701 'sources': [ |
| 702 '../../src/platform-freebsd.cc', |
| 703 '../../src/platform-posix.cc' |
| 704 ], |
| 705 } |
| 706 ], |
| 707 ['OS=="openbsd"', { |
| 708 'link_settings': { |
| 709 'libraries': [ |
| 710 '-L/usr/local/lib -lexecinfo', |
| 711 ]}, |
| 712 'sources': [ |
| 713 '../../src/platform-openbsd.cc', |
| 714 '../../src/platform-posix.cc' |
| 715 ], |
| 716 } |
| 717 ], |
| 718 ['OS=="mac"', { |
| 719 'sources': [ |
| 720 '../../src/platform-macos.cc', |
| 721 '../../src/platform-posix.cc' |
| 722 ]}, |
| 723 ], |
| 724 ['OS=="win"', { |
| 725 'sources': [ |
| 726 '../../src/platform-win32.cc', |
| 727 ], |
| 728 # 4355, 4800 came from common.vsprops |
| 729 'msvs_disabled_warnings': [4355, 4800], |
| 730 'link_settings': { |
| 731 'libraries': [ '-lwinmm.lib' ], |
| 732 }, |
| 733 }], |
| 734 ['OS=="win" and component=="shared_library"', { |
| 735 'defines': [ |
| 736 'BUILDING_V8_SHARED' |
| 737 ], |
| 738 }], |
| 739 ], |
| 740 }, |
| 741 { |
| 742 'target_name': 'js2c', |
| 743 'type': 'none', |
| 744 'toolsets': ['host'], |
| 745 'variables': { |
| 746 'library_files': [ |
| 747 '../../src/runtime.js', |
| 748 '../../src/v8natives.js', |
| 749 '../../src/array.js', |
| 750 '../../src/string.js', |
| 751 '../../src/uri.js', |
| 752 '../../src/math.js', |
| 753 '../../src/messages.js', |
| 754 '../../src/apinatives.js', |
| 755 '../../src/debug-debugger.js', |
| 756 '../../src/mirror-debugger.js', |
| 757 '../../src/liveedit-debugger.js', |
| 758 '../../src/date.js', |
| 759 '../../src/json.js', |
| 760 '../../src/regexp.js', |
| 761 '../../src/macros.py', |
| 762 ], |
| 763 }, |
| 764 'actions': [ |
| 765 { |
| 766 'action_name': 'js2c', |
| 767 'inputs': [ |
| 768 '../../tools/js2c.py', |
| 769 '<@(library_files)', |
| 770 ], |
| 771 'outputs': [ |
| 772 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 773 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', |
| 774 ], |
| 775 'action': [ |
| 776 'python', |
| 777 '../../tools/js2c.py', |
| 778 '<@(_outputs)', |
| 779 'CORE', |
| 780 '<@(library_files)' |
| 781 ], |
| 782 }, |
| 783 ], |
| 784 }, |
| 785 { |
| 786 'target_name': 'mksnapshot', |
| 787 'type': 'executable', |
| 788 'toolsets': ['host'], |
| 789 'dependencies': [ |
| 790 'v8_nosnapshot', |
| 791 ], |
| 792 'include_dirs+': [ |
| 793 '../../src', |
| 794 ], |
| 795 'sources': [ |
| 796 '../../src/mksnapshot.cc', |
| 797 ], |
| 798 'conditions': [ |
| 799 # The ARM assembler assumes the host is 32 bits, so force building |
| 800 # 32-bit host tools. |
| 801 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"',
{ |
596 'cflags': ['-m32'], | 802 'cflags': ['-m32'], |
597 'ldflags': ['-m32'], | 803 'ldflags': ['-m32'], |
598 }] | 804 }] |
599 ] | 805 ] |
600 }], | 806 }, |
601 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { | 807 { |
602 'include_dirs+': [ | 808 'target_name': 'v8_shell', |
603 '../../src/ia32', | 809 'type': 'executable', |
| 810 'dependencies': [ |
| 811 'v8' |
604 ], | 812 ], |
605 'sources': [ | 813 'sources': [ |
606 '../../src/jump-target-heavy.h', | 814 '../../samples/shell.cc', |
607 '../../src/jump-target-heavy-inl.h', | 815 ], |
608 '../../src/jump-target-heavy.cc', | 816 'conditions': [ |
609 '../../src/virtual-frame-heavy-inl.h', | 817 ['OS=="win"', { |
610 '../../src/virtual-frame-heavy.cc', | 818 # This could be gotten by not setting chromium_code, if that's OK. |
611 '../../src/ia32/assembler-ia32-inl.h', | 819 'defines': ['_CRT_SECURE_NO_WARNINGS'], |
612 '../../src/ia32/assembler-ia32.cc', | 820 }], |
613 '../../src/ia32/assembler-ia32.h', | 821 ], |
614 '../../src/ia32/builtins-ia32.cc', | 822 }, |
615 '../../src/ia32/code-stubs-ia32.cc', | 823 ], |
616 '../../src/ia32/code-stubs-ia32.h', | 824 }, { # use_system_v8 != 0 |
617 '../../src/ia32/codegen-ia32.cc', | 825 'targets': [ |
618 '../../src/ia32/codegen-ia32.h', | 826 { |
619 '../../src/ia32/cpu-ia32.cc', | 827 'target_name': 'v8', |
620 '../../src/ia32/debug-ia32.cc', | 828 'type': 'settings', |
621 '../../src/ia32/deoptimizer-ia32.cc', | 829 'link_settings': { |
622 '../../src/ia32/disasm-ia32.cc', | 830 'libraries': [ |
623 '../../src/ia32/frames-ia32.cc', | 831 '-lv8', |
624 '../../src/ia32/frames-ia32.h', | 832 ], |
625 '../../src/ia32/full-codegen-ia32.cc', | |
626 '../../src/ia32/ic-ia32.cc', | |
627 '../../src/ia32/jump-target-ia32.cc', | |
628 '../../src/ia32/lithium-codegen-ia32.cc', | |
629 '../../src/ia32/lithium-codegen-ia32.h', | |
630 '../../src/ia32/lithium-ia32.cc', | |
631 '../../src/ia32/lithium-ia32.h', | |
632 '../../src/ia32/macro-assembler-ia32.cc', | |
633 '../../src/ia32/macro-assembler-ia32.h', | |
634 '../../src/ia32/regexp-macro-assembler-ia32.cc', | |
635 '../../src/ia32/regexp-macro-assembler-ia32.h', | |
636 '../../src/ia32/register-allocator-ia32.cc', | |
637 '../../src/ia32/stub-cache-ia32.cc', | |
638 '../../src/ia32/virtual-frame-ia32.cc', | |
639 '../../src/ia32/virtual-frame-ia32.h', | |
640 ], | |
641 }], | |
642 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', { | |
643 'include_dirs+': [ | |
644 '../../src/x64', | |
645 ], | |
646 'sources': [ | |
647 '../../src/jump-target-heavy.h', | |
648 '../../src/jump-target-heavy-inl.h', | |
649 '../../src/jump-target-heavy.cc', | |
650 '../../src/virtual-frame-heavy-inl.h', | |
651 '../../src/virtual-frame-heavy.cc', | |
652 '../../src/x64/assembler-x64-inl.h', | |
653 '../../src/x64/assembler-x64.cc', | |
654 '../../src/x64/assembler-x64.h', | |
655 '../../src/x64/builtins-x64.cc', | |
656 '../../src/x64/code-stubs-x64.cc', | |
657 '../../src/x64/code-stubs-x64.h', | |
658 '../../src/x64/codegen-x64.cc', | |
659 '../../src/x64/codegen-x64.h', | |
660 '../../src/x64/cpu-x64.cc', | |
661 '../../src/x64/debug-x64.cc', | |
662 '../../src/x64/deoptimizer-x64.cc', | |
663 '../../src/x64/disasm-x64.cc', | |
664 '../../src/x64/frames-x64.cc', | |
665 '../../src/x64/frames-x64.h', | |
666 '../../src/x64/full-codegen-x64.cc', | |
667 '../../src/x64/ic-x64.cc', | |
668 '../../src/x64/jump-target-x64.cc', | |
669 '../../src/x64/macro-assembler-x64.cc', | |
670 '../../src/x64/macro-assembler-x64.h', | |
671 '../../src/x64/regexp-macro-assembler-x64.cc', | |
672 '../../src/x64/regexp-macro-assembler-x64.h', | |
673 '../../src/x64/register-allocator-x64.cc', | |
674 '../../src/x64/stub-cache-x64.cc', | |
675 '../../src/x64/virtual-frame-x64.cc', | |
676 '../../src/x64/virtual-frame-x64.h', | |
677 ], | |
678 }], | |
679 ['OS=="linux"', { | |
680 'link_settings': { | |
681 'libraries': [ | |
682 # Needed for clock_gettime() used by src/platform-linux.cc. | |
683 '-lrt', | |
684 ]}, | |
685 'sources': [ | |
686 '../../src/platform-linux.cc', | |
687 '../../src/platform-posix.cc' | |
688 ], | |
689 } | |
690 ], | |
691 ['OS=="freebsd"', { | |
692 'link_settings': { | |
693 'libraries': [ | |
694 '-L/usr/local/lib -lexecinfo', | |
695 ]}, | |
696 'sources': [ | |
697 '../../src/platform-freebsd.cc', | |
698 '../../src/platform-posix.cc' | |
699 ], | |
700 } | |
701 ], | |
702 ['OS=="openbsd"', { | |
703 'link_settings': { | |
704 'libraries': [ | |
705 '-L/usr/local/lib -lexecinfo', | |
706 ]}, | |
707 'sources': [ | |
708 '../../src/platform-openbsd.cc', | |
709 '../../src/platform-posix.cc' | |
710 ], | |
711 } | |
712 ], | |
713 ['OS=="mac"', { | |
714 'sources': [ | |
715 '../../src/platform-macos.cc', | |
716 '../../src/platform-posix.cc' | |
717 ]}, | |
718 ], | |
719 ['OS=="win"', { | |
720 'sources': [ | |
721 '../../src/platform-win32.cc', | |
722 ], | |
723 # 4355, 4800 came from common.vsprops | |
724 'msvs_disabled_warnings': [4355, 4800], | |
725 'link_settings': { | |
726 'libraries': [ '-lwinmm.lib' ], | |
727 }, | 833 }, |
728 }], | 834 }, |
729 ['OS=="win" and component=="shared_library"', { | 835 { |
730 'defines': [ | 836 'target_name': 'v8_shell', |
731 'BUILDING_V8_SHARED' | 837 'type': 'none', |
732 ], | 838 'dependencies': [ |
733 }], | 839 'v8' |
| 840 ], |
| 841 }, |
734 ], | 842 ], |
735 }, | 843 }], |
736 { | |
737 'target_name': 'js2c', | |
738 'type': 'none', | |
739 'toolsets': ['host'], | |
740 'variables': { | |
741 'library_files': [ | |
742 '../../src/runtime.js', | |
743 '../../src/v8natives.js', | |
744 '../../src/array.js', | |
745 '../../src/string.js', | |
746 '../../src/uri.js', | |
747 '../../src/math.js', | |
748 '../../src/messages.js', | |
749 '../../src/apinatives.js', | |
750 '../../src/debug-debugger.js', | |
751 '../../src/mirror-debugger.js', | |
752 '../../src/liveedit-debugger.js', | |
753 '../../src/date.js', | |
754 '../../src/json.js', | |
755 '../../src/regexp.js', | |
756 '../../src/macros.py', | |
757 ], | |
758 }, | |
759 'actions': [ | |
760 { | |
761 'action_name': 'js2c', | |
762 'inputs': [ | |
763 '../../tools/js2c.py', | |
764 '<@(library_files)', | |
765 ], | |
766 'outputs': [ | |
767 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | |
768 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', | |
769 ], | |
770 'action': [ | |
771 'python', | |
772 '../../tools/js2c.py', | |
773 '<@(_outputs)', | |
774 'CORE', | |
775 '<@(library_files)' | |
776 ], | |
777 }, | |
778 ], | |
779 }, | |
780 { | |
781 'target_name': 'mksnapshot', | |
782 'type': 'executable', | |
783 'toolsets': ['host'], | |
784 'dependencies': [ | |
785 'v8_nosnapshot', | |
786 ], | |
787 'include_dirs+': [ | |
788 '../../src', | |
789 ], | |
790 'sources': [ | |
791 '../../src/mksnapshot.cc', | |
792 ], | |
793 'conditions': [ | |
794 # The ARM assembler assumes the host is 32 bits, so force building | |
795 # 32-bit host tools. | |
796 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', { | |
797 'cflags': ['-m32'], | |
798 'ldflags': ['-m32'], | |
799 }] | |
800 ] | |
801 }, | |
802 { | |
803 'target_name': 'v8_shell', | |
804 'type': 'executable', | |
805 'dependencies': [ | |
806 'v8' | |
807 ], | |
808 'sources': [ | |
809 '../../samples/shell.cc', | |
810 ], | |
811 'conditions': [ | |
812 ['OS=="win"', { | |
813 # This could be gotten by not setting chromium_code, if that's OK. | |
814 'defines': ['_CRT_SECURE_NO_WARNINGS'], | |
815 }], | |
816 ], | |
817 }, | |
818 ], | 844 ], |
819 } | 845 } |
OLD | NEW |