mirror of
https://github.com/libretro/neocd_libretro.git
synced 2024-12-02 14:26:27 +00:00
Expand iOS rules
This commit is contained in:
parent
67364b8949
commit
18a496f7b0
23
Makefile
23
Makefile
@ -95,28 +95,27 @@ else ifneq (,$(findstring ios,$(platform)))
|
||||
TARGET := $(TARGET_NAME)_libretro_ios.dylib
|
||||
fpic := -fPIC
|
||||
SHARED := -dynamiclib
|
||||
DEFINES := -DIOS
|
||||
MINVERSION=
|
||||
|
||||
ifeq ($(IOSSDK),)
|
||||
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
|
||||
endif
|
||||
ifeq ($(platform),ios-arm64)
|
||||
CC = cc -arch arm64 -isysroot $(IOSSDK)
|
||||
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
|
||||
CC = clang -arch arm64 -isysroot $(IOSSDK) -stdlib=libc++
|
||||
CXX = clang++ -arch arm64 -isysroot $(IOSSDK) -stdlib=libc++
|
||||
else
|
||||
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
||||
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
|
||||
CC = clang -arch armv7 -isysroot $(IOSSDK)
|
||||
CXX = clang++ -arch armv7 -isysroot $(IOSSDK)
|
||||
endif
|
||||
|
||||
DEFINES := -DIOS
|
||||
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
||||
ifeq ($(platform),ios9)
|
||||
CC += -miphoneos-version-min=8.0
|
||||
CXXFLAGS += -miphoneos-version-min=8.0
|
||||
DEFINES += -stdlib=libc++
|
||||
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
|
||||
MINVERSION = -miphoneos-version-min=9.0
|
||||
else
|
||||
CC += -miphoneos-version-min=5.0
|
||||
CXXFLAGS += -miphoneos-version-min=5.0
|
||||
MINVERSION = -miphoneos-version-min=5.0
|
||||
endif
|
||||
CFLAGS += $(MINVERSION)
|
||||
CXXFLAGS += $(MINVERSION)
|
||||
|
||||
else ifeq ($(platform), tvos-arm64)
|
||||
TARGET := $(TARGET_NAME)_libretro_tvos.dylib
|
||||
|
Loading…
Reference in New Issue
Block a user