| OLD | NEW |
| 1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 # On by default for x64 Linux. | 124 # On by default for x64 Linux. |
| 125 ['OS=="linux" and target_arch=="x64"', { | 125 ['OS=="linux" and target_arch=="x64"', { |
| 126 'linux_use_gold_flags%': 1, | 126 'linux_use_gold_flags%': 1, |
| 127 }, { | 127 }, { |
| 128 'linux_use_gold_flags%': 0, | 128 'linux_use_gold_flags%': 0, |
| 129 }], | 129 }], |
| 130 ], | 130 ], |
| 131 | 131 |
| 132 # Link-Time Optimizations | 132 # Link-Time Optimizations |
| 133 'use_lto%': 0, | 133 'use_lto%': 0, |
| 134 | |
| 135 'variables': { | |
| 136 # This is set when building the Android WebView inside the Android build | |
| 137 # system, using the 'android' gyp backend. | |
| 138 'android_webview_build%': 0, | |
| 139 }, | |
| 140 # Copy it out one scope. | |
| 141 'android_webview_build%': '<(android_webview_build)', | |
| 142 }, | 134 }, |
| 143 'conditions': [ | 135 'conditions': [ |
| 144 ['host_arch=="ia32" or host_arch=="x64" or \ | 136 ['host_arch=="ia32" or host_arch=="x64" or \ |
| 145 host_arch=="ppc" or host_arch=="ppc64" or \ | 137 host_arch=="ppc" or host_arch=="ppc64" or \ |
| 146 clang==1', { | 138 clang==1', { |
| 147 'variables': { | 139 'variables': { |
| 148 'host_cxx_is_biarch%': 1, | 140 'host_cxx_is_biarch%': 1, |
| 149 }, | 141 }, |
| 150 }, { | 142 }, { |
| 151 'variables': { | 143 'variables': { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 }], | 188 }], |
| 197 [ 'arm_test_noprobe=="on"', { | 189 [ 'arm_test_noprobe=="on"', { |
| 198 'defines': [ | 190 'defines': [ |
| 199 'ARM_TEST_NO_FEATURE_PROBE', | 191 'ARM_TEST_NO_FEATURE_PROBE', |
| 200 ], | 192 ], |
| 201 }], | 193 }], |
| 202 ], | 194 ], |
| 203 'target_conditions': [ | 195 'target_conditions': [ |
| 204 ['_toolset=="host"', { | 196 ['_toolset=="host"', { |
| 205 'conditions': [ | 197 'conditions': [ |
| 206 ['v8_target_arch==host_arch and android_webview_build==0', { | 198 ['v8_target_arch==host_arch', { |
| 207 # Host built with an Arm CXX compiler. | 199 # Host built with an Arm CXX compiler. |
| 208 'conditions': [ | 200 'conditions': [ |
| 209 [ 'arm_version==7', { | 201 [ 'arm_version==7', { |
| 210 'cflags': ['-march=armv7-a',], | 202 'cflags': ['-march=armv7-a',], |
| 211 }], | 203 }], |
| 212 [ 'arm_version==7 or arm_version=="default"', { | 204 [ 'arm_version==7 or arm_version=="default"', { |
| 213 'conditions': [ | 205 'conditions': [ |
| 214 [ 'arm_fpu!="default"', { | 206 [ 'arm_fpu!="default"', { |
| 215 'cflags': ['-mfpu=<(arm_fpu)',], | 207 'cflags': ['-mfpu=<(arm_fpu)',], |
| 216 }], | 208 }], |
| (...skipping 22 matching lines...) Expand all Loading... |
| 239 'defines': [ | 231 'defines': [ |
| 240 'USE_EABI_HARDFLOAT=0', | 232 'USE_EABI_HARDFLOAT=0', |
| 241 ], | 233 ], |
| 242 }], | 234 }], |
| 243 ], | 235 ], |
| 244 }], | 236 }], |
| 245 ], | 237 ], |
| 246 }], # _toolset=="host" | 238 }], # _toolset=="host" |
| 247 ['_toolset=="target"', { | 239 ['_toolset=="target"', { |
| 248 'conditions': [ | 240 'conditions': [ |
| 249 ['v8_target_arch==target_arch and android_webview_build==0', { | 241 ['v8_target_arch==target_arch', { |
| 250 # Target built with an Arm CXX compiler. | 242 # Target built with an Arm CXX compiler. |
| 251 'conditions': [ | 243 'conditions': [ |
| 252 [ 'arm_version==7', { | 244 [ 'arm_version==7', { |
| 253 'cflags': ['-march=armv7-a',], | 245 'cflags': ['-march=armv7-a',], |
| 254 }], | 246 }], |
| 255 [ 'arm_version==7 or arm_version=="default"', { | 247 [ 'arm_version==7 or arm_version=="default"', { |
| 256 'conditions': [ | 248 'conditions': [ |
| 257 [ 'arm_fpu!="default"', { | 249 [ 'arm_fpu!="default"', { |
| 258 'cflags': ['-mfpu=<(arm_fpu)',], | 250 'cflags': ['-mfpu=<(arm_fpu)',], |
| 259 }], | 251 }], |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 ], | 355 ], |
| 364 }, { | 356 }, { |
| 365 'defines': [ | 357 'defines': [ |
| 366 '__mips_soft_float=1' | 358 '__mips_soft_float=1' |
| 367 ] | 359 ] |
| 368 }], | 360 }], |
| 369 ], | 361 ], |
| 370 'target_conditions': [ | 362 'target_conditions': [ |
| 371 ['_toolset=="target"', { | 363 ['_toolset=="target"', { |
| 372 'conditions': [ | 364 'conditions': [ |
| 373 ['v8_target_arch==target_arch and android_webview_build==0', { | 365 ['v8_target_arch==target_arch', { |
| 374 # Target built with a Mips CXX compiler. | 366 # Target built with a Mips CXX compiler. |
| 375 'cflags': [ | 367 'cflags': [ |
| 376 '-EB', | 368 '-EB', |
| 377 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b
ugzilla/show_bug.cgi?id=56273 | 369 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b
ugzilla/show_bug.cgi?id=56273 |
| 378 ], | 370 ], |
| 379 'ldflags': ['-EB'], | 371 'ldflags': ['-EB'], |
| 380 'conditions': [ | 372 'conditions': [ |
| 381 [ 'v8_use_mips_abi_hardfloat=="true"', { | 373 [ 'v8_use_mips_abi_hardfloat=="true"', { |
| 382 'cflags': ['-mhard-float'], | 374 'cflags': ['-mhard-float'], |
| 383 'ldflags': ['-mhard-float'], | 375 'ldflags': ['-mhard-float'], |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 ], | 542 ], |
| 551 }, { | 543 }, { |
| 552 'defines': [ | 544 'defines': [ |
| 553 '__mips_soft_float=1' | 545 '__mips_soft_float=1' |
| 554 ], | 546 ], |
| 555 }], | 547 }], |
| 556 ], | 548 ], |
| 557 'target_conditions': [ | 549 'target_conditions': [ |
| 558 ['_toolset=="target"', { | 550 ['_toolset=="target"', { |
| 559 'conditions': [ | 551 'conditions': [ |
| 560 ['v8_target_arch==target_arch and android_webview_build==0', { | 552 ['v8_target_arch==target_arch', { |
| 561 # Target built with a Mips CXX compiler. | 553 # Target built with a Mips CXX compiler. |
| 562 'cflags': [ | 554 'cflags': [ |
| 563 '-EL', | 555 '-EL', |
| 564 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b
ugzilla/show_bug.cgi?id=56273 | 556 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b
ugzilla/show_bug.cgi?id=56273 |
| 565 ], | 557 ], |
| 566 'ldflags': ['-EL'], | 558 'ldflags': ['-EL'], |
| 567 'conditions': [ | 559 'conditions': [ |
| 568 [ 'v8_use_mips_abi_hardfloat=="true"', { | 560 [ 'v8_use_mips_abi_hardfloat=="true"', { |
| 569 'cflags': ['-mhard-float'], | 561 'cflags': ['-mhard-float'], |
| 570 'ldflags': ['-mhard-float'], | 562 'ldflags': ['-mhard-float'], |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 ], | 746 ], |
| 755 }, { | 747 }, { |
| 756 'defines': [ | 748 'defines': [ |
| 757 '__mips_soft_float=1' | 749 '__mips_soft_float=1' |
| 758 ], | 750 ], |
| 759 }], | 751 }], |
| 760 ], | 752 ], |
| 761 'target_conditions': [ | 753 'target_conditions': [ |
| 762 ['_toolset=="target"', { | 754 ['_toolset=="target"', { |
| 763 'conditions': [ | 755 'conditions': [ |
| 764 ['v8_target_arch==target_arch and android_webview_build==0', { | 756 ['v8_target_arch==target_arch', { |
| 765 'cflags': [ | 757 'cflags': [ |
| 766 '-EL', | 758 '-EL', |
| 767 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b
ugzilla/show_bug.cgi?id=56273 | 759 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b
ugzilla/show_bug.cgi?id=56273 |
| 768 ], | 760 ], |
| 769 'ldflags': ['-EL'], | 761 'ldflags': ['-EL'], |
| 770 'conditions': [ | 762 'conditions': [ |
| 771 [ 'v8_use_mips_abi_hardfloat=="true"', { | 763 [ 'v8_use_mips_abi_hardfloat=="true"', { |
| 772 'cflags': ['-mhard-float'], | 764 'cflags': ['-mhard-float'], |
| 773 'ldflags': ['-mhard-float'], | 765 'ldflags': ['-mhard-float'], |
| 774 }, { | 766 }, { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 'xcode_settings': { | 914 'xcode_settings': { |
| 923 'ARCHS': [ 'i386' ], | 915 'ARCHS': [ 'i386' ], |
| 924 }, | 916 }, |
| 925 }], | 917 }], |
| 926 ['_toolset=="target"', { | 918 ['_toolset=="target"', { |
| 927 'conditions': [ | 919 'conditions': [ |
| 928 ['target_cxx_is_biarch==1 and nacl_target_arch!="nacl_x64"', { | 920 ['target_cxx_is_biarch==1 and nacl_target_arch!="nacl_x64"', { |
| 929 'cflags': [ '-m32' ], | 921 'cflags': [ '-m32' ], |
| 930 'ldflags': [ '-m32' ], | 922 'ldflags': [ '-m32' ], |
| 931 }], | 923 }], |
| 932 # Enable feedback-directed optimisation when building in android. | |
| 933 [ 'android_webview_build == 1', { | |
| 934 'aosp_build_settings': { | |
| 935 'LOCAL_FDO_SUPPORT': 'true', | |
| 936 }, | |
| 937 }], | |
| 938 ], | 924 ], |
| 939 'xcode_settings': { | 925 'xcode_settings': { |
| 940 'ARCHS': [ 'i386' ], | 926 'ARCHS': [ 'i386' ], |
| 941 }, | 927 }, |
| 942 }], | 928 }], |
| 943 ], | 929 ], |
| 944 }], | 930 }], |
| 945 ['(OS=="linux" or OS=="android") and \ | 931 ['(OS=="linux" or OS=="android") and \ |
| 946 (v8_target_arch=="x64" or v8_target_arch=="arm64" or \ | 932 (v8_target_arch=="x64" or v8_target_arch=="arm64" or \ |
| 947 v8_target_arch=="ppc64")', { | 933 v8_target_arch=="ppc64")', { |
| 948 'target_conditions': [ | 934 'target_conditions': [ |
| 949 ['_toolset=="host"', { | 935 ['_toolset=="host"', { |
| 950 'conditions': [ | 936 'conditions': [ |
| 951 ['host_cxx_is_biarch==1', { | 937 ['host_cxx_is_biarch==1', { |
| 952 'cflags': [ '-m64' ], | 938 'cflags': [ '-m64' ], |
| 953 'ldflags': [ '-m64' ] | 939 'ldflags': [ '-m64' ] |
| 954 }], | 940 }], |
| 955 ], | 941 ], |
| 956 }], | 942 }], |
| 957 ['_toolset=="target"', { | 943 ['_toolset=="target"', { |
| 958 'conditions': [ | 944 'conditions': [ |
| 959 ['target_cxx_is_biarch==1', { | 945 ['target_cxx_is_biarch==1', { |
| 960 'cflags': [ '-m64' ], | 946 'cflags': [ '-m64' ], |
| 961 'ldflags': [ '-m64' ], | 947 'ldflags': [ '-m64' ], |
| 962 }], | 948 }], |
| 963 # Enable feedback-directed optimisation when building in android. | |
| 964 [ 'android_webview_build == 1', { | |
| 965 'aosp_build_settings': { | |
| 966 'LOCAL_FDO_SUPPORT': 'true', | |
| 967 }, | |
| 968 }], | |
| 969 ] | 949 ] |
| 970 }], | 950 }], |
| 971 ], | 951 ], |
| 972 }], | 952 }], |
| 973 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 953 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 974 or OS=="netbsd" or OS=="qnx" or OS=="aix"', { | 954 or OS=="netbsd" or OS=="qnx" or OS=="aix"', { |
| 975 'conditions': [ | 955 'conditions': [ |
| 976 [ 'v8_no_strict_aliasing==1', { | 956 [ 'v8_no_strict_aliasing==1', { |
| 977 'cflags': [ '-fno-strict-aliasing' ], | 957 'cflags': [ '-fno-strict-aliasing' ], |
| 978 }], | 958 }], |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1268 ['v8_enable_slow_dchecks==1', { | 1248 ['v8_enable_slow_dchecks==1', { |
| 1269 'defines': [ | 1249 'defines': [ |
| 1270 'ENABLE_SLOW_DCHECKS', | 1250 'ENABLE_SLOW_DCHECKS', |
| 1271 ], | 1251 ], |
| 1272 }], | 1252 }], |
| 1273 ], # conditions | 1253 ], # conditions |
| 1274 }, # Release | 1254 }, # Release |
| 1275 }, # configurations | 1255 }, # configurations |
| 1276 }, # target_defaults | 1256 }, # target_defaults |
| 1277 } | 1257 } |
| OLD | NEW |