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" |
+} |