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

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

Issue 7620009: Third attempt to fix ARM cross-compile build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 4 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 | « no previous file | 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 2011 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
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 'conditions': [ 312 'conditions': [
313 ['want_separate_host_toolset==1', { 313 ['want_separate_host_toolset==1', {
314 'toolsets': ['host', 'target'], 314 'toolsets': ['host', 'target'],
315 'dependencies': ['mksnapshot#host', 'js2c#host'], 315 'dependencies': ['mksnapshot#host', 'js2c#host'],
316 }, { 316 }, {
317 'toolsets': ['target'], 317 'toolsets': ['target'],
318 'dependencies': ['mksnapshot', 'js2c'], 318 'dependencies': ['mksnapshot', 'js2c'],
319 }], 319 }],
320 # The ARM assembler assumes the host is 32 bits, 320 # The ARM assembler assumes the host is 32 bits,
321 # so force building 32-bit host tools. 321 # so force building 32-bit host tools.
322 ['v8_target_arch=="arm" and host_arch=="x64" and \ 322 ['v8_target_arch=="arm" and host_arch=="x64"', {
323 _toolset=="host"', { 323 'target_conditions': [
324 'cflags': ['-m32'], 324 ['_toolset=="host"', {
325 'ldflags': ['-m32'], 325 'cflags': ['-m32'],
326 'ldflags': ['-m32'],
327 }],
328 ],
326 }], 329 }],
327 ['component=="shared_library"', { 330 ['component=="shared_library"', {
328 'conditions': [ 331 'conditions': [
329 ['OS=="win"', { 332 ['OS=="win"', {
330 'defines': [ 333 'defines': [
331 'BUILDING_V8_SHARED', 334 'BUILDING_V8_SHARED',
332 ], 335 ],
333 'direct_dependent_settings': { 336 'direct_dependent_settings': {
334 'defines': [ 337 'defines': [
335 'USING_V8_SHARED', 338 'USING_V8_SHARED',
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 '../../src', 425 '../../src',
423 ], 426 ],
424 'sources': [ 427 'sources': [
425 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 428 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
426 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 429 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
427 '../../src/snapshot-empty.cc', 430 '../../src/snapshot-empty.cc',
428 ], 431 ],
429 'conditions': [ 432 'conditions': [
430 # The ARM assembler assumes the host is 32 bits, 433 # The ARM assembler assumes the host is 32 bits,
431 # so force building 32-bit host tools. 434 # so force building 32-bit host tools.
432 ['v8_target_arch=="arm" and host_arch=="x64" and \ 435 ['v8_target_arch=="arm" and host_arch=="x64"', {
433 _toolset=="host"', { 436 'target_conditions': [
434 'cflags': ['-m32'], 437 ['_toolset=="host"', {
435 'ldflags': ['-m32'], 438 'cflags': ['-m32'],
439 'ldflags': ['-m32'],
440 }],
441 ],
436 }], 442 }],
437 ['want_separate_host_toolset==1', { 443 ['want_separate_host_toolset==1', {
438 'toolsets': ['host', 'target'], 444 'toolsets': ['host', 'target'],
439 'dependencies': ['js2c#host'], 445 'dependencies': ['js2c#host'],
440 }, { 446 }, {
441 'toolsets': ['target'], 447 'toolsets': ['target'],
442 'dependencies': ['js2c'], 448 'dependencies': ['js2c'],
443 }], 449 }],
444 ['component=="shared_library"', { 450 ['component=="shared_library"', {
445 'defines': [ 451 'defines': [
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 '../../src/arm/macro-assembler-arm.cc', 747 '../../src/arm/macro-assembler-arm.cc',
742 '../../src/arm/macro-assembler-arm.h', 748 '../../src/arm/macro-assembler-arm.h',
743 '../../src/arm/regexp-macro-assembler-arm.cc', 749 '../../src/arm/regexp-macro-assembler-arm.cc',
744 '../../src/arm/regexp-macro-assembler-arm.h', 750 '../../src/arm/regexp-macro-assembler-arm.h',
745 '../../src/arm/simulator-arm.cc', 751 '../../src/arm/simulator-arm.cc',
746 '../../src/arm/stub-cache-arm.cc', 752 '../../src/arm/stub-cache-arm.cc',
747 ], 753 ],
748 'conditions': [ 754 'conditions': [
749 # The ARM assembler assumes the host is 32 bits, 755 # The ARM assembler assumes the host is 32 bits,
750 # so force building 32-bit host tools. 756 # so force building 32-bit host tools.
751 ['host_arch=="x64" and _toolset=="host"', { 757 ['host_arch=="x64"', {
752 'cflags': ['-m32'], 758 'target_conditions': [
753 'ldflags': ['-m32'], 759 ['_toolset=="host"', {
760 'cflags': ['-m32'],
761 'ldflags': ['-m32'],
762 }],
763 ],
754 }], 764 }],
755 ], 765 ],
756 }], 766 }],
757 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { 767 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', {
758 'sources': [ 768 'sources': [
759 '../../src/ia32/assembler-ia32-inl.h', 769 '../../src/ia32/assembler-ia32-inl.h',
760 '../../src/ia32/assembler-ia32.cc', 770 '../../src/ia32/assembler-ia32.cc',
761 '../../src/ia32/assembler-ia32.h', 771 '../../src/ia32/assembler-ia32.h',
762 '../../src/ia32/builtins-ia32.cc', 772 '../../src/ia32/builtins-ia32.cc',
763 '../../src/ia32/code-stubs-ia32.cc', 773 '../../src/ia32/code-stubs-ia32.cc',
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 '../../src/mksnapshot.cc', 996 '../../src/mksnapshot.cc',
987 ], 997 ],
988 'conditions': [ 998 'conditions': [
989 ['want_separate_host_toolset==1', { 999 ['want_separate_host_toolset==1', {
990 'toolsets': ['host'], 1000 'toolsets': ['host'],
991 }, { 1001 }, {
992 'toolsets': ['target'], 1002 'toolsets': ['target'],
993 }], 1003 }],
994 # The ARM assembler assumes the host is 32 bits, 1004 # The ARM assembler assumes the host is 32 bits,
995 # so force building 32-bit host tools. 1005 # so force building 32-bit host tools.
996 ['v8_target_arch=="arm" and host_arch=="x64" and \ 1006 ['v8_target_arch=="arm" and host_arch=="x64"', {
997 _toolset=="host"', { 1007 'target_conditions': [
998 'cflags': ['-m32'], 1008 ['_toolset=="host"', {
999 'ldflags': ['-m32'], 1009 'cflags': ['-m32'],
1010 'ldflags': ['-m32'],
1011 }],
1012 ],
1000 }], 1013 }],
1001 ['v8_compress_startup_data=="bz2"', { 1014 ['v8_compress_startup_data=="bz2"', {
1002 'libraries': [ 1015 'libraries': [
1003 '-lbz2', 1016 '-lbz2',
1004 ]}], 1017 ]}],
1005 ] 1018 ]
1006 }, 1019 },
1007 { 1020 {
1008 'target_name': 'v8_shell', 1021 'target_name': 'v8_shell',
1009 'type': 'executable', 1022 'type': 'executable',
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 'target_name': 'v8', 1071 'target_name': 'v8',
1059 'type': 'settings', 1072 'type': 'settings',
1060 'conditions': [ 1073 'conditions': [
1061 ['want_separate_host_toolset==1', { 1074 ['want_separate_host_toolset==1', {
1062 'toolsets': ['host', 'target'], 1075 'toolsets': ['host', 'target'],
1063 }, { 1076 }, {
1064 'toolsets': ['target'], 1077 'toolsets': ['target'],
1065 }], 1078 }],
1066 # The ARM assembler assumes the host is 32 bits, 1079 # The ARM assembler assumes the host is 32 bits,
1067 # so force building 32-bit host tools. 1080 # so force building 32-bit host tools.
1068 ['v8_target_arch=="arm" and host_arch=="x64" and \ 1081 ['v8_target_arch=="arm" and host_arch=="x64"', {
1069 _toolset=="host"', { 1082 'target_conditions': [
1070 'cflags': ['-m32'], 1083 ['_toolset=="host"', {
1071 'ldflags': ['-m32'], 1084 'cflags': ['-m32'],
1085 'ldflags': ['-m32'],
1086 }],
1087 ],
1072 }], 1088 }],
1073 ], 1089 ],
1074 'link_settings': { 1090 'link_settings': {
1075 'libraries': [ 1091 'libraries': [
1076 '-lv8', 1092 '-lv8',
1077 ], 1093 ],
1078 }, 1094 },
1079 }, 1095 },
1080 { 1096 {
1081 'target_name': 'v8_shell', 1097 'target_name': 'v8_shell',
1082 'type': 'none', 1098 'type': 'none',
1083 'conditions': [ 1099 'conditions': [
1084 ['want_separate_host_toolset==1', { 1100 ['want_separate_host_toolset==1', {
1085 'toolsets': ['host'], 1101 'toolsets': ['host'],
1086 }, { 1102 }, {
1087 'toolsets': ['target'], 1103 'toolsets': ['target'],
1088 }], 1104 }],
1089 ], 1105 ],
1090 'dependencies': [ 1106 'dependencies': [
1091 'v8' 1107 'v8'
1092 ], 1108 ],
1093 }, 1109 },
1094 ], 1110 ],
1095 }], 1111 }],
1096 ], 1112 ],
1097 } 1113 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698