| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 'CAN_USE_VFP_INSTRUCTIONS', | 143 'CAN_USE_VFP_INSTRUCTIONS', |
| 144 ], | 144 ], |
| 145 'cflags': [ | 145 'cflags': [ |
| 146 '-mfloat-abi=hard', | 146 '-mfloat-abi=hard', |
| 147 ], | 147 ], |
| 148 }, { | 148 }, { |
| 149 'defines': [ | 149 'defines': [ |
| 150 'USE_EABI_HARDFLOAT=0', | 150 'USE_EABI_HARDFLOAT=0', |
| 151 ], | 151 ], |
| 152 }], | 152 }], |
| 153 # The ARM assembler assumes the host is 32 bits, | |
| 154 # so force building 32-bit host tools. | |
| 155 ['host_arch=="x64" or OS=="android"', { | |
| 156 'target_conditions': [ | |
| 157 ['_toolset=="host"', { | |
| 158 'cflags': ['-m32'], | |
| 159 'ldflags': ['-m32'], | |
| 160 }], | |
| 161 ], | |
| 162 }], | |
| 163 ], | 153 ], |
| 164 }], | 154 }], |
| 165 ['v8_target_arch=="ia32"', { | 155 ['v8_target_arch=="ia32"', { |
| 166 'defines': [ | 156 'defines': [ |
| 167 'V8_TARGET_ARCH_IA32', | 157 'V8_TARGET_ARCH_IA32', |
| 168 ], | 158 ], |
| 169 }], | 159 }], |
| 170 ['v8_target_arch=="mips"', { | 160 ['v8_target_arch=="mips"', { |
| 171 'defines': [ | 161 'defines': [ |
| 172 'V8_TARGET_ARCH_MIPS', | 162 'V8_TARGET_ARCH_MIPS', |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 'defines': [ | 201 'defines': [ |
| 212 '__mips_soft_float=1' | 202 '__mips_soft_float=1' |
| 213 ], | 203 ], |
| 214 }], | 204 }], |
| 215 ['mips_arch_variant=="mips32r2"', { | 205 ['mips_arch_variant=="mips32r2"', { |
| 216 'defines': ['_MIPS_ARCH_MIPS32R2',], | 206 'defines': ['_MIPS_ARCH_MIPS32R2',], |
| 217 }], | 207 }], |
| 218 ['mips_arch_variant=="loongson"', { | 208 ['mips_arch_variant=="loongson"', { |
| 219 'defines': ['_MIPS_ARCH_LOONGSON',], | 209 'defines': ['_MIPS_ARCH_LOONGSON',], |
| 220 }], | 210 }], |
| 221 # The MIPS assembler assumes the host is 32 bits, | |
| 222 # so force building 32-bit host tools. | |
| 223 ['host_arch=="x64"', { | |
| 224 'target_conditions': [ | |
| 225 ['_toolset=="host"', { | |
| 226 'cflags': ['-m32'], | |
| 227 'ldflags': ['-m32'], | |
| 228 }], | |
| 229 ], | |
| 230 }], | |
| 231 ], | 211 ], |
| 232 }], | 212 }], |
| 233 ['v8_target_arch=="x64"', { | 213 ['v8_target_arch=="x64"', { |
| 234 'defines': [ | 214 'defines': [ |
| 235 'V8_TARGET_ARCH_X64', | 215 'V8_TARGET_ARCH_X64', |
| 236 ], | 216 ], |
| 237 }], | 217 }], |
| 238 ], | 218 ], |
| 239 }], | 219 }], |
| 240 ['v8_use_liveobjectlist=="true"', { | 220 ['v8_use_liveobjectlist=="true"', { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 265 ['OS=="win" and v8_target_arch=="x64"', { | 245 ['OS=="win" and v8_target_arch=="x64"', { |
| 266 'msvs_settings': { | 246 'msvs_settings': { |
| 267 'VCLinkerTool': { | 247 'VCLinkerTool': { |
| 268 'StackReserveSize': '2097152', | 248 'StackReserveSize': '2097152', |
| 269 }, | 249 }, |
| 270 }, | 250 }, |
| 271 }], | 251 }], |
| 272 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 252 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 273 or OS=="netbsd"', { | 253 or OS=="netbsd"', { |
| 274 'conditions': [ | 254 'conditions': [ |
| 275 [ 'target_arch=="ia32"', { | |
| 276 'cflags': [ '-m32' ], | |
| 277 'ldflags': [ '-m32' ], | |
| 278 }], | |
| 279 [ 'v8_no_strict_aliasing==1', { | 255 [ 'v8_no_strict_aliasing==1', { |
| 280 'cflags': [ '-fno-strict-aliasing' ], | 256 'cflags': [ '-fno-strict-aliasing' ], |
| 281 }], | 257 }], |
| 282 ], # conditions | 258 ], # conditions |
| 283 }], | 259 }], |
| 284 ['OS=="solaris"', { | 260 ['OS=="solaris"', { |
| 285 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 261 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
| 286 }], | 262 }], |
| 263 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 264 or OS=="netbsd" or OS=="mac" or OS=="android") and \ |
| 265 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ |
| 266 v8_target_arch=="mips")', { |
| 267 # Check whether the host compiler and target compiler support the |
| 268 # '-m32' option and set it if so. |
| 269 'target_conditions': [ |
| 270 ['_toolset=="host"', { |
| 271 'variables': { |
| 272 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo -n "-m32" || true)', |
| 273 }, |
| 274 'cflags': [ '<(m32flag)' ], |
| 275 'ldflags': [ '<(m32flag)' ], |
| 276 }], |
| 277 ['_toolset=="target"', { |
| 278 'variables': { |
| 279 'm32flag': '<!((echo | $(echo ${CXX_target:-${CXX:-$(which g++)}})
-m32 -E - > /dev/null 2>&1) && echo -n "-m32" || true)', |
| 280 }, |
| 281 'cflags': [ '<(m32flag)' ], |
| 282 'ldflags': [ '<(m32flag)' ], |
| 283 }], |
| 284 ], |
| 285 }], |
| 287 ], # conditions | 286 ], # conditions |
| 288 'configurations': { | 287 'configurations': { |
| 289 'Debug': { | 288 'Debug': { |
| 290 'defines': [ | 289 'defines': [ |
| 291 'DEBUG', | 290 'DEBUG', |
| 292 'ENABLE_DISASSEMBLER', | 291 'ENABLE_DISASSEMBLER', |
| 293 'V8_ENABLE_CHECKS', | 292 'V8_ENABLE_CHECKS', |
| 294 'OBJECT_PRINT', | 293 'OBJECT_PRINT', |
| 295 ], | 294 ], |
| 296 'msvs_settings': { | 295 'msvs_settings': { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 'OptimizeReferences': '2', | 389 'OptimizeReferences': '2', |
| 391 'EnableCOMDATFolding': '2', | 390 'EnableCOMDATFolding': '2', |
| 392 }, | 391 }, |
| 393 }, | 392 }, |
| 394 }], # OS=="win" | 393 }], # OS=="win" |
| 395 ], # conditions | 394 ], # conditions |
| 396 }, # Release | 395 }, # Release |
| 397 }, # configurations | 396 }, # configurations |
| 398 }, # target_defaults | 397 }, # target_defaults |
| 399 } | 398 } |
| OLD | NEW |