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

Unified Diff: build/toolchain/android/BUILD.gn

Issue 111633004: [MIPS] Add support for Chromium-Android for MIPS build to BUILD.gn (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update tools/gn/variables.cc. Created 7 years 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/gyp_chromium ('k') | tools/gn/variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/android/BUILD.gn
diff --git a/build/toolchain/android/BUILD.gn b/build/toolchain/android/BUILD.gn
index 7710cd0f9962b013efb5be10429ccdf1ccbd72e4..67fcec1063242b1f1a5ba936558b4a14a6e7d68d 100644
--- a/build/toolchain/android/BUILD.gn
+++ b/build/toolchain/android/BUILD.gn
@@ -35,6 +35,8 @@ if (is_gyp) {
android_toolchain_arch = "x86-4.6"
} else if (cpu_arch == "arm") {
android_toolchain_arch = "arm-linux-androideabi-4.6"
+ } else if (cpu_arch == "mipsel") {
+ android_toolchain_arch = "mipsel-linux-android-4.6"
} else {
assert(false, "Need Android toolchain support for your platform.")
}
@@ -99,3 +101,14 @@ gcc_toolchain("arm") {
toolchain_cpu_arch = "arm"
toolchain_os = "android"
}
+
+gcc_toolchain("mipsel") {
+ prefix = "$android_ndk_root/toolchains/mipsel-linux-android-4.6/prebuilt/$build_os-$android_host_arch/bin/mipsel-linux-android-"
+ cc = prefix + "gcc"
+ cxx = prefix + "g++"
+ ar = prefix + "ar"
+ ld = cxx
+
+ toolchain_cpu_arch = "mipsel"
+ toolchain_os = "android"
+}
« no previous file with comments | « build/gyp_chromium ('k') | tools/gn/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698