Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Side by Side Diff: tools/gyp/v8.gyp

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mozilla/mozilla.status ('k') | tools/test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2009 the V8 project authors. All rights reserved. 1 # Copyright 2011 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/isolate.cc',
418 '../../src/isolate.h',
419 '../../src/jump-target-inl.h',
420 '../../src/jump-target.cc',
421 '../../src/jump-target.h',
422 '../../src/jsregexp.cc',
423 '../../src/jsregexp.h',
424 '../../src/list-inl.h',
425 '../../src/list.h',
426 '../../src/lithium-allocator.cc',
427 '../../src/lithium-allocator.h',
428 '../../src/liveedit.cc',
429 '../../src/liveedit.h',
430 '../../src/log-inl.h',
431 '../../src/log-utils.cc',
432 '../../src/log-utils.h',
433 '../../src/log.cc',
434 '../../src/log.h',
435 '../../src/macro-assembler.h',
436 '../../src/mark-compact.cc',
437 '../../src/mark-compact.h',
438 '../../src/memory.h',
439 '../../src/messages.cc',
440 '../../src/messages.h',
441 '../../src/natives.h',
442 '../../src/objects-debug.cc',
443 '../../src/objects-inl.h',
444 '../../src/objects-visiting.cc',
445 '../../src/objects-visiting.h',
446 '../../src/objects.cc',
447 '../../src/objects.h',
448 '../../src/oprofile-agent.h',
449 '../../src/oprofile-agent.cc',
450 '../../src/parser.cc',
451 '../../src/parser.h',
452 '../../src/platform.h',
453 '../../src/preparse-data.cc',
454 '../../src/preparse-data.h',
455 '../../src/preparser.cc',
456 '../../src/preparser.h',
457 '../../src/prettyprinter.cc',
458 '../../src/prettyprinter.h',
459 '../../src/property.cc',
460 '../../src/property.h',
461 '../../src/profile-generator-inl.h',
462 '../../src/profile-generator.cc',
463 '../../src/profile-generator.h',
464 '../../src/regexp-macro-assembler-irregexp-inl.h',
465 '../../src/regexp-macro-assembler-irregexp.cc',
466 '../../src/regexp-macro-assembler-irregexp.h',
467 '../../src/regexp-macro-assembler-tracer.cc',
468 '../../src/regexp-macro-assembler-tracer.h',
469 '../../src/regexp-macro-assembler.cc',
470 '../../src/regexp-macro-assembler.h',
471 '../../src/regexp-stack.cc',
472 '../../src/regexp-stack.h',
473 '../../src/register-allocator.h',
474 '../../src/register-allocator-inl.h',
475 '../../src/register-allocator.cc',
476 '../../src/rewriter.cc',
477 '../../src/rewriter.h',
478 '../../src/runtime.cc',
479 '../../src/runtime.h',
480 '../../src/runtime-profiler.cc',
481 '../../src/runtime-profiler.h',
482 '../../src/safepoint-table.cc',
483 '../../src/safepoint-table.h',
484 '../../src/scanner-base.cc',
485 '../../src/scanner-base.h',
486 '../../src/scanner.cc',
487 '../../src/scanner.h',
488 '../../src/scopeinfo.cc',
489 '../../src/scopeinfo.h',
490 '../../src/scopes.cc',
491 '../../src/scopes.h',
492 '../../src/serialize.cc',
493 '../../src/serialize.h',
494 '../../src/shell.h',
495 '../../src/smart-pointer.h',
496 '../../src/snapshot-common.cc',
497 '../../src/snapshot.h',
498 '../../src/spaces-inl.h',
499 '../../src/spaces.cc',
500 '../../src/spaces.h',
501 '../../src/string-search.cc',
502 '../../src/string-search.h',
503 '../../src/string-stream.cc',
504 '../../src/string-stream.h',
505 '../../src/strtod.cc',
506 '../../src/strtod.h',
507 '../../src/stub-cache.cc',
508 '../../src/stub-cache.h',
509 '../../src/token.cc',
510 '../../src/token.h',
511 '../../src/top.cc',
512 '../../src/top.h',
513 '../../src/type-info.cc',
514 '../../src/type-info.h',
515 '../../src/unbound-queue-inl.h',
516 '../../src/unbound-queue.h',
517 '../../src/unicode-inl.h',
518 '../../src/unicode.cc',
519 '../../src/unicode.h',
520 '../../src/utils.cc',
521 '../../src/utils.h',
522 '../../src/v8-counters.cc',
523 '../../src/v8-counters.h',
524 '../../src/v8.cc',
525 '../../src/v8.h',
526 '../../src/v8checks.h',
527 '../../src/v8globals.h',
528 '../../src/v8threads.cc',
529 '../../src/v8threads.h',
530 '../../src/v8utils.h',
531 '../../src/variables.cc',
532 '../../src/variables.h',
533 '../../src/version.cc',
534 '../../src/version.h',
535 '../../src/virtual-frame-inl.h',
536 '../../src/virtual-frame.cc',
537 '../../src/virtual-frame.h',
538 '../../src/vm-state-inl.h',
539 '../../src/vm-state.h',
540 '../../src/zone-inl.h',
541 '../../src/zone.cc',
542 '../../src/zone.h',
543 '../../src/extensions/externalize-string-extension.cc',
544 '../../src/extensions/externalize-string-extension.h',
545 '../../src/extensions/gc-extension.cc',
546 '../../src/extensions/gc-extension.h',
547 ],
548 'conditions': [
549 ['v8_target_arch=="arm"', {
550 'include_dirs+': [ 279 'include_dirs+': [
551 '../../src/arm', 280 '../../src',
552 ], 281 ],
553 'sources': [ 282 'sources': [
554 '../../src/jump-target-light.h', 283 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
555 '../../src/jump-target-light-inl.h', 284 '../../src/snapshot-empty.cc',
556 '../../src/jump-target-light.cc',
557 '../../src/virtual-frame-light-inl.h',
558 '../../src/virtual-frame-light.cc',
559 '../../src/arm/assembler-arm-inl.h',
560 '../../src/arm/assembler-arm.cc',
561 '../../src/arm/assembler-arm.h',
562 '../../src/arm/builtins-arm.cc',
563 '../../src/arm/code-stubs-arm.cc',
564 '../../src/arm/code-stubs-arm.h',
565 '../../src/arm/codegen-arm.cc',
566 '../../src/arm/codegen-arm.h',
567 '../../src/arm/constants-arm.h',
568 '../../src/arm/constants-arm.cc',
569 '../../src/arm/cpu-arm.cc',
570 '../../src/arm/debug-arm.cc',
571 '../../src/arm/deoptimizer-arm.cc',
572 '../../src/arm/disasm-arm.cc',
573 '../../src/arm/frames-arm.cc',
574 '../../src/arm/frames-arm.h',
575 '../../src/arm/full-codegen-arm.cc',
576 '../../src/arm/ic-arm.cc',
577 '../../src/arm/jump-target-arm.cc',
578 '../../src/arm/lithium-codegen-arm.cc',
579 '../../src/arm/lithium-codegen-arm.h',
580 '../../src/arm/lithium-arm.cc',
581 '../../src/arm/lithium-arm.h',
582 '../../src/arm/macro-assembler-arm.cc',
583 '../../src/arm/macro-assembler-arm.h',
584 '../../src/arm/regexp-macro-assembler-arm.cc',
585 '../../src/arm/regexp-macro-assembler-arm.h',
586 '../../src/arm/register-allocator-arm.cc',
587 '../../src/arm/simulator-arm.cc',
588 '../../src/arm/stub-cache-arm.cc',
589 '../../src/arm/virtual-frame-arm-inl.h',
590 '../../src/arm/virtual-frame-arm.cc',
591 '../../src/arm/virtual-frame-arm.h',
592 ], 285 ],
593 'conditions': [ 286 'conditions': [
594 # 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
595 # 32-bit host tools. 288 # 32-bit host tools.
596 ['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/isolate.cc',
428 '../../src/isolate.h',
429 '../../src/list-inl.h',
430 '../../src/list.h',
431 '../../src/lithium.cc',
432 '../../src/lithium.h',
433 '../../src/lithium-allocator.cc',
434 '../../src/lithium-allocator.h',
435 '../../src/liveedit.cc',
436 '../../src/liveedit.h',
437 '../../src/log-inl.h',
438 '../../src/log-utils.cc',
439 '../../src/log-utils.h',
440 '../../src/log.cc',
441 '../../src/log.h',
442 '../../src/macro-assembler.h',
443 '../../src/mark-compact.cc',
444 '../../src/mark-compact.h',
445 '../../src/memory.h',
446 '../../src/messages.cc',
447 '../../src/messages.h',
448 '../../src/natives.h',
449 '../../src/objects-debug.cc',
450 '../../src/objects-printer.cc',
451 '../../src/objects-inl.h',
452 '../../src/objects-visiting.cc',
453 '../../src/objects-visiting.h',
454 '../../src/objects.cc',
455 '../../src/objects.h',
456 '../../src/oprofile-agent.h',
457 '../../src/oprofile-agent.cc',
458 '../../src/parser.cc',
459 '../../src/parser.h',
460 '../../src/platform.h',
461 '../../src/preparse-data.cc',
462 '../../src/preparse-data.h',
463 '../../src/preparser.cc',
464 '../../src/preparser.h',
465 '../../src/prettyprinter.cc',
466 '../../src/prettyprinter.h',
467 '../../src/property.cc',
468 '../../src/property.h',
469 '../../src/profile-generator-inl.h',
470 '../../src/profile-generator.cc',
471 '../../src/profile-generator.h',
472 '../../src/regexp-macro-assembler-irregexp-inl.h',
473 '../../src/regexp-macro-assembler-irregexp.cc',
474 '../../src/regexp-macro-assembler-irregexp.h',
475 '../../src/regexp-macro-assembler-tracer.cc',
476 '../../src/regexp-macro-assembler-tracer.h',
477 '../../src/regexp-macro-assembler.cc',
478 '../../src/regexp-macro-assembler.h',
479 '../../src/regexp-stack.cc',
480 '../../src/regexp-stack.h',
481 '../../src/register-allocator.h',
482 '../../src/register-allocator-inl.h',
483 '../../src/register-allocator.cc',
484 '../../src/rewriter.cc',
485 '../../src/rewriter.h',
486 '../../src/runtime.cc',
487 '../../src/runtime.h',
488 '../../src/runtime-profiler.cc',
489 '../../src/runtime-profiler.h',
490 '../../src/safepoint-table.cc',
491 '../../src/safepoint-table.h',
492 '../../src/scanner-base.cc',
493 '../../src/scanner-base.h',
494 '../../src/scanner.cc',
495 '../../src/scanner.h',
496 '../../src/scopeinfo.cc',
497 '../../src/scopeinfo.h',
498 '../../src/scopes.cc',
499 '../../src/scopes.h',
500 '../../src/serialize.cc',
501 '../../src/serialize.h',
502 '../../src/shell.h',
503 '../../src/smart-pointer.h',
504 '../../src/snapshot-common.cc',
505 '../../src/snapshot.h',
506 '../../src/spaces-inl.h',
507 '../../src/spaces.cc',
508 '../../src/spaces.h',
509 '../../src/string-search.cc',
510 '../../src/string-search.h',
511 '../../src/string-stream.cc',
512 '../../src/string-stream.h',
513 '../../src/strtod.cc',
514 '../../src/strtod.h',
515 '../../src/stub-cache.cc',
516 '../../src/stub-cache.h',
517 '../../src/token.cc',
518 '../../src/token.h',
519 '../../src/top.cc',
520 '../../src/top.h',
521 '../../src/type-info.cc',
522 '../../src/type-info.h',
523 '../../src/unbound-queue-inl.h',
524 '../../src/unbound-queue.h',
525 '../../src/unicode-inl.h',
526 '../../src/unicode.cc',
527 '../../src/unicode.h',
528 '../../src/utils.cc',
529 '../../src/utils.h',
530 '../../src/v8-counters.cc',
531 '../../src/v8-counters.h',
532 '../../src/v8.cc',
533 '../../src/v8.h',
534 '../../src/v8checks.h',
535 '../../src/v8globals.h',
536 '../../src/v8threads.cc',
537 '../../src/v8threads.h',
538 '../../src/v8utils.h',
539 '../../src/variables.cc',
540 '../../src/variables.h',
541 '../../src/version.cc',
542 '../../src/version.h',
543 '../../src/virtual-frame-inl.h',
544 '../../src/virtual-frame.cc',
545 '../../src/virtual-frame.h',
546 '../../src/vm-state-inl.h',
547 '../../src/vm-state.h',
548 '../../src/zone-inl.h',
549 '../../src/zone.cc',
550 '../../src/zone.h',
551 '../../src/extensions/externalize-string-extension.cc',
552 '../../src/extensions/externalize-string-extension.h',
553 '../../src/extensions/gc-extension.cc',
554 '../../src/extensions/gc-extension.h',
555 ],
556 'conditions': [
557 ['v8_target_arch=="arm"', {
558 'include_dirs+': [
559 '../../src/arm',
560 ],
561 'sources': [
562 '../../src/jump-target-light.h',
563 '../../src/jump-target-light-inl.h',
564 '../../src/jump-target-light.cc',
565 '../../src/virtual-frame-light-inl.h',
566 '../../src/virtual-frame-light.cc',
567 '../../src/arm/assembler-arm-inl.h',
568 '../../src/arm/assembler-arm.cc',
569 '../../src/arm/assembler-arm.h',
570 '../../src/arm/builtins-arm.cc',
571 '../../src/arm/code-stubs-arm.cc',
572 '../../src/arm/code-stubs-arm.h',
573 '../../src/arm/codegen-arm.cc',
574 '../../src/arm/codegen-arm.h',
575 '../../src/arm/constants-arm.h',
576 '../../src/arm/constants-arm.cc',
577 '../../src/arm/cpu-arm.cc',
578 '../../src/arm/debug-arm.cc',
579 '../../src/arm/deoptimizer-arm.cc',
580 '../../src/arm/disasm-arm.cc',
581 '../../src/arm/frames-arm.cc',
582 '../../src/arm/frames-arm.h',
583 '../../src/arm/full-codegen-arm.cc',
584 '../../src/arm/ic-arm.cc',
585 '../../src/arm/jump-target-arm.cc',
586 '../../src/arm/lithium-codegen-arm.cc',
587 '../../src/arm/lithium-codegen-arm.h',
588 '../../src/arm/lithium-arm.cc',
589 '../../src/arm/lithium-arm.h',
590 '../../src/arm/macro-assembler-arm.cc',
591 '../../src/arm/macro-assembler-arm.h',
592 '../../src/arm/regexp-macro-assembler-arm.cc',
593 '../../src/arm/regexp-macro-assembler-arm.h',
594 '../../src/arm/register-allocator-arm.cc',
595 '../../src/arm/simulator-arm.cc',
596 '../../src/arm/stub-cache-arm.cc',
597 '../../src/arm/virtual-frame-arm-inl.h',
598 '../../src/arm/virtual-frame-arm.cc',
599 '../../src/arm/virtual-frame-arm.h',
600 ],
601 'conditions': [
602 # The ARM assembler assumes the host is 32 bits,
603 # so force building 32-bit host tools.
604 ['host_arch=="x64" and _toolset=="host"', {
605 'cflags': ['-m32'],
606 'ldflags': ['-m32'],
607 }]
608 ]
609 }],
610 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', {
611 'include_dirs+': [
612 '../../src/ia32',
613 ],
614 'sources': [
615 '../../src/jump-target-heavy.h',
616 '../../src/jump-target-heavy-inl.h',
617 '../../src/jump-target-heavy.cc',
618 '../../src/virtual-frame-heavy-inl.h',
619 '../../src/virtual-frame-heavy.cc',
620 '../../src/ia32/assembler-ia32-inl.h',
621 '../../src/ia32/assembler-ia32.cc',
622 '../../src/ia32/assembler-ia32.h',
623 '../../src/ia32/builtins-ia32.cc',
624 '../../src/ia32/code-stubs-ia32.cc',
625 '../../src/ia32/code-stubs-ia32.h',
626 '../../src/ia32/codegen-ia32.cc',
627 '../../src/ia32/codegen-ia32.h',
628 '../../src/ia32/cpu-ia32.cc',
629 '../../src/ia32/debug-ia32.cc',
630 '../../src/ia32/deoptimizer-ia32.cc',
631 '../../src/ia32/disasm-ia32.cc',
632 '../../src/ia32/frames-ia32.cc',
633 '../../src/ia32/frames-ia32.h',
634 '../../src/ia32/full-codegen-ia32.cc',
635 '../../src/ia32/ic-ia32.cc',
636 '../../src/ia32/jump-target-ia32.cc',
637 '../../src/ia32/lithium-codegen-ia32.cc',
638 '../../src/ia32/lithium-codegen-ia32.h',
639 '../../src/ia32/lithium-ia32.cc',
640 '../../src/ia32/lithium-ia32.h',
641 '../../src/ia32/macro-assembler-ia32.cc',
642 '../../src/ia32/macro-assembler-ia32.h',
643 '../../src/ia32/regexp-macro-assembler-ia32.cc',
644 '../../src/ia32/regexp-macro-assembler-ia32.h',
645 '../../src/ia32/register-allocator-ia32.cc',
646 '../../src/ia32/stub-cache-ia32.cc',
647 '../../src/ia32/virtual-frame-ia32.cc',
648 '../../src/ia32/virtual-frame-ia32.h',
649 ],
650 }],
651 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', {
652 'include_dirs+': [
653 '../../src/x64',
654 ],
655 'sources': [
656 '../../src/jump-target-heavy.h',
657 '../../src/jump-target-heavy-inl.h',
658 '../../src/jump-target-heavy.cc',
659 '../../src/virtual-frame-heavy-inl.h',
660 '../../src/virtual-frame-heavy.cc',
661 '../../src/x64/assembler-x64-inl.h',
662 '../../src/x64/assembler-x64.cc',
663 '../../src/x64/assembler-x64.h',
664 '../../src/x64/builtins-x64.cc',
665 '../../src/x64/code-stubs-x64.cc',
666 '../../src/x64/code-stubs-x64.h',
667 '../../src/x64/codegen-x64.cc',
668 '../../src/x64/codegen-x64.h',
669 '../../src/x64/cpu-x64.cc',
670 '../../src/x64/debug-x64.cc',
671 '../../src/x64/deoptimizer-x64.cc',
672 '../../src/x64/disasm-x64.cc',
673 '../../src/x64/frames-x64.cc',
674 '../../src/x64/frames-x64.h',
675 '../../src/x64/full-codegen-x64.cc',
676 '../../src/x64/ic-x64.cc',
677 '../../src/x64/jump-target-x64.cc',
678 '../../src/x64/lithium-codegen-x64.cc',
679 '../../src/x64/lithium-codegen-x64.h',
680 '../../src/x64/lithium-x64.cc',
681 '../../src/x64/lithium-x64.h',
682 '../../src/x64/macro-assembler-x64.cc',
683 '../../src/x64/macro-assembler-x64.h',
684 '../../src/x64/regexp-macro-assembler-x64.cc',
685 '../../src/x64/regexp-macro-assembler-x64.h',
686 '../../src/x64/register-allocator-x64.cc',
687 '../../src/x64/stub-cache-x64.cc',
688 '../../src/x64/virtual-frame-x64.cc',
689 '../../src/x64/virtual-frame-x64.h',
690 ],
691 }],
692 ['OS=="linux"', {
693 'link_settings': {
694 'libraries': [
695 # Needed for clock_gettime() used by src/platform-linux.cc.
696 '-lrt',
697 ]},
698 'sources': [
699 '../../src/platform-linux.cc',
700 '../../src/platform-posix.cc'
701 ],
702 }
703 ],
704 ['OS=="freebsd"', {
705 'link_settings': {
706 'libraries': [
707 '-L/usr/local/lib -lexecinfo',
708 ]},
709 'sources': [
710 '../../src/platform-freebsd.cc',
711 '../../src/platform-posix.cc'
712 ],
713 }
714 ],
715 ['OS=="openbsd"', {
716 'link_settings': {
717 'libraries': [
718 '-L/usr/local/lib -lexecinfo',
719 ]},
720 'sources': [
721 '../../src/platform-openbsd.cc',
722 '../../src/platform-posix.cc'
723 ],
724 }
725 ],
726 ['OS=="mac"', {
727 'sources': [
728 '../../src/platform-macos.cc',
729 '../../src/platform-posix.cc'
730 ]},
731 ],
732 ['OS=="win"', {
733 'sources': [
734 '../../src/platform-win32.cc',
735 ],
736 # 4355, 4800 came from common.vsprops
737 'msvs_disabled_warnings': [4355, 4800],
738 'link_settings': {
739 'libraries': [ '-lwinmm.lib' ],
740 },
741 }],
742 ['OS=="win" and component=="shared_library"', {
743 'defines': [
744 'BUILDING_V8_SHARED'
745 ],
746 }],
747 ],
748 },
749 {
750 'target_name': 'js2c',
751 'type': 'none',
752 'toolsets': ['host'],
753 'variables': {
754 'library_files': [
755 '../../src/runtime.js',
756 '../../src/v8natives.js',
757 '../../src/array.js',
758 '../../src/string.js',
759 '../../src/uri.js',
760 '../../src/math.js',
761 '../../src/messages.js',
762 '../../src/apinatives.js',
763 '../../src/debug-debugger.js',
764 '../../src/mirror-debugger.js',
765 '../../src/liveedit-debugger.js',
766 '../../src/date.js',
767 '../../src/json.js',
768 '../../src/regexp.js',
769 '../../src/macros.py',
770 ],
771 },
772 'actions': [
773 {
774 'action_name': 'js2c',
775 'inputs': [
776 '../../tools/js2c.py',
777 '<@(library_files)',
778 ],
779 'outputs': [
780 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
781 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc',
782 ],
783 'action': [
784 'python',
785 '../../tools/js2c.py',
786 '<@(_outputs)',
787 'CORE',
788 '<@(library_files)'
789 ],
790 },
791 ],
792 },
793 {
794 'target_name': 'mksnapshot',
795 'type': 'executable',
796 'toolsets': ['host'],
797 'dependencies': [
798 'v8_nosnapshot',
799 ],
800 'include_dirs+': [
801 '../../src',
802 ],
803 'sources': [
804 '../../src/mksnapshot.cc',
805 ],
806 'conditions': [
807 # The ARM assembler assumes the host is 32 bits, so force building
808 # 32-bit host tools.
809 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
597 'cflags': ['-m32'], 810 'cflags': ['-m32'],
598 'ldflags': ['-m32'], 811 'ldflags': ['-m32'],
599 }] 812 }]
600 ] 813 ]
601 }], 814 },
602 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { 815 {
603 'include_dirs+': [ 816 'target_name': 'v8_shell',
604 '../../src/ia32', 817 'type': 'executable',
818 'dependencies': [
819 'v8'
605 ], 820 ],
606 'sources': [ 821 'sources': [
607 '../../src/jump-target-heavy.h', 822 '../../samples/shell.cc',
608 '../../src/jump-target-heavy-inl.h', 823 ],
609 '../../src/jump-target-heavy.cc', 824 'conditions': [
610 '../../src/virtual-frame-heavy-inl.h', 825 ['OS=="win"', {
611 '../../src/virtual-frame-heavy.cc', 826 # This could be gotten by not setting chromium_code, if that's OK.
612 '../../src/ia32/assembler-ia32-inl.h', 827 'defines': ['_CRT_SECURE_NO_WARNINGS'],
613 '../../src/ia32/assembler-ia32.cc', 828 }],
614 '../../src/ia32/assembler-ia32.h', 829 ],
615 '../../src/ia32/builtins-ia32.cc', 830 },
616 '../../src/ia32/code-stubs-ia32.cc', 831 ],
617 '../../src/ia32/code-stubs-ia32.h', 832 }, { # use_system_v8 != 0
618 '../../src/ia32/codegen-ia32.cc', 833 'targets': [
619 '../../src/ia32/codegen-ia32.h', 834 {
620 '../../src/ia32/cpu-ia32.cc', 835 'target_name': 'v8',
621 '../../src/ia32/debug-ia32.cc', 836 'type': 'settings',
622 '../../src/ia32/deoptimizer-ia32.cc', 837 'link_settings': {
623 '../../src/ia32/disasm-ia32.cc', 838 'libraries': [
624 '../../src/ia32/frames-ia32.cc', 839 '-lv8',
625 '../../src/ia32/frames-ia32.h', 840 ],
626 '../../src/ia32/full-codegen-ia32.cc',
627 '../../src/ia32/ic-ia32.cc',
628 '../../src/ia32/jump-target-ia32.cc',
629 '../../src/ia32/lithium-codegen-ia32.cc',
630 '../../src/ia32/lithium-codegen-ia32.h',
631 '../../src/ia32/lithium-ia32.cc',
632 '../../src/ia32/lithium-ia32.h',
633 '../../src/ia32/macro-assembler-ia32.cc',
634 '../../src/ia32/macro-assembler-ia32.h',
635 '../../src/ia32/regexp-macro-assembler-ia32.cc',
636 '../../src/ia32/regexp-macro-assembler-ia32.h',
637 '../../src/ia32/register-allocator-ia32.cc',
638 '../../src/ia32/stub-cache-ia32.cc',
639 '../../src/ia32/virtual-frame-ia32.cc',
640 '../../src/ia32/virtual-frame-ia32.h',
641 ],
642 }],
643 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', {
644 'include_dirs+': [
645 '../../src/x64',
646 ],
647 'sources': [
648 '../../src/jump-target-heavy.h',
649 '../../src/jump-target-heavy-inl.h',
650 '../../src/jump-target-heavy.cc',
651 '../../src/virtual-frame-heavy-inl.h',
652 '../../src/virtual-frame-heavy.cc',
653 '../../src/x64/assembler-x64-inl.h',
654 '../../src/x64/assembler-x64.cc',
655 '../../src/x64/assembler-x64.h',
656 '../../src/x64/builtins-x64.cc',
657 '../../src/x64/code-stubs-x64.cc',
658 '../../src/x64/code-stubs-x64.h',
659 '../../src/x64/codegen-x64.cc',
660 '../../src/x64/codegen-x64.h',
661 '../../src/x64/cpu-x64.cc',
662 '../../src/x64/debug-x64.cc',
663 '../../src/x64/deoptimizer-x64.cc',
664 '../../src/x64/disasm-x64.cc',
665 '../../src/x64/frames-x64.cc',
666 '../../src/x64/frames-x64.h',
667 '../../src/x64/full-codegen-x64.cc',
668 '../../src/x64/ic-x64.cc',
669 '../../src/x64/jump-target-x64.cc',
670 '../../src/x64/macro-assembler-x64.cc',
671 '../../src/x64/macro-assembler-x64.h',
672 '../../src/x64/regexp-macro-assembler-x64.cc',
673 '../../src/x64/regexp-macro-assembler-x64.h',
674 '../../src/x64/register-allocator-x64.cc',
675 '../../src/x64/stub-cache-x64.cc',
676 '../../src/x64/virtual-frame-x64.cc',
677 '../../src/x64/virtual-frame-x64.h',
678 ],
679 }],
680 ['OS=="linux"', {
681 'link_settings': {
682 'libraries': [
683 # Needed for clock_gettime() used by src/platform-linux.cc.
684 '-lrt',
685 ]},
686 'sources': [
687 '../../src/platform-linux.cc',
688 '../../src/platform-posix.cc'
689 ],
690 }
691 ],
692 ['OS=="freebsd"', {
693 'link_settings': {
694 'libraries': [
695 '-L/usr/local/lib -lexecinfo',
696 ]},
697 'sources': [
698 '../../src/platform-freebsd.cc',
699 '../../src/platform-posix.cc'
700 ],
701 }
702 ],
703 ['OS=="openbsd"', {
704 'link_settings': {
705 'libraries': [
706 '-L/usr/local/lib -lexecinfo',
707 ]},
708 'sources': [
709 '../../src/platform-openbsd.cc',
710 '../../src/platform-posix.cc'
711 ],
712 }
713 ],
714 ['OS=="mac"', {
715 'sources': [
716 '../../src/platform-macos.cc',
717 '../../src/platform-posix.cc'
718 ]},
719 ],
720 ['OS=="win"', {
721 'sources': [
722 '../../src/platform-win32.cc',
723 ],
724 # 4355, 4800 came from common.vsprops
725 'msvs_disabled_warnings': [4355, 4800],
726 'link_settings': {
727 'libraries': [ '-lwinmm.lib' ],
728 }, 841 },
729 }], 842 },
730 ['OS=="win" and component=="shared_library"', { 843 {
731 'defines': [ 844 'target_name': 'v8_shell',
732 'BUILDING_V8_SHARED' 845 'type': 'none',
733 ], 846 'dependencies': [
734 }], 847 'v8'
848 ],
849 },
735 ], 850 ],
736 }, 851 }],
737 {
738 'target_name': 'js2c',
739 'type': 'none',
740 'toolsets': ['host'],
741 'variables': {
742 'library_files': [
743 '../../src/runtime.js',
744 '../../src/v8natives.js',
745 '../../src/array.js',
746 '../../src/string.js',
747 '../../src/uri.js',
748 '../../src/math.js',
749 '../../src/messages.js',
750 '../../src/apinatives.js',
751 '../../src/debug-debugger.js',
752 '../../src/mirror-debugger.js',
753 '../../src/liveedit-debugger.js',
754 '../../src/date.js',
755 '../../src/json.js',
756 '../../src/regexp.js',
757 '../../src/macros.py',
758 ],
759 },
760 'actions': [
761 {
762 'action_name': 'js2c',
763 'inputs': [
764 '../../tools/js2c.py',
765 '<@(library_files)',
766 ],
767 'outputs': [
768 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
769 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc',
770 ],
771 'action': [
772 'python',
773 '../../tools/js2c.py',
774 '<@(_outputs)',
775 'CORE',
776 '<@(library_files)'
777 ],
778 },
779 ],
780 },
781 {
782 'target_name': 'mksnapshot',
783 'type': 'executable',
784 'toolsets': ['host'],
785 'dependencies': [
786 'v8_nosnapshot',
787 ],
788 'include_dirs+': [
789 '../../src',
790 ],
791 'sources': [
792 '../../src/mksnapshot.cc',
793 ],
794 'conditions': [
795 # The ARM assembler assumes the host is 32 bits, so force building
796 # 32-bit host tools.
797 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
798 'cflags': ['-m32'],
799 'ldflags': ['-m32'],
800 }]
801 ]
802 },
803 {
804 'target_name': 'v8_shell',
805 'type': 'executable',
806 'dependencies': [
807 'v8'
808 ],
809 'sources': [
810 '../../samples/shell.cc',
811 ],
812 'conditions': [
813 ['OS=="win"', {
814 # This could be gotten by not setting chromium_code, if that's OK.
815 'defines': ['_CRT_SECURE_NO_WARNINGS'],
816 }],
817 ],
818 },
819 ], 852 ],
820 } 853 }
OLDNEW
« no previous file with comments | « test/mozilla/mozilla.status ('k') | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698