Index: build/config/android/config.gni |
diff --git a/build/config/android/config.gni b/build/config/android/config.gni |
index 0105a64eef104958e36b127d4c65739dece6e106..cebf4de6b7c1dc41a9a53cddee6ece7dbad909df 100644 |
--- a/build/config/android/config.gni |
+++ b/build/config/android/config.gni |
@@ -50,9 +50,9 @@ if (is_android) { |
# Defines the name the Android build gives to the current host CPU |
# architecture, which is different than the names GN uses. |
- if (build_cpu_arch == "x64") { |
+ if (host_cpu == "x64") { |
android_host_arch = "x86_64" |
- } else if (build_cpu_arch == "x86") { |
+ } else if (host_cpu == "x86") { |
android_host_arch = "x86" |
} else { |
assert(false, "Need Android toolchain support for your build CPU arch.") |
@@ -60,7 +60,7 @@ if (is_android) { |
# Defines the name the Android build gives to the current host CPU |
# architecture, which is different than the names GN uses. |
- if (build_os == "linux") { |
+ if (host_os == "linux") { |
android_host_os = "linux" |
} else { |
assert(false, "Need Android toolchain support for your build OS.") |
@@ -119,32 +119,32 @@ if (is_android) { |
# Location of libgcc. This is only needed for the current GN toolchain, so we |
# only need to define the current one, rather than one for every platform |
# like the toolchain roots. |
- if (cpu_arch == "x86") { |
+ if (current_cpu == "x86") { |
android_prebuilt_arch = "android-x86" |
_binary_prefix = "i686-linux-android" |
android_toolchain_root = "$x86_android_toolchain_root" |
android_libgcc_file = "$android_toolchain_root/lib/gcc/i686-linux-android/${_android_toolchain_version}/libgcc.a" |
- } else if (cpu_arch == "arm") { |
+ } else if (current_cpu == "arm") { |
android_prebuilt_arch = "android-arm" |
_binary_prefix = "arm-linux-androideabi" |
android_toolchain_root = "$arm_android_toolchain_root" |
android_libgcc_file = "$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_toolchain_version}/libgcc.a" |
- } else if (cpu_arch == "mipsel") { |
+ } else if (current_cpu == "mipsel") { |
android_prebuilt_arch = "android-mips" |
_binary_prefix = "mipsel-linux-android" |
android_toolchain_root = "$mips_android_toolchain_root" |
android_libgcc_file = "$android_toolchain_root/lib/gcc/mipsel-linux-android/${_android_toolchain_version}/libgcc.a" |
- } else if (cpu_arch == "x64") { |
+ } else if (current_cpu == "x64") { |
android_prebuilt_arch = "android-x86_64" |
_binary_prefix = "x86_64-linux-android" |
android_toolchain_root = "$x86_64_android_toolchain_root" |
android_libgcc_file = "$android_toolchain_root/lib/gcc/x86_64-linux-android/${_android_toolchain_version}/libgcc.a" |
- } else if (cpu_arch == "arm64") { |
+ } else if (current_cpu == "arm64") { |
android_prebuilt_arch = "android-arm64" |
_binary_prefix = "aarch64-linux-android" |
android_toolchain_root = "$arm64_android_toolchain_root" |
android_libgcc_file = "$android_toolchain_root/lib/gcc/aarch64-linux-android/${_android_toolchain_version}/libgcc.a" |
- } else if (cpu_arch == "mips64el") { |
+ } else if (current_cpu == "mips64el") { |
android_prebuilt_arch = "android-mips64" |
_binary_prefix = "mips64el-linux-android" |
android_toolchain_root = "$mips64_android_toolchain_root" |
@@ -169,25 +169,25 @@ if (is_android) { |
# ABI ------------------------------------------------------------------------ |
- if (cpu_arch == "x86") { |
+ if (current_cpu == "x86") { |
android_app_abi = "x86" |
- } else if (cpu_arch == "arm") { |
+ } else if (current_cpu == "arm") { |
import("//build/config/arm.gni") |
if (arm_version < 7) { |
android_app_abi = "armeabi" |
} else { |
android_app_abi = "armeabi-v7a" |
} |
- } else if (cpu_arch == "mipsel") { |
+ } else if (current_cpu == "mipsel") { |
android_app_abi = "mips" |
- } else if (cpu_arch == "x64") { |
+ } else if (current_cpu == "x64") { |
android_app_abi = "x86_64" |
- } else if (cpu_arch == "arm64") { |
+ } else if (current_cpu == "arm64") { |
android_app_abi = "arm64-v8a" |
- } else if (cpu_arch == "mips64el") { |
+ } else if (current_cpu == "mips64el") { |
android_app_abi = "mips64" |
} else { |
- assert(false, "Unknown Android ABI: " + cpu_arch) |
+ assert(false, "Unknown Android ABI: " + current_cpu) |
} |
} else { |
if (!defined(is_android_webview_build)) { |