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

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

Issue 2138163002: try v8 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
« no previous file with comments | « build/config/android/config.gni ('k') | build/config/arm.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..582a85d9412b61bbb9aea96f5cfbaf1127b3e6f8
--- /dev/null
+++ b/build/config/android/secondary_abi.gni
@@ -0,0 +1,38 @@
+# 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
+ _v8_toolchain_cpu = "x86"
+ } else {
+ assert(false, "Unknown target CPU: $target_cpu")
+ }
+
+ # Intentionally do not define android_app_secondary_abi_toolchain for 32-bit
+ # android_app_abi, 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}"
+ }
+ }
+}
« no previous file with comments | « build/config/android/config.gni ('k') | build/config/arm.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698