mirror of
https://github.com/libretro/prosystem-libretro.git
synced 2024-12-02 13:28:18 +00:00
Add iOS 9 rules
This commit is contained in:
parent
55052ad8af
commit
7c8059cbe5
14
Makefile
14
Makefile
@ -53,19 +53,21 @@ else ifeq ($(platform), osx)
|
|||||||
fpic += -mmacosx-version-min=10.1
|
fpic += -mmacosx-version-min=10.1
|
||||||
|
|
||||||
# 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
|
||||||
ifeq ($(IOSSDK),)
|
ifeq ($(IOSSDK),)
|
||||||
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
|
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
|
||||||
endif
|
endif
|
||||||
CC = clang -arch armv7 -isysroot $(IOSSDK)
|
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
||||||
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
|
|
||||||
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
|
ifeq ($(platform),ios9)
|
||||||
ifeq ($(OSX_LT_MAVERICKS),"YES")
|
CC += -miphoneos-version-min=8.0
|
||||||
SHARED += -miphoneos-version-min=5.0
|
SHARED += -miphoneos-version-min=8.0
|
||||||
|
else
|
||||||
CC += -miphoneos-version-min=5.0
|
CC += -miphoneos-version-min=5.0
|
||||||
|
SHARED += -miphoneos-version-min=5.0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Theos
|
# Theos
|
||||||
|
Loading…
Reference in New Issue
Block a user