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

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

Issue 2161183003: Build libmonochrome.so with secondary toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: build/config/android/secondary_abi.gni
diff --git a/build/config/android/secondary_abi.gni b/build/config/android/secondary_abi.gni
new file mode 100644
index 0000000000000000000000000000000000000000..bba46ad2afbb572fa233fca72fb6d6336beebe21
--- /dev/null
+++ b/build/config/android/secondary_abi.gni
@@ -0,0 +1,37 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This file contains common secondary abi config for the Android build.
+
+if (target_os == "android") {
+ 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 for 32-bit
+ # target_cpu, since they are not used.
+ if (target_cpu == "arm64") {
+ android_secondary_abi_cpu = "arm"
+ } else if (target_cpu == "x64") {
+ android_secondary_abi_cpu = "x86"
+ } else if (target_cpu == "mips64el") {
+ android_secondary_abi_cpu = "mipsel"
+ }
+
+ if (defined(android_secondary_abi_cpu)) {
+ _android_secondary_abi_cpu_with_v8 =
+ "${android_secondary_abi_cpu}_v8_${android_secondary_abi_cpu}"
+ if (is_clang) {
+ android_secondary_abi_toolchain = "//build/toolchain/android:clang_${_android_secondary_abi_cpu_with_v8}"
+ } else {
+ android_secondary_abi_toolchain =
+ "//build/toolchain/android:${_android_secondary_abi_cpu_with_v8}"
+ }
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698