Skip to content

Commit 0b0cff3

Browse files
committed
Add support for building Android dependencies
1 parent 9bf5768 commit 0b0cff3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

depends/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ full_host_os:=$(subst $(host_arch)-$(host_vendor)-,,$(canonical_host))
5555
host_os:=$(findstring linux,$(full_host_os))
5656
host_os+=$(findstring darwin,$(full_host_os))
5757
host_os+=$(findstring mingw32,$(full_host_os))
58+
59+
ifeq (android,$(findstring android,$(full_host_os)))
60+
host_os:=android
61+
endif
62+
5863
host_os:=$(strip $(host_os))
5964
ifeq ($(host_os),)
6065
host_os=$(full_host_os)

depends/hosts/android.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
android_AR=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)-ar
2+
android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang++
3+
android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang

depends/packages/openssl.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ $(package)_config_opts_riscv64_linux=linux-generic64
5757
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
5858
$(package)_config_opts_x86_64_mingw32=mingw64
5959
$(package)_config_opts_i686_mingw32=mingw
60+
$(package)_config_opts_android=linux-generic64
6061
endef
6162

6263
define $(package)_preprocess_cmds

0 commit comments

Comments
 (0)