| OLD | NEW |
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 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 14 matching lines...) Expand all Loading... |
| 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 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. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 # Shared definitions for all V8-related targets. | 28 # Shared definitions for all V8-related targets. |
| 29 | 29 |
| 30 { | 30 { |
| 31 'variables': { | 31 'variables': { |
| 32 'use_system_v8%': 0, | 32 'use_system_v8%': 0, |
| 33 'msvs_use_common_release': 0, | 33 'msvs_use_common_release': 0, |
| 34 'gcc_version%': 'unknown', | 34 'gcc_version%': 'unknown', |
| 35 'CXX%': '${CXX:-$(which g++)}', # Used to assemble a shell command. |
| 35 'v8_compress_startup_data%': 'off', | 36 'v8_compress_startup_data%': 'off', |
| 36 'v8_target_arch%': '<(target_arch)', | 37 'v8_target_arch%': '<(target_arch)', |
| 37 | 38 |
| 38 # Setting 'v8_can_use_unaligned_accesses' to 'true' will allow the code | 39 # Setting 'v8_can_use_unaligned_accesses' to 'true' will allow the code |
| 39 # generated by V8 to do unaligned memory access, and setting it to 'false' | 40 # generated by V8 to do unaligned memory access, and setting it to 'false' |
| 40 # will ensure that the generated code will always do aligned memory | 41 # will ensure that the generated code will always do aligned memory |
| 41 # accesses. The default value of 'default' will try to determine the correct | 42 # accesses. The default value of 'default' will try to determine the correct |
| 42 # setting. Note that for Intel architectures (ia32 and x64) unaligned memory | 43 # setting. Note that for Intel architectures (ia32 and x64) unaligned memory |
| 43 # access is allowed for all CPUs. | 44 # access is allowed for all CPUs. |
| 44 'v8_can_use_unaligned_accesses%': 'default', | 45 'v8_can_use_unaligned_accesses%': 'default', |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 ['v8_target_arch=="ia32"', { | 196 ['v8_target_arch=="ia32"', { |
| 196 'defines': [ | 197 'defines': [ |
| 197 'V8_TARGET_ARCH_IA32', | 198 'V8_TARGET_ARCH_IA32', |
| 198 ], | 199 ], |
| 199 }], # v8_target_arch=="ia32" | 200 }], # v8_target_arch=="ia32" |
| 200 ['v8_target_arch=="mipsel"', { | 201 ['v8_target_arch=="mipsel"', { |
| 201 'defines': [ | 202 'defines': [ |
| 202 'V8_TARGET_ARCH_MIPS', | 203 'V8_TARGET_ARCH_MIPS', |
| 203 ], | 204 ], |
| 204 'variables': { | 205 'variables': { |
| 205 'mipscompiler': '<!($(echo ${CXX:-$(which g++)}) -v 2>&1 | grep -q "^T
arget: mips" && echo "yes" || echo "no")', | 206 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" &
& echo "yes" || echo "no")', |
| 206 }, | 207 }, |
| 207 'conditions': [ | 208 'conditions': [ |
| 208 ['mipscompiler=="yes"', { | 209 ['mipscompiler=="yes"', { |
| 209 'target_conditions': [ | 210 'target_conditions': [ |
| 210 ['_toolset=="target"', { | 211 ['_toolset=="target"', { |
| 211 'cflags': ['-EL'], | 212 'cflags': ['-EL'], |
| 212 'ldflags': ['-EL'], | 213 'ldflags': ['-EL'], |
| 213 'conditions': [ | 214 'conditions': [ |
| 214 [ 'v8_use_mips_abi_hardfloat=="true"', { | 215 [ 'v8_use_mips_abi_hardfloat=="true"', { |
| 215 'cflags': ['-mhard-float'], | 216 'cflags': ['-mhard-float'], |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo "-m32" || true)', | 314 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo "-m32" || true)', |
| 314 }, | 315 }, |
| 315 'cflags': [ '<(m32flag)' ], | 316 'cflags': [ '<(m32flag)' ], |
| 316 'ldflags': [ '<(m32flag)' ], | 317 'ldflags': [ '<(m32flag)' ], |
| 317 'xcode_settings': { | 318 'xcode_settings': { |
| 318 'ARCHS': [ 'i386' ], | 319 'ARCHS': [ 'i386' ], |
| 319 }, | 320 }, |
| 320 }], | 321 }], |
| 321 ['_toolset=="target"', { | 322 ['_toolset=="target"', { |
| 322 'variables': { | 323 'variables': { |
| 323 'm32flag': '<!((echo | $(echo ${CXX_target:-${CXX:-$(which g++)}})
-m32 -E - > /dev/null 2>&1) && echo "-m32" || true)', | 324 'm32flag': '<!((echo | $(echo ${CXX_target:-<(CXX)}) -m32 -E - > /
dev/null 2>&1) && echo "-m32" || true)', |
| 324 'clang%': 0, | 325 'clang%': 0, |
| 325 }, | 326 }, |
| 326 'conditions': [ | 327 'conditions': [ |
| 327 ['OS!="android" or clang==1', { | 328 ['OS!="android" or clang==1', { |
| 328 'cflags': [ '<(m32flag)' ], | 329 'cflags': [ '<(m32flag)' ], |
| 329 'ldflags': [ '<(m32flag)' ], | 330 'ldflags': [ '<(m32flag)' ], |
| 330 }], | 331 }], |
| 331 ], | 332 ], |
| 332 'xcode_settings': { | 333 'xcode_settings': { |
| 333 'ARCHS': [ 'i386' ], | 334 'ARCHS': [ 'i386' ], |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 'OptimizeReferences': '2', | 468 'OptimizeReferences': '2', |
| 468 'EnableCOMDATFolding': '2', | 469 'EnableCOMDATFolding': '2', |
| 469 }, | 470 }, |
| 470 }, | 471 }, |
| 471 }], # OS=="win" | 472 }], # OS=="win" |
| 472 ], # conditions | 473 ], # conditions |
| 473 }, # Release | 474 }, # Release |
| 474 }, # configurations | 475 }, # configurations |
| 475 }, # target_defaults | 476 }, # target_defaults |
| 476 } | 477 } |
| OLD | NEW |