Add iOS 9 rules

This commit is contained in:
twinaphex 2015-10-16 03:05:03 +02:00
parent c381e8b1c7
commit 7d8d5f1026

View File

@ -74,7 +74,8 @@ else ifeq ($(platform), osx)
endif endif
# iOS # iOS
else ifeq ($(platform), ios) else ifneq (,$(findstring ios,$(platform)))
TARGET := $(TARGET_NAME)_libretro_ios.dylib TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC fpic := -fPIC
SHARED := -dynamiclib SHARED := -dynamiclib
@ -85,13 +86,14 @@ else ifeq ($(platform), ios)
IOSSDK := $(shell xcrun -sdk iphoneos -show-sdk-path) IOSSDK := $(shell xcrun -sdk iphoneos -show-sdk-path)
endif endif
CC = clang -arch armv7 -isysroot $(IOSSDK) CC = cc -arch armv7 -isysroot $(IOSSDK)
OSXVER = `sw_vers -productVersion | cut -d. -f 2` ifeq ($(platform),ios9)
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"` CC += -miphoneos-version-min=8.0
ifeq ($(OSX_LT_MAVERICKS),"YES") PLATFORM_DEFINES += -miphoneos-version-min=8.0
else
CC += -miphoneos-version-min=5.0 CC += -miphoneos-version-min=5.0
PLATFORM_DEFINES += -miphoneos-version-min=5.0 PLATFORM_DEFINES += -miphoneos-version-min=5.0
endif endif
# Theos # Theos
else ifeq ($(platform), theos_ios) else ifeq ($(platform), theos_ios)