aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorIgor Cota <igor@codexapertus.com>2019-05-28 03:12:59 +0200
committerIgor Cota <igor@codexapertus.com>2019-09-19 11:27:18 +0200
commit0b0cff3c61610fb56f8c5c9451ace01598117a8d (patch)
tree09de5b4a590f79b8f7d7e96d707e6e4ec95cf68d /depends
parent9bf5768dd628b3a7c30dd42b5ed477a92c4d3540 (diff)
Add support for building Android dependencies
Diffstat (limited to 'depends')
-rw-r--r--depends/Makefile5
-rw-r--r--depends/hosts/android.mk3
-rw-r--r--depends/packages/openssl.mk1
3 files changed, 9 insertions, 0 deletions
diff --git a/depends/Makefile b/depends/Makefile
index b7e9a9213e..6643b664f3 100644
--- a/depends/Makefile
+++ b/depends/Makefile
@@ -55,6 +55,11 @@ full_host_os:=$(subst $(host_arch)-$(host_vendor)-,,$(canonical_host))
host_os:=$(findstring linux,$(full_host_os))
host_os+=$(findstring darwin,$(full_host_os))
host_os+=$(findstring mingw32,$(full_host_os))
+
+ifeq (android,$(findstring android,$(full_host_os)))
+host_os:=android
+endif
+
host_os:=$(strip $(host_os))
ifeq ($(host_os),)
host_os=$(full_host_os)
diff --git a/depends/hosts/android.mk b/depends/hosts/android.mk
new file mode 100644
index 0000000000..ff1b07d55b
--- /dev/null
+++ b/depends/hosts/android.mk
@@ -0,0 +1,3 @@
+android_AR=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)-ar
+android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang++
+android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang
diff --git a/depends/packages/openssl.mk b/depends/packages/openssl.mk
index db47113b2f..6a316a308e 100644
--- a/depends/packages/openssl.mk
+++ b/depends/packages/openssl.mk
@@ -57,6 +57,7 @@ $(package)_config_opts_riscv64_linux=linux-generic64
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
$(package)_config_opts_x86_64_mingw32=mingw64
$(package)_config_opts_i686_mingw32=mingw
+$(package)_config_opts_android=linux-generic64
endef
define $(package)_preprocess_cmds