Add iOS 9 rules

This commit is contained in:
twinaphex 2015-10-16 03:04:06 +02:00
parent a93bb43bc8
commit 98d327daa5
1 changed files with 10 additions and 8 deletions

View File

@ -111,7 +111,8 @@ else ifeq ($(platform), osx)
endif
# iOS
else ifeq ($(platform), ios)
else ifneq (,$(findstring ios,$(platform)))
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
SHARED := -dynamiclib
@ -121,14 +122,15 @@ else ifeq ($(platform), ios)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif
CC = clang -arch armv7 -isysroot $(IOSSDK)
CC = cc -arch armv7 -isysroot $(IOSSDK)
CFLAGS += -DIOS -DHAVE_POSIX_MEMALIGN -marm
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
ifeq ($(OSX_LT_MAVERICKS),"YES")
CC += -miphoneos-version-min=5.0
CFLAGS += -miphoneos-version-min=5.0
endif
ifeq ($(platform),ios9)
CC += -miphoneos-version-min=8.0
CFLAGS += -miphoneos-version-min=8.0
else
CC += -miphoneos-version-min=5.0
CFLAGS += -miphoneos-version-min=5.0
endif
# iOS Theos
else ifeq ($(platform), theos_ios)