aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/depends/hosts')
-rw-r--r--contrib/depends/hosts/android.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/depends/hosts/android.mk b/contrib/depends/hosts/android.mk
new file mode 100644
index 000000000..2a24435d4
--- /dev/null
+++ b/contrib/depends/hosts/android.mk
@@ -0,0 +1,20 @@
+ANDROID_API=21
+
+ifeq ($(host_arch),arm)
+host_toolchain=arm-linux-androideabi-
+endif
+
+android_CC=$(host_toolchain)clang
+android_CXX=$(host_toolchain)clang++
+
+android_CFLAGS=-pipe
+android_CXXFLAGS=$(android_CFLAGS)
+
+android_release_CFLAGS=-O2
+android_release_CXXFLAGS=$(android_release_CFLAGS)
+
+android_debug_CFLAGS=-g -O0
+android_debug_CXXFLAGS=$(android_debug_CFLAGS)
+
+android_native_toolchain=android_ndk
+