Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2790)

Unified Diff: build/config/android/config.gni

Issue 2161183003: Build libmonochrome.so with secondary toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the v8_foo toolchain & address comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/config.gni
diff --git a/build/config/android/config.gni b/build/config/android/config.gni
index 24852d555dd061c2b5f145b352fbc933aea0a8ad..052307e7060560774a176b7147d0e727b3592fd5 100644
--- a/build/config/android/config.gni
+++ b/build/config/android/config.gni
@@ -266,11 +266,8 @@ if (is_android) {
# ABI ------------------------------------------------------------------------
- # Intentionally do not define android_app_secondary_abi for 64-bit
- # android_app_abi, since they are not used.
if (current_cpu == "x86") {
android_app_abi = "x86"
- android_app_secondary_abi = "x86_64"
} else if (current_cpu == "arm") {
import("//build/config/arm.gni")
if (arm_version < 7) {
@@ -278,10 +275,8 @@ if (is_android) {
} else {
android_app_abi = "armeabi-v7a"
}
- android_app_secondary_abi = "arm64-v8a"
} else if (current_cpu == "mipsel") {
android_app_abi = "mips"
- android_app_secondary_abi = "mips64"
} else if (current_cpu == "x64") {
android_app_abi = "x86_64"
} else if (current_cpu == "arm64") {
@@ -295,4 +290,37 @@ if (is_android) {
if (android_libcpp_lib_dir == "") {
android_libcpp_lib_dir = "${android_libcpp_root}/libs/${android_app_abi}"
}
+
+ # Secondary ABI -------------------------------------------------------------
+ if (target_cpu == "arm64" || target_cpu == "x64" || target_cpu == "mips64el") {
+ android_64bit_target_cpu = true
+ } else if (target_cpu == "arm" || target_cpu == "x86" ||
+ target_cpu == "mipsel") {
+ android_64bit_target_cpu = false
+ } else {
+ assert(false, "Unknown target CPU: $target_cpu")
+ }
+
+ # Intentionally do not define android_app_secondary_abi_cpu and
+ # android_app_secondary_abi for 32-bit target_cpu, since they are not used.
+ if (target_cpu == "arm64") {
+ android_secondary_abi_cpu = "arm"
+ android_app_secondary_abi = "armeabi-v7a"
+ } else if (target_cpu == "x64") {
+ android_secondary_abi_cpu = "x86"
+ android_app_secondary_abi = "x86"
+ } else if (target_cpu == "mips64el") {
+ android_secondary_abi_cpu = "mipsel"
+ android_app_secondary_abi = "mips"
+ }
+
+ if (defined(android_secondary_abi_cpu)) {
+ if (is_clang) {
+ android_secondary_abi_toolchain =
+ "//build/toolchain/android:clang_${android_secondary_abi_cpu}"
+ } else {
+ android_secondary_abi_toolchain =
+ "//build/toolchain/android:${android_secondary_abi_cpu}"
+ }
+ }
}
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698