| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 'variables': { | 215 'variables': { |
| 216 # The Android toolchain needs to use the absolute path to the NDK | 216 # The Android toolchain needs to use the absolute path to the NDK |
| 217 # because it is used at different levels in the GYP files. | 217 # because it is used at different levels in the GYP files. |
| 218 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/ndk/', | 218 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/ndk/', |
| 219 'android_host_arch%': "<!(uname -m | sed -e 's/i[3456]86/x86/')", | 219 'android_host_arch%': "<!(uname -m | sed -e 's/i[3456]86/x86/')", |
| 220 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", | 220 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
| 221 }, | 221 }, |
| 222 | 222 |
| 223 # Copy conditionally-set variables out one scope. | 223 # Copy conditionally-set variables out one scope. |
| 224 'android_ndk_root%': '<(android_ndk_root)', | 224 'android_ndk_root%': '<(android_ndk_root)', |
| 225 'host_os%': '<(host_os)', |
| 225 | 226 |
| 226 'conditions': [ | 227 'conditions': [ |
| 227 ['target_arch == "ia32"', { | 228 ['target_arch == "ia32"', { |
| 228 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
uilt/<(host_os)-<(android_host_arch)/bin', | 229 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
uilt/<(host_os)-<(android_host_arch)/bin', |
| 230 'android_target_arch%': 'x86', |
| 231 'android_target_platform%': '16', |
| 229 }], | 232 }], |
| 230 ['target_arch == "x64"', { | 233 ['target_arch == "x64"', { |
| 231 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p
rebuilt/<(host_os)-<(android_host_arch)/bin', | 234 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p
rebuilt/<(host_os)-<(android_host_arch)/bin', |
| 235 'android_target_arch%': 'x86_64', |
| 236 'android_target_platform%': '21', |
| 232 }], | 237 }], |
| 233 ['target_arch=="arm"', { | 238 ['target_arch=="arm"', { |
| 234 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 239 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 240 'android_target_arch%': 'arm', |
| 241 'android_target_platform%': '16', |
| 242 'arm_version%': 7, |
| 235 }], | 243 }], |
| 236 ['target_arch == "arm64"', { | 244 ['target_arch == "arm64"', { |
| 237 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 245 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 246 'android_target_arch%': 'arm64', |
| 247 'android_target_platform%': '21', |
| 248 'arm_version%': 'default', |
| 238 }], | 249 }], |
| 239 ['target_arch == "mipsel"', { | 250 ['target_arch == "mipsel"', { |
| 240 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 251 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 252 'android_target_arch%': 'mips', |
| 253 'android_target_platform%': '16', |
| 241 }], | 254 }], |
| 242 ['target_arch == "mips64el"', { | 255 ['target_arch == "mips64el"', { |
| 243 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 256 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 257 'android_target_arch%': 'mips64', |
| 258 'android_target_platform%': '21', |
| 244 }], | 259 }], |
| 245 ], | 260 ], |
| 246 }, | 261 }, |
| 247 | 262 |
| 248 # Copy conditionally-set variables out one scope. | 263 # Copy conditionally-set variables out one scope. |
| 264 'android_target_arch%': '<(android_target_arch)', |
| 265 'android_target_platform%': '<(android_target_platform)', |
| 249 'android_toolchain%': '<(android_toolchain)', | 266 'android_toolchain%': '<(android_toolchain)', |
| 267 'arm_version%': '<(arm_version)', |
| 268 'host_os%': '<(host_os)', |
| 250 | 269 |
| 251 'conditions': [ | 270 'conditions': [ |
| 252 ['android_ndk_root==""', { | 271 ['android_ndk_root==""', { |
| 253 'variables': { | 272 'variables': { |
| 254 'android_sysroot': '<(android_toolchain)/sysroot/', | 273 'android_sysroot': '<(android_toolchain)/sysroot/', |
| 255 'android_stlport': '<(android_toolchain)/sources/cxx-stl/stlport/'
, | 274 'android_stlport': '<(android_toolchain)/sources/cxx-stl/stlport/'
, |
| 256 }, | 275 }, |
| 257 'android_include': '<(android_sysroot)/usr/include', | 276 'android_include': '<(android_sysroot)/usr/include', |
| 258 'conditions': [ | 277 'conditions': [ |
| 259 ['target_arch=="x64"', { | 278 ['target_arch=="x64"', { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 # fp32 - 32 32-bit FPU registers are available, doubles are placed in | 322 # fp32 - 32 32-bit FPU registers are available, doubles are placed in |
| 304 # register pairs. | 323 # register pairs. |
| 305 # fp64 - 32 64-bit FPU registers are available. | 324 # fp64 - 32 64-bit FPU registers are available. |
| 306 # fpxx - compatibility mode, it chooses fp32 or fp64 depending on runtime | 325 # fpxx - compatibility mode, it chooses fp32 or fp64 depending on runtime |
| 307 # detection | 326 # detection |
| 308 'mips_fpu_mode%': 'fp32', | 327 'mips_fpu_mode%': 'fp32', |
| 309 }, | 328 }, |
| 310 'target_defaults': { | 329 'target_defaults': { |
| 311 'variables': { | 330 'variables': { |
| 312 'v8_code%': '<(v8_code)', | 331 'v8_code%': '<(v8_code)', |
| 332 'conditions':[ |
| 333 ['OS=="android"', { |
| 334 'host_os%': '<(host_os)', |
| 335 }], |
| 336 ], |
| 313 }, | 337 }, |
| 314 'default_configuration': 'Debug', | 338 'default_configuration': 'Debug', |
| 315 'configurations': { | 339 'configurations': { |
| 316 'DebugBaseCommon': { | 340 'DebugBaseCommon': { |
| 317 'conditions': [ | 341 'conditions': [ |
| 318 ['OS=="aix"', { | 342 ['OS=="aix"', { |
| 319 'cflags': [ '-g', '-Og', '-gxcoff' ], | 343 'cflags': [ '-g', '-Og', '-gxcoff' ], |
| 320 }, { | 344 }, { |
| 321 'cflags': [ '-g', '-O0' ], | 345 'cflags': [ '-g', '-O0' ], |
| 322 }], | 346 }], |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 1039 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
| 1016 'make_global_settings': [ | 1040 'make_global_settings': [ |
| 1017 ['CC_wrapper', '<(gomadir)/gomacc'], | 1041 ['CC_wrapper', '<(gomadir)/gomacc'], |
| 1018 ['CXX_wrapper', '<(gomadir)/gomacc'], | 1042 ['CXX_wrapper', '<(gomadir)/gomacc'], |
| 1019 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 1043 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
| 1020 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 1044 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
| 1021 ], | 1045 ], |
| 1022 }], | 1046 }], |
| 1023 ], | 1047 ], |
| 1024 } | 1048 } |
| OLD | NEW |