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

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

Issue 2133003: Allow build-time selection between ia32 and x86_64 in the GYP/Xcode Mac Chromium build (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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 | « src/x64/virtual-frame-x64.cc ('k') | no next file » | 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 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
(...skipping 21 matching lines...) Expand all
32 'v8_target_arch%': '<(target_arch)', 32 'v8_target_arch%': '<(target_arch)',
33 'v8_use_snapshot%': 'true', 33 'v8_use_snapshot%': 'true',
34 }, 34 },
35 'target_defaults': { 35 'target_defaults': {
36 'defines': [ 36 'defines': [
37 'ENABLE_LOGGING_AND_PROFILING', 37 'ENABLE_LOGGING_AND_PROFILING',
38 'ENABLE_DEBUGGER_SUPPORT', 38 'ENABLE_DEBUGGER_SUPPORT',
39 'ENABLE_VMSTATE_TRACKING', 39 'ENABLE_VMSTATE_TRACKING',
40 ], 40 ],
41 'conditions': [ 41 'conditions': [
42 ['v8_target_arch=="arm"', { 42 ['OS!="mac"', {
43 'defines': [ 43 # TODO(mark): The OS!="mac" conditional is temporary. It can be
44 'V8_TARGET_ARCH_ARM', 44 # removed once the Mac Chromium build stops setting target_arch to
45 ], 45 # ia32 and instead sets it to mac. Other checks in this file for
46 }], 46 # OS=="mac" can be removed at that time as well. This can be cleaned
47 ['v8_target_arch=="ia32"', { 47 # up once http://crbug.com/44205 is fixed.
48 'defines': [ 48 'conditions': [
49 'V8_TARGET_ARCH_IA32', 49 ['v8_target_arch=="arm"', {
50 ], 50 'defines': [
51 }], 51 'V8_TARGET_ARCH_ARM',
52 ['v8_target_arch=="x64"', { 52 ],
53 'defines': [ 53 }],
54 'V8_TARGET_ARCH_X64', 54 ['v8_target_arch=="ia32"', {
55 'defines': [
56 'V8_TARGET_ARCH_IA32',
57 ],
58 }],
59 ['v8_target_arch=="x64"', {
60 'defines': [
61 'V8_TARGET_ARCH_X64',
62 ],
63 }],
55 ], 64 ],
56 }], 65 }],
57 ], 66 ],
58 'configurations': { 67 'configurations': {
59 'Debug': { 68 'Debug': {
60 'defines': [ 69 'defines': [
61 'DEBUG', 70 'DEBUG',
62 '_DEBUG', 71 '_DEBUG',
63 'ENABLE_DISASSEMBLER', 72 'ENABLE_DISASSEMBLER',
64 'V8_ENABLE_CHECKS' 73 'V8_ENABLE_CHECKS'
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 ], 479 ],
471 'conditions': [ 480 'conditions': [
472 # The ARM assembler assumes the host is 32 bits, so force building 481 # The ARM assembler assumes the host is 32 bits, so force building
473 # 32-bit host tools. 482 # 32-bit host tools.
474 ['host_arch=="x64" and _toolset=="host"', { 483 ['host_arch=="x64" and _toolset=="host"', {
475 'cflags': ['-m32'], 484 'cflags': ['-m32'],
476 'ldflags': ['-m32'], 485 'ldflags': ['-m32'],
477 }] 486 }]
478 ] 487 ]
479 }], 488 }],
480 ['v8_target_arch=="ia32"', { 489 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', {
481 'include_dirs+': [ 490 'include_dirs+': [
482 '../../src/ia32', 491 '../../src/ia32',
483 ], 492 ],
484 'sources': [ 493 'sources': [
485 '../../src/jump-target-heavy.h', 494 '../../src/jump-target-heavy.h',
486 '../../src/jump-target-heavy-inl.h', 495 '../../src/jump-target-heavy-inl.h',
487 '../../src/jump-target-heavy.cc', 496 '../../src/jump-target-heavy.cc',
488 '../../src/virtual-frame-heavy-inl.h', 497 '../../src/virtual-frame-heavy-inl.h',
489 '../../src/virtual-frame-heavy.cc', 498 '../../src/virtual-frame-heavy.cc',
490 '../../src/ia32/assembler-ia32-inl.h', 499 '../../src/ia32/assembler-ia32-inl.h',
(...skipping 15 matching lines...) Expand all
506 '../../src/ia32/macro-assembler-ia32.cc', 515 '../../src/ia32/macro-assembler-ia32.cc',
507 '../../src/ia32/macro-assembler-ia32.h', 516 '../../src/ia32/macro-assembler-ia32.h',
508 '../../src/ia32/regexp-macro-assembler-ia32.cc', 517 '../../src/ia32/regexp-macro-assembler-ia32.cc',
509 '../../src/ia32/regexp-macro-assembler-ia32.h', 518 '../../src/ia32/regexp-macro-assembler-ia32.h',
510 '../../src/ia32/register-allocator-ia32.cc', 519 '../../src/ia32/register-allocator-ia32.cc',
511 '../../src/ia32/stub-cache-ia32.cc', 520 '../../src/ia32/stub-cache-ia32.cc',
512 '../../src/ia32/virtual-frame-ia32.cc', 521 '../../src/ia32/virtual-frame-ia32.cc',
513 '../../src/ia32/virtual-frame-ia32.h', 522 '../../src/ia32/virtual-frame-ia32.h',
514 ], 523 ],
515 }], 524 }],
516 ['v8_target_arch=="x64"', { 525 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', {
517 'include_dirs+': [ 526 'include_dirs+': [
518 '../../src/x64', 527 '../../src/x64',
519 ], 528 ],
520 'sources': [ 529 'sources': [
521 '../../src/fast-codegen.cc', 530 '../../src/fast-codegen.cc',
522 '../../src/jump-target-heavy.h', 531 '../../src/jump-target-heavy.h',
523 '../../src/jump-target-heavy-inl.h', 532 '../../src/jump-target-heavy-inl.h',
524 '../../src/jump-target-heavy.cc', 533 '../../src/jump-target-heavy.cc',
525 '../../src/virtual-frame-heavy-inl.h', 534 '../../src/virtual-frame-heavy-inl.h',
526 '../../src/virtual-frame-heavy.cc', 535 '../../src/virtual-frame-heavy.cc',
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 ], 691 ],
683 'conditions': [ 692 'conditions': [
684 [ 'OS=="win"', { 693 [ 'OS=="win"', {
685 # This could be gotten by not setting chromium_code, if that's OK. 694 # This could be gotten by not setting chromium_code, if that's OK.
686 'defines': ['_CRT_SECURE_NO_WARNINGS'], 695 'defines': ['_CRT_SECURE_NO_WARNINGS'],
687 }], 696 }],
688 ], 697 ],
689 }, 698 },
690 ], 699 ],
691 } 700 }
OLDNEW
« no previous file with comments | « src/x64/virtual-frame-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698