blob: acf510019759fed639ea3b73001a04f15c0ea015 [file] [log] [blame]
Steve Blocka7e24c12009-10-30 11:49:00 +00001# Copyright 2009 the V8 project authors. All rights reserved.
2# Redistribution and use in source and binary forms, with or without
3# modification, are permitted provided that the following conditions are
4# met:
5#
6# * Redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer.
8# * Redistributions in binary form must reproduce the above
9# copyright notice, this list of conditions and the following
10# disclaimer in the documentation and/or other materials provided
11# with the distribution.
12# * Neither the name of Google Inc. nor the names of its
13# contributors may be used to endorse or promote products derived
14# from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28{
29 'variables': {
30 'chromium_code': 1,
31 'msvs_use_common_release': 0,
32 'gcc_version%': 'unknown',
33 'target_arch%': 'ia32',
34 'v8_use_snapshot%': 'true',
35 'v8_regexp%': 'native',
36 },
37 'target_defaults': {
38 'defines': [
39 'ENABLE_LOGGING_AND_PROFILING',
40 'ENABLE_DEBUGGER_SUPPORT',
41 ],
42 'conditions': [
43 ['target_arch=="arm"', {
44 'defines': [
45 'V8_TARGET_ARCH_ARM',
46 ],
47 }],
48 ['target_arch=="ia32"', {
49 'defines': [
50 'V8_TARGET_ARCH_IA32',
51 'V8_NATIVE_REGEXP',
52 ],
53 }],
54 ['target_arch=="x64"', {
55 'defines': [
56 'V8_TARGET_ARCH_X64',
57 'V8_NATIVE_REGEXP',
58 ],
59 }],
60 ],
61 'configurations': {
62 'Debug': {
63 'defines': [
64 'DEBUG',
65 '_DEBUG',
66 'ENABLE_DISASSEMBLER',
67 'V8_ENABLE_CHECKS'
68 ],
69 'msvs_settings': {
70 'VCCLCompilerTool': {
71 'Optimizations': '0',
72 'RuntimeLibrary': '1',
73 },
74 'VCLinkerTool': {
75 'LinkIncremental': '2',
76 },
77 },
78 },
79 'Release': {
80 'conditions': [
81 ['OS=="linux"', {
82 'cflags!': [
83 '-O2',
Steve Blockd0582a62009-12-15 09:54:21 +000084 '-Os',
Steve Blocka7e24c12009-10-30 11:49:00 +000085 ],
86 'cflags': [
87 '-fomit-frame-pointer',
88 '-O3',
89 ],
90 'conditions': [
91 [ 'gcc_version==44', {
92 'cflags': [
93 # Avoid gcc 4.4 strict aliasing issues in dtoa.c
94 '-fno-strict-aliasing',
95 # Avoid crashes with gcc 4.4 in the v8 test suite.
96 '-fno-tree-vrp',
97 ],
98 }],
99 ],
100 }],
101 ['OS=="mac"', {
102 'xcode_settings': {
103 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
104 'GCC_STRICT_ALIASING': 'YES', # -fstrict-aliasing. Mainline gcc
105 # enables this at -O2 and above,
106 # but Apple gcc does not unless it
107 # is specified explicitly.
108 },
109 }],
110 ['OS=="win"', {
111 'msvs_configuration_attributes': {
112 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
113 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
114 'CharacterSet': '1',
115 },
116 'msvs_settings': {
117 'VCCLCompilerTool': {
118 'RuntimeLibrary': '0',
119 'Optimizations': '2',
120 'InlineFunctionExpansion': '2',
121 'EnableIntrinsicFunctions': 'true',
122 'FavorSizeOrSpeed': '0',
123 'OmitFramePointers': 'true',
124 'StringPooling': 'true',
125 },
126 'VCLinkerTool': {
127 'LinkIncremental': '1',
128 'OptimizeReferences': '2',
129 'OptimizeForWindows98': '1',
130 'EnableCOMDATFolding': '2',
131 },
132 },
133 }],
134 ],
135 },
136 },
137 },
138 'targets': [
139 {
140 'target_name': 'v8',
141 'type': 'none',
142 'conditions': [
143 ['v8_use_snapshot=="true"', {
144 'dependencies': ['v8_snapshot'],
145 },
146 {
147 'dependencies': ['v8_nosnapshot'],
148 }],
149 ],
150 'direct_dependent_settings': {
151 'include_dirs': [
152 '../../include',
153 ],
154 },
155 },
156 {
157 'target_name': 'v8_snapshot',
158 'type': '<(library)',
159 'dependencies': [
Steve Blockd0582a62009-12-15 09:54:21 +0000160 'mksnapshot#host',
161 'js2c#host',
Steve Blocka7e24c12009-10-30 11:49:00 +0000162 'v8_base',
163 ],
164 'include_dirs+': [
165 '../../src',
166 ],
167 'sources': [
168 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc',
169 '<(INTERMEDIATE_DIR)/snapshot.cc',
170 ],
171 'actions': [
172 {
173 'action_name': 'run_mksnapshot',
174 'inputs': [
175 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
176 ],
177 'outputs': [
178 '<(INTERMEDIATE_DIR)/snapshot.cc',
179 ],
180 'action': ['<@(_inputs)', '<@(_outputs)'],
181 },
182 ],
183 },
184 {
185 'target_name': 'v8_nosnapshot',
186 'type': '<(library)',
Steve Blockd0582a62009-12-15 09:54:21 +0000187 'toolsets': ['host', 'target'],
Steve Blocka7e24c12009-10-30 11:49:00 +0000188 'dependencies': [
Steve Blockd0582a62009-12-15 09:54:21 +0000189 'js2c#host',
Steve Blocka7e24c12009-10-30 11:49:00 +0000190 'v8_base',
191 ],
192 'include_dirs+': [
193 '../../src',
194 ],
195 'sources': [
196 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
197 '../../src/snapshot-empty.cc',
198 ],
Steve Blockd0582a62009-12-15 09:54:21 +0000199 'conditions': [
200 # The ARM assembler assumes the host is 32 bits, so force building
201 # 32-bit host tools.
Leon Clarkee46be812010-01-19 14:06:41 +0000202 ['target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
Steve Blockd0582a62009-12-15 09:54:21 +0000203 'cflags': ['-m32'],
204 'ldflags': ['-m32'],
205 }]
206 ]
Steve Blocka7e24c12009-10-30 11:49:00 +0000207 },
208 {
209 'target_name': 'v8_base',
210 'type': '<(library)',
Steve Blockd0582a62009-12-15 09:54:21 +0000211 'toolsets': ['host', 'target'],
Steve Blocka7e24c12009-10-30 11:49:00 +0000212 'include_dirs+': [
213 '../../src',
214 ],
215 'sources': [
216 '../../src/accessors.cc',
217 '../../src/accessors.h',
218 '../../src/allocation.cc',
219 '../../src/allocation.h',
220 '../../src/api.cc',
221 '../../src/api.h',
222 '../../src/apiutils.h',
223 '../../src/arguments.h',
224 '../../src/assembler.cc',
225 '../../src/assembler.h',
226 '../../src/ast.cc',
227 '../../src/ast.h',
228 '../../src/bootstrapper.cc',
229 '../../src/bootstrapper.h',
230 '../../src/builtins.cc',
231 '../../src/builtins.h',
232 '../../src/bytecodes-irregexp.h',
233 '../../src/char-predicates-inl.h',
234 '../../src/char-predicates.h',
235 '../../src/checks.cc',
236 '../../src/checks.h',
237 '../../src/code-stubs.cc',
238 '../../src/code-stubs.h',
239 '../../src/code.h',
240 '../../src/codegen-inl.h',
241 '../../src/codegen.cc',
242 '../../src/codegen.h',
243 '../../src/compilation-cache.cc',
244 '../../src/compilation-cache.h',
245 '../../src/compiler.cc',
246 '../../src/compiler.h',
247 '../../src/contexts.cc',
248 '../../src/contexts.h',
249 '../../src/conversions-inl.h',
250 '../../src/conversions.cc',
251 '../../src/conversions.h',
252 '../../src/counters.cc',
253 '../../src/counters.h',
254 '../../src/cpu.h',
255 '../../src/dateparser.cc',
256 '../../src/dateparser.h',
257 '../../src/dateparser-inl.h',
258 '../../src/debug.cc',
259 '../../src/debug.h',
260 '../../src/debug-agent.cc',
261 '../../src/debug-agent.h',
262 '../../src/disasm.h',
263 '../../src/disassembler.cc',
264 '../../src/disassembler.h',
265 '../../src/dtoa-config.c',
266 '../../src/execution.cc',
267 '../../src/execution.h',
268 '../../src/factory.cc',
269 '../../src/factory.h',
Leon Clarkeeab96aa2010-01-27 16:31:12 +0000270 '../../src/fast-codegen.cc',
271 '../../src/fast-codegen.h',
Steve Blocka7e24c12009-10-30 11:49:00 +0000272 '../../src/flag-definitions.h',
273 '../../src/flags.cc',
274 '../../src/flags.h',
Steve Block3ce2e202009-11-05 08:53:23 +0000275 '../../src/frame-element.cc',
276 '../../src/frame-element.h',
Steve Blocka7e24c12009-10-30 11:49:00 +0000277 '../../src/frames-inl.h',
278 '../../src/frames.cc',
279 '../../src/frames.h',
Leon Clarked91b9f72010-01-27 17:25:45 +0000280 '../../src/full-codegen.cc',
281 '../../src/full-codegen.h',
Steve Blocka7e24c12009-10-30 11:49:00 +0000282 '../../src/func-name-inferrer.cc',
283 '../../src/func-name-inferrer.h',
284 '../../src/global-handles.cc',
285 '../../src/global-handles.h',
286 '../../src/globals.h',
287 '../../src/handles-inl.h',
288 '../../src/handles.cc',
289 '../../src/handles.h',
290 '../../src/hashmap.cc',
291 '../../src/hashmap.h',
292 '../../src/heap-inl.h',
293 '../../src/heap.cc',
294 '../../src/heap.h',
295 '../../src/heap-profiler.cc',
296 '../../src/heap-profiler.h',
297 '../../src/ic-inl.h',
298 '../../src/ic.cc',
299 '../../src/ic.h',
300 '../../src/interpreter-irregexp.cc',
301 '../../src/interpreter-irregexp.h',
302 '../../src/jump-target.cc',
303 '../../src/jump-target.h',
304 '../../src/jump-target-inl.h',
305 '../../src/jsregexp.cc',
306 '../../src/jsregexp.h',
307 '../../src/list-inl.h',
308 '../../src/list.h',
Steve Blocka7e24c12009-10-30 11:49:00 +0000309 '../../src/log-inl.h',
Steve Blocka7e24c12009-10-30 11:49:00 +0000310 '../../src/log-utils.cc',
311 '../../src/log-utils.h',
Steve Block3ce2e202009-11-05 08:53:23 +0000312 '../../src/log.cc',
313 '../../src/log.h',
Steve Blocka7e24c12009-10-30 11:49:00 +0000314 '../../src/macro-assembler.h',
315 '../../src/mark-compact.cc',
316 '../../src/mark-compact.h',
317 '../../src/memory.h',
318 '../../src/messages.cc',
319 '../../src/messages.h',
320 '../../src/natives.h',
321 '../../src/objects-debug.cc',
322 '../../src/objects-inl.h',
323 '../../src/objects.cc',
324 '../../src/objects.h',
325 '../../src/oprofile-agent.h',
326 '../../src/oprofile-agent.cc',
327 '../../src/parser.cc',
328 '../../src/parser.h',
329 '../../src/platform.h',
330 '../../src/prettyprinter.cc',
331 '../../src/prettyprinter.h',
332 '../../src/property.cc',
333 '../../src/property.h',
334 '../../src/regexp-macro-assembler-irregexp-inl.h',
335 '../../src/regexp-macro-assembler-irregexp.cc',
336 '../../src/regexp-macro-assembler-irregexp.h',
337 '../../src/regexp-macro-assembler-tracer.cc',
338 '../../src/regexp-macro-assembler-tracer.h',
339 '../../src/regexp-macro-assembler.cc',
340 '../../src/regexp-macro-assembler.h',
341 '../../src/regexp-stack.cc',
342 '../../src/regexp-stack.h',
343 '../../src/register-allocator.h',
344 '../../src/register-allocator-inl.h',
345 '../../src/register-allocator.cc',
346 '../../src/rewriter.cc',
347 '../../src/rewriter.h',
348 '../../src/runtime.cc',
349 '../../src/runtime.h',
350 '../../src/scanner.cc',
351 '../../src/scanner.h',
352 '../../src/scopeinfo.cc',
353 '../../src/scopeinfo.h',
354 '../../src/scopes.cc',
355 '../../src/scopes.h',
356 '../../src/serialize.cc',
357 '../../src/serialize.h',
358 '../../src/shell.h',
359 '../../src/smart-pointer.h',
360 '../../src/snapshot-common.cc',
361 '../../src/snapshot.h',
362 '../../src/spaces-inl.h',
363 '../../src/spaces.cc',
364 '../../src/spaces.h',
365 '../../src/string-stream.cc',
366 '../../src/string-stream.h',
367 '../../src/stub-cache.cc',
368 '../../src/stub-cache.h',
369 '../../src/token.cc',
370 '../../src/token.h',
371 '../../src/top.cc',
372 '../../src/top.h',
373 '../../src/unicode-inl.h',
374 '../../src/unicode.cc',
375 '../../src/unicode.h',
376 '../../src/usage-analyzer.cc',
377 '../../src/usage-analyzer.h',
378 '../../src/utils.cc',
379 '../../src/utils.h',
380 '../../src/v8-counters.cc',
381 '../../src/v8-counters.h',
382 '../../src/v8.cc',
383 '../../src/v8.h',
384 '../../src/v8threads.cc',
385 '../../src/v8threads.h',
386 '../../src/variables.cc',
387 '../../src/variables.h',
388 '../../src/version.cc',
389 '../../src/version.h',
390 '../../src/virtual-frame.h',
391 '../../src/virtual-frame.cc',
392 '../../src/zone-inl.h',
393 '../../src/zone.cc',
394 '../../src/zone.h',
395 ],
396 'conditions': [
397 ['target_arch=="arm"', {
398 'include_dirs+': [
399 '../../src/arm',
400 ],
401 'sources': [
402 '../../src/arm/assembler-arm-inl.h',
403 '../../src/arm/assembler-arm.cc',
404 '../../src/arm/assembler-arm.h',
405 '../../src/arm/builtins-arm.cc',
406 '../../src/arm/codegen-arm.cc',
407 '../../src/arm/codegen-arm.h',
408 '../../src/arm/constants-arm.h',
Steve Blockd0582a62009-12-15 09:54:21 +0000409 '../../src/arm/constants-arm.cc',
Steve Blocka7e24c12009-10-30 11:49:00 +0000410 '../../src/arm/cpu-arm.cc',
411 '../../src/arm/debug-arm.cc',
412 '../../src/arm/disasm-arm.cc',
413 '../../src/arm/frames-arm.cc',
414 '../../src/arm/frames-arm.h',
Leon Clarked91b9f72010-01-27 17:25:45 +0000415 '../../src/arm/full-codegen-arm.cc',
Steve Blocka7e24c12009-10-30 11:49:00 +0000416 '../../src/arm/ic-arm.cc',
417 '../../src/arm/jump-target-arm.cc',
418 '../../src/arm/macro-assembler-arm.cc',
419 '../../src/arm/macro-assembler-arm.h',
420 '../../src/arm/regexp-macro-assembler-arm.cc',
421 '../../src/arm/regexp-macro-assembler-arm.h',
422 '../../src/arm/register-allocator-arm.cc',
423 '../../src/arm/simulator-arm.cc',
424 '../../src/arm/stub-cache-arm.cc',
425 '../../src/arm/virtual-frame-arm.cc',
426 '../../src/arm/virtual-frame-arm.h',
427 ],
Steve Blockd0582a62009-12-15 09:54:21 +0000428 'conditions': [
429 # The ARM assembler assumes the host is 32 bits, so force building
430 # 32-bit host tools.
Leon Clarkee46be812010-01-19 14:06:41 +0000431 ['host_arch=="x64" and _toolset=="host"', {
Steve Blockd0582a62009-12-15 09:54:21 +0000432 'cflags': ['-m32'],
433 'ldflags': ['-m32'],
434 }]
435 ]
Steve Blocka7e24c12009-10-30 11:49:00 +0000436 }],
437 ['target_arch=="ia32"', {
438 'include_dirs+': [
439 '../../src/ia32',
440 ],
441 'sources': [
442 '../../src/ia32/assembler-ia32-inl.h',
443 '../../src/ia32/assembler-ia32.cc',
444 '../../src/ia32/assembler-ia32.h',
445 '../../src/ia32/builtins-ia32.cc',
446 '../../src/ia32/codegen-ia32.cc',
447 '../../src/ia32/codegen-ia32.h',
448 '../../src/ia32/cpu-ia32.cc',
449 '../../src/ia32/debug-ia32.cc',
450 '../../src/ia32/disasm-ia32.cc',
451 '../../src/ia32/frames-ia32.cc',
452 '../../src/ia32/frames-ia32.h',
Leon Clarked91b9f72010-01-27 17:25:45 +0000453 '../../src/ia32/full-codegen-ia32.cc',
Steve Blocka7e24c12009-10-30 11:49:00 +0000454 '../../src/ia32/ic-ia32.cc',
455 '../../src/ia32/jump-target-ia32.cc',
456 '../../src/ia32/macro-assembler-ia32.cc',
457 '../../src/ia32/macro-assembler-ia32.h',
458 '../../src/ia32/regexp-macro-assembler-ia32.cc',
459 '../../src/ia32/regexp-macro-assembler-ia32.h',
460 '../../src/ia32/register-allocator-ia32.cc',
461 '../../src/ia32/stub-cache-ia32.cc',
462 '../../src/ia32/virtual-frame-ia32.cc',
463 '../../src/ia32/virtual-frame-ia32.h',
464 ],
465 }],
466 ['target_arch=="x64"', {
467 'include_dirs+': [
468 '../../src/x64',
469 ],
470 'sources': [
471 '../../src/x64/assembler-x64-inl.h',
472 '../../src/x64/assembler-x64.cc',
473 '../../src/x64/assembler-x64.h',
474 '../../src/x64/builtins-x64.cc',
475 '../../src/x64/codegen-x64.cc',
476 '../../src/x64/codegen-x64.h',
477 '../../src/x64/cpu-x64.cc',
478 '../../src/x64/debug-x64.cc',
479 '../../src/x64/disasm-x64.cc',
Steve Blocka7e24c12009-10-30 11:49:00 +0000480 '../../src/x64/frames-x64.cc',
481 '../../src/x64/frames-x64.h',
Leon Clarked91b9f72010-01-27 17:25:45 +0000482 '../../src/x64/full-codegen-x64.cc',
Steve Blocka7e24c12009-10-30 11:49:00 +0000483 '../../src/x64/ic-x64.cc',
484 '../../src/x64/jump-target-x64.cc',
485 '../../src/x64/macro-assembler-x64.cc',
486 '../../src/x64/macro-assembler-x64.h',
487 '../../src/x64/regexp-macro-assembler-x64.cc',
488 '../../src/x64/regexp-macro-assembler-x64.h',
489 '../../src/x64/register-allocator-x64.cc',
490 '../../src/x64/stub-cache-x64.cc',
491 '../../src/x64/virtual-frame-x64.cc',
492 '../../src/x64/virtual-frame-x64.h',
493 ],
494 }],
495 ['OS=="linux"', {
496 'link_settings': {
497 'libraries': [
498 # Needed for clock_gettime() used by src/platform-linux.cc.
499 '-lrt',
500 ]},
501 'sources': [
502 '../../src/platform-linux.cc',
503 '../../src/platform-posix.cc'
504 ],
505 }
506 ],
Steve Blockd0582a62009-12-15 09:54:21 +0000507 ['OS=="openbsd"', {
508 'link_settings': {
509 'libraries': [
510 '-L/usr/local/lib -lexecinfo',
511 ]},
512 'sources': [
513 '../../src/platform-openbsd.cc',
514 '../../src/platform-posix.cc'
515 ],
516 }
517 ],
Steve Blocka7e24c12009-10-30 11:49:00 +0000518 ['OS=="mac"', {
519 'sources': [
520 '../../src/platform-macos.cc',
521 '../../src/platform-posix.cc'
522 ]},
523 ],
524 ['OS=="win"', {
525 'sources': [
526 '../../src/platform-win32.cc',
527 ],
528 # 4355, 4800 came from common.vsprops
529 # 4018, 4244 were a per file config on dtoa-config.c
530 # TODO: It's probably possible and desirable to stop disabling the
531 # dtoa-specific warnings by modifying dtoa as was done in Chromium
532 # r9255. Refer to that revision for details.
533 'msvs_disabled_warnings': [4355, 4800, 4018, 4244],
534 'link_settings': {
535 'libraries': [ '-lwinmm.lib' ],
536 },
537 }],
538 ],
539 },
540 {
541 'target_name': 'js2c',
542 'type': 'none',
Steve Blockd0582a62009-12-15 09:54:21 +0000543 'toolsets': ['host'],
Steve Blocka7e24c12009-10-30 11:49:00 +0000544 'variables': {
545 'library_files': [
546 '../../src/runtime.js',
547 '../../src/v8natives.js',
548 '../../src/array.js',
549 '../../src/string.js',
550 '../../src/uri.js',
551 '../../src/math.js',
552 '../../src/messages.js',
553 '../../src/apinatives.js',
554 '../../src/debug-delay.js',
555 '../../src/mirror-delay.js',
556 '../../src/date-delay.js',
557 '../../src/json-delay.js',
558 '../../src/regexp-delay.js',
559 '../../src/macros.py',
560 ],
561 },
562 'actions': [
563 {
564 'action_name': 'js2c',
565 'inputs': [
566 '../../tools/js2c.py',
567 '<@(library_files)',
568 ],
569 'outputs': [
570 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
571 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc',
572 ],
573 'action': [
574 'python',
575 '../../tools/js2c.py',
576 '<@(_outputs)',
577 'CORE',
578 '<@(library_files)'
579 ],
580 },
581 ],
582 },
583 {
584 'target_name': 'mksnapshot',
585 'type': 'executable',
Steve Blockd0582a62009-12-15 09:54:21 +0000586 'toolsets': ['host'],
Steve Blocka7e24c12009-10-30 11:49:00 +0000587 'dependencies': [
588 'v8_nosnapshot',
589 ],
590 'include_dirs+': [
591 '../../src',
592 ],
593 'sources': [
594 '../../src/mksnapshot.cc',
595 ],
Steve Blockd0582a62009-12-15 09:54:21 +0000596 'conditions': [
597 # The ARM assembler assumes the host is 32 bits, so force building
598 # 32-bit host tools.
Leon Clarkee46be812010-01-19 14:06:41 +0000599 ['target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
Steve Blockd0582a62009-12-15 09:54:21 +0000600 'cflags': ['-m32'],
601 'ldflags': ['-m32'],
602 }]
603 ]
Steve Blocka7e24c12009-10-30 11:49:00 +0000604 },
605 {
606 'target_name': 'v8_shell',
607 'type': 'executable',
608 'dependencies': [
609 'v8'
610 ],
611 'sources': [
612 '../../samples/shell.cc',
613 ],
614 'conditions': [
615 [ 'OS=="win"', {
616 # This could be gotten by not setting chromium_code, if that's OK.
617 'defines': ['_CRT_SECURE_NO_WARNINGS'],
618 }],
619 ],
620 },
621 ],
622}