Skip to content

Commit

Permalink
Add support for building Android dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
icota committed Sep 19, 2019
1 parent 9bf5768 commit 0b0cff3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions depends/Makefile
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions 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
1 change: 1 addition & 0 deletions depends/packages/openssl.mk
Expand Up @@ -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
Expand Down

0 comments on commit 0b0cff3

Please sign in to comment.