ios support

This commit is contained in:
jet082 2019-11-17 04:16:07 -08:00
parent e7bf0bb74a
commit cdc70b1d56

View File

@ -107,8 +107,8 @@ else ifeq ($(platform), osx)
# iOS
else ifneq (,$(findstring ios,$(platform)))
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
SHARED := -dynamiclib
fpic := -fPIC
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif
@ -117,6 +117,7 @@ else ifneq (,$(findstring ios,$(platform)))
else
CC = clang -arch armv7 -isysroot $(IOSSDK)
endif
LD = $(CC)
CFLAGS += -DIOS
CFLAGS += -DARM
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))