| OLD | NEW |
| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 'CAN_USE_VFP_INSTRUCTIONS', | 105 'CAN_USE_VFP_INSTRUCTIONS', |
| 106 ], | 106 ], |
| 107 'cflags': [ | 107 'cflags': [ |
| 108 '-mfloat-abi=hard', | 108 '-mfloat-abi=hard', |
| 109 ], | 109 ], |
| 110 }, { | 110 }, { |
| 111 'defines': [ | 111 'defines': [ |
| 112 'USE_EABI_HARDFLOAT=0', | 112 'USE_EABI_HARDFLOAT=0', |
| 113 ], | 113 ], |
| 114 }], | 114 }], |
| 115 # The ARM assembler assumes the host is 32 bits, | |
| 116 # so force building 32-bit host tools. | |
| 117 [ 'host_arch=="x64" and _toolset=="host"', { | |
| 118 'cflags': ['-m32'], | |
| 119 'ldflags': ['-m32'], | |
| 120 }], | |
| 121 ], | 115 ], |
| 122 }], | 116 }], |
| 123 ['v8_target_arch=="ia32"', { | 117 ['v8_target_arch=="ia32"', { |
| 124 'defines': [ | 118 'defines': [ |
| 125 'V8_TARGET_ARCH_IA32', | 119 'V8_TARGET_ARCH_IA32', |
| 126 ], | 120 ], |
| 127 }], | 121 }], |
| 128 ['v8_target_arch=="x64"', { | 122 ['v8_target_arch=="x64"', { |
| 129 'defines': [ | 123 'defines': [ |
| 130 'V8_TARGET_ARCH_X64', | 124 'V8_TARGET_ARCH_X64', |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 'target_name': 'v8_snapshot', | 310 'target_name': 'v8_snapshot', |
| 317 'type': '<(library)', | 311 'type': '<(library)', |
| 318 'conditions': [ | 312 'conditions': [ |
| 319 ['want_separate_host_toolset==1', { | 313 ['want_separate_host_toolset==1', { |
| 320 'toolsets': ['host', 'target'], | 314 'toolsets': ['host', 'target'], |
| 321 'dependencies': ['mksnapshot#host', 'js2c#host'], | 315 'dependencies': ['mksnapshot#host', 'js2c#host'], |
| 322 }, { | 316 }, { |
| 323 'toolsets': ['target'], | 317 'toolsets': ['target'], |
| 324 'dependencies': ['mksnapshot', 'js2c'], | 318 'dependencies': ['mksnapshot', 'js2c'], |
| 325 }], | 319 }], |
| 320 # The ARM assembler assumes the host is 32 bits, |
| 321 # so force building 32-bit host tools. |
| 322 ['v8_target_arch=="arm" and host_arch=="x64" and \ |
| 323 _toolset=="host"', { |
| 324 'cflags': ['-m32'], |
| 325 'ldflags': ['-m32'], |
| 326 }], |
| 326 ['component=="shared_library"', { | 327 ['component=="shared_library"', { |
| 327 'conditions': [ | 328 'conditions': [ |
| 328 ['OS=="win"', { | 329 ['OS=="win"', { |
| 329 'defines': [ | 330 'defines': [ |
| 330 'BUILDING_V8_SHARED', | 331 'BUILDING_V8_SHARED', |
| 331 ], | 332 ], |
| 332 'direct_dependent_settings': { | 333 'direct_dependent_settings': { |
| 333 'defines': [ | 334 'defines': [ |
| 334 'USING_V8_SHARED', | 335 'USING_V8_SHARED', |
| 335 ], | 336 ], |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 ], | 420 ], |
| 420 'include_dirs+': [ | 421 'include_dirs+': [ |
| 421 '../../src', | 422 '../../src', |
| 422 ], | 423 ], |
| 423 'sources': [ | 424 'sources': [ |
| 424 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 425 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 425 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 426 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 426 '../../src/snapshot-empty.cc', | 427 '../../src/snapshot-empty.cc', |
| 427 ], | 428 ], |
| 428 'conditions': [ | 429 'conditions': [ |
| 430 # The ARM assembler assumes the host is 32 bits, |
| 431 # so force building 32-bit host tools. |
| 432 ['v8_target_arch=="arm" and host_arch=="x64" and \ |
| 433 _toolset=="host"', { |
| 434 'cflags': ['-m32'], |
| 435 'ldflags': ['-m32'], |
| 436 }], |
| 429 ['want_separate_host_toolset==1', { | 437 ['want_separate_host_toolset==1', { |
| 430 'toolsets': ['host', 'target'], | 438 'toolsets': ['host', 'target'], |
| 431 'dependencies': ['js2c#host'], | 439 'dependencies': ['js2c#host'], |
| 432 }, { | 440 }, { |
| 433 'toolsets': ['target'], | 441 'toolsets': ['target'], |
| 434 'dependencies': ['js2c'], | 442 'dependencies': ['js2c'], |
| 435 }], | 443 }], |
| 436 ['component=="shared_library"', { | 444 ['component=="shared_library"', { |
| 437 'defines': [ | 445 'defines': [ |
| 438 'BUILDING_V8_SHARED', | 446 'BUILDING_V8_SHARED', |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 '../../src/arm/lithium-codegen-arm.h', | 738 '../../src/arm/lithium-codegen-arm.h', |
| 731 '../../src/arm/lithium-gap-resolver-arm.cc', | 739 '../../src/arm/lithium-gap-resolver-arm.cc', |
| 732 '../../src/arm/lithium-gap-resolver-arm.h', | 740 '../../src/arm/lithium-gap-resolver-arm.h', |
| 733 '../../src/arm/macro-assembler-arm.cc', | 741 '../../src/arm/macro-assembler-arm.cc', |
| 734 '../../src/arm/macro-assembler-arm.h', | 742 '../../src/arm/macro-assembler-arm.h', |
| 735 '../../src/arm/regexp-macro-assembler-arm.cc', | 743 '../../src/arm/regexp-macro-assembler-arm.cc', |
| 736 '../../src/arm/regexp-macro-assembler-arm.h', | 744 '../../src/arm/regexp-macro-assembler-arm.h', |
| 737 '../../src/arm/simulator-arm.cc', | 745 '../../src/arm/simulator-arm.cc', |
| 738 '../../src/arm/stub-cache-arm.cc', | 746 '../../src/arm/stub-cache-arm.cc', |
| 739 ], | 747 ], |
| 748 'conditions': [ |
| 749 # The ARM assembler assumes the host is 32 bits, |
| 750 # so force building 32-bit host tools. |
| 751 ['host_arch=="x64" and _toolset=="host"', { |
| 752 'cflags': ['-m32'], |
| 753 'ldflags': ['-m32'], |
| 754 }], |
| 755 ], |
| 740 }], | 756 }], |
| 741 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { | 757 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { |
| 742 'sources': [ | 758 'sources': [ |
| 743 '../../src/ia32/assembler-ia32-inl.h', | 759 '../../src/ia32/assembler-ia32-inl.h', |
| 744 '../../src/ia32/assembler-ia32.cc', | 760 '../../src/ia32/assembler-ia32.cc', |
| 745 '../../src/ia32/assembler-ia32.h', | 761 '../../src/ia32/assembler-ia32.h', |
| 746 '../../src/ia32/builtins-ia32.cc', | 762 '../../src/ia32/builtins-ia32.cc', |
| 747 '../../src/ia32/code-stubs-ia32.cc', | 763 '../../src/ia32/code-stubs-ia32.cc', |
| 748 '../../src/ia32/code-stubs-ia32.h', | 764 '../../src/ia32/code-stubs-ia32.h', |
| 749 '../../src/ia32/codegen-ia32.cc', | 765 '../../src/ia32/codegen-ia32.cc', |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 ], | 984 ], |
| 969 'sources': [ | 985 'sources': [ |
| 970 '../../src/mksnapshot.cc', | 986 '../../src/mksnapshot.cc', |
| 971 ], | 987 ], |
| 972 'conditions': [ | 988 'conditions': [ |
| 973 ['want_separate_host_toolset==1', { | 989 ['want_separate_host_toolset==1', { |
| 974 'toolsets': ['host'], | 990 'toolsets': ['host'], |
| 975 }, { | 991 }, { |
| 976 'toolsets': ['target'], | 992 'toolsets': ['target'], |
| 977 }], | 993 }], |
| 994 # The ARM assembler assumes the host is 32 bits, |
| 995 # so force building 32-bit host tools. |
| 996 ['v8_target_arch=="arm" and host_arch=="x64" and \ |
| 997 _toolset=="host"', { |
| 998 'cflags': ['-m32'], |
| 999 'ldflags': ['-m32'], |
| 1000 }], |
| 978 ['v8_compress_startup_data=="bz2"', { | 1001 ['v8_compress_startup_data=="bz2"', { |
| 979 'libraries': [ | 1002 'libraries': [ |
| 980 '-lbz2', | 1003 '-lbz2', |
| 981 ]}], | 1004 ]}], |
| 982 ] | 1005 ] |
| 983 }, | 1006 }, |
| 984 { | 1007 { |
| 985 'target_name': 'v8_shell', | 1008 'target_name': 'v8_shell', |
| 986 'type': 'executable', | 1009 'type': 'executable', |
| 987 'dependencies': [ | 1010 'dependencies': [ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 'targets': [ | 1056 'targets': [ |
| 1034 { | 1057 { |
| 1035 'target_name': 'v8', | 1058 'target_name': 'v8', |
| 1036 'type': 'settings', | 1059 'type': 'settings', |
| 1037 'conditions': [ | 1060 'conditions': [ |
| 1038 ['want_separate_host_toolset==1', { | 1061 ['want_separate_host_toolset==1', { |
| 1039 'toolsets': ['host', 'target'], | 1062 'toolsets': ['host', 'target'], |
| 1040 }, { | 1063 }, { |
| 1041 'toolsets': ['target'], | 1064 'toolsets': ['target'], |
| 1042 }], | 1065 }], |
| 1043 | 1066 # The ARM assembler assumes the host is 32 bits, |
| 1067 # so force building 32-bit host tools. |
| 1068 ['v8_target_arch=="arm" and host_arch=="x64" and \ |
| 1069 _toolset=="host"', { |
| 1070 'cflags': ['-m32'], |
| 1071 'ldflags': ['-m32'], |
| 1072 }], |
| 1044 ], | 1073 ], |
| 1045 'link_settings': { | 1074 'link_settings': { |
| 1046 'libraries': [ | 1075 'libraries': [ |
| 1047 '-lv8', | 1076 '-lv8', |
| 1048 ], | 1077 ], |
| 1049 }, | 1078 }, |
| 1050 }, | 1079 }, |
| 1051 { | 1080 { |
| 1052 'target_name': 'v8_shell', | 1081 'target_name': 'v8_shell', |
| 1053 'type': 'none', | 1082 'type': 'none', |
| 1054 'conditions': [ | 1083 'conditions': [ |
| 1055 ['want_separate_host_toolset==1', { | 1084 ['want_separate_host_toolset==1', { |
| 1056 'toolsets': ['host'], | 1085 'toolsets': ['host'], |
| 1057 }, { | 1086 }, { |
| 1058 'toolsets': ['target'], | 1087 'toolsets': ['target'], |
| 1059 }], | 1088 }], |
| 1060 ], | 1089 ], |
| 1061 'dependencies': [ | 1090 'dependencies': [ |
| 1062 'v8' | 1091 'v8' |
| 1063 ], | 1092 ], |
| 1064 }, | 1093 }, |
| 1065 ], | 1094 ], |
| 1066 }], | 1095 }], |
| 1067 ], | 1096 ], |
| 1068 } | 1097 } |
| OLD | NEW |