Introduce first class support for Android (#5772)
This commit is contained in:
parent
bbeadf184e
commit
c39e202976
15 changed files with 109 additions and 14 deletions
|
|
@ -17,6 +17,7 @@ endif
|
|||
|
||||
ucpu := $(shell sh -c 'uname -m | tr "[:upper:]" "[:lower:]"')
|
||||
uos := $(shell sh -c 'uname | tr "[:upper:]" "[:lower:]"')
|
||||
uosname := $(shell sh -c 'uname -o | tr "[:upper:]" "[:lower:]"')
|
||||
|
||||
ifeq ($(uos),linux)
|
||||
myos = linux
|
||||
|
|
@ -68,6 +69,11 @@ ifndef uos
|
|||
$(error unknown operating system: $(uos))
|
||||
endif
|
||||
|
||||
ifeq ($(uosname),android)
|
||||
myos = android
|
||||
LINK_FLAGS += -landroid-glob
|
||||
endif
|
||||
|
||||
ifeq ($(ucpu),i386)
|
||||
mycpu = i386
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue