| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 'USE_EABI_HARDFLOAT=0', | 152 'USE_EABI_HARDFLOAT=0', |
| 153 ], | 153 ], |
| 154 }], | 154 }], |
| 155 ], | 155 ], |
| 156 }], # v8_target_arch=="arm" | 156 }], # v8_target_arch=="arm" |
| 157 ['v8_target_arch=="ia32"', { | 157 ['v8_target_arch=="ia32"', { |
| 158 'defines': [ | 158 'defines': [ |
| 159 'V8_TARGET_ARCH_IA32', | 159 'V8_TARGET_ARCH_IA32', |
| 160 ], | 160 ], |
| 161 }], # v8_target_arch=="ia32" | 161 }], # v8_target_arch=="ia32" |
| 162 ['v8_target_arch=="mips"', { | 162 ['v8_target_arch=="mipsel"', { |
| 163 'defines': [ | 163 'defines': [ |
| 164 'V8_TARGET_ARCH_MIPS', | 164 'V8_TARGET_ARCH_MIPS', |
| 165 ], | 165 ], |
| 166 'variables': { | 166 'variables': { |
| 167 'mipscompiler': '<!($(echo ${CXX:-$(which g++)}) -v 2>&1 | grep -q "^T
arget: mips-" && echo "yes" || echo "no")', | 167 'mipscompiler': '<!($(echo ${CXX:-$(which g++)}) -v 2>&1 | grep -q "^T
arget: mips-" && echo "yes" || echo "no")', |
| 168 }, | 168 }, |
| 169 'conditions': [ | 169 'conditions': [ |
| 170 ['mipscompiler=="yes"', { | 170 ['mipscompiler=="yes"', { |
| 171 'target_conditions': [ | 171 'target_conditions': [ |
| 172 ['_toolset=="target"', { | 172 ['_toolset=="target"', { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 '__mips_soft_float=1' | 207 '__mips_soft_float=1' |
| 208 ], | 208 ], |
| 209 }], | 209 }], |
| 210 ['mips_arch_variant=="mips32r2"', { | 210 ['mips_arch_variant=="mips32r2"', { |
| 211 'defines': ['_MIPS_ARCH_MIPS32R2',], | 211 'defines': ['_MIPS_ARCH_MIPS32R2',], |
| 212 }], | 212 }], |
| 213 ['mips_arch_variant=="loongson"', { | 213 ['mips_arch_variant=="loongson"', { |
| 214 'defines': ['_MIPS_ARCH_LOONGSON',], | 214 'defines': ['_MIPS_ARCH_LOONGSON',], |
| 215 }], | 215 }], |
| 216 ], | 216 ], |
| 217 }], # v8_target_arch=="mips" | 217 }], # v8_target_arch=="mipsel" |
| 218 ['v8_target_arch=="x64"', { | 218 ['v8_target_arch=="x64"', { |
| 219 'defines': [ | 219 'defines': [ |
| 220 'V8_TARGET_ARCH_X64', | 220 'V8_TARGET_ARCH_X64', |
| 221 ], | 221 ], |
| 222 'xcode_settings': { | 222 'xcode_settings': { |
| 223 'ARCHS': [ 'x86_64' ], | 223 'ARCHS': [ 'x86_64' ], |
| 224 }, | 224 }, |
| 225 'msvs_settings': { | 225 'msvs_settings': { |
| 226 'VCLinkerTool': { | 226 'VCLinkerTool': { |
| 227 'StackReserveSize': '2097152', | 227 'StackReserveSize': '2097152', |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 'cflags': [ '-fno-strict-aliasing' ], | 266 'cflags': [ '-fno-strict-aliasing' ], |
| 267 }], | 267 }], |
| 268 ], # conditions | 268 ], # conditions |
| 269 }], | 269 }], |
| 270 ['OS=="solaris"', { | 270 ['OS=="solaris"', { |
| 271 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 271 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
| 272 }], | 272 }], |
| 273 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 273 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 274 or OS=="netbsd" or OS=="mac" or OS=="android") and \ | 274 or OS=="netbsd" or OS=="mac" or OS=="android") and \ |
| 275 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | 275 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ |
| 276 v8_target_arch=="mips")', { | 276 v8_target_arch=="mipsel")', { |
| 277 # Check whether the host compiler and target compiler support the | 277 # Check whether the host compiler and target compiler support the |
| 278 # '-m32' option and set it if so. | 278 # '-m32' option and set it if so. |
| 279 'target_conditions': [ | 279 'target_conditions': [ |
| 280 ['_toolset=="host"', { | 280 ['_toolset=="host"', { |
| 281 'variables': { | 281 'variables': { |
| 282 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo -n "-m32" || true)', | 282 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo -n "-m32" || true)', |
| 283 }, | 283 }, |
| 284 'cflags': [ '<(m32flag)' ], | 284 'cflags': [ '<(m32flag)' ], |
| 285 'ldflags': [ '<(m32flag)' ], | 285 'ldflags': [ '<(m32flag)' ], |
| 286 'xcode_settings': { | 286 'xcode_settings': { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 'OptimizeReferences': '2', | 395 'OptimizeReferences': '2', |
| 396 'EnableCOMDATFolding': '2', | 396 'EnableCOMDATFolding': '2', |
| 397 }, | 397 }, |
| 398 }, | 398 }, |
| 399 }], # OS=="win" | 399 }], # OS=="win" |
| 400 ], # conditions | 400 ], # conditions |
| 401 }, # Release | 401 }, # Release |
| 402 }, # configurations | 402 }, # configurations |
| 403 }, # target_defaults | 403 }, # target_defaults |
| 404 } | 404 } |
| OLD | NEW |