Libretro: support building using tvOS SDK

This commit is contained in:
Yoshi Sugawara 2019-09-14 00:02:05 -07:00 committed by Stephen Anthony
parent f0ddb8caa8
commit bdaf55bb1c
1 changed files with 13 additions and 0 deletions

View File

@ -162,6 +162,19 @@ else ifneq (,$(findstring ios,$(platform)))
CXXFLAGS += -miphoneos-version-min=5.0
endif
# tvOS
else ifeq ($(platform), tvos-arm64)
CXXFLAGS += $(LTO) $(PTHREAD_FLAGS) -stdlib=libc++
LDFLAGS += $(LTO) $(PTHREAD_FLAGS) -stdlib=libc++
TARGET := $(TARGET_NAME)_libretro_tvos.dylib
fpic := -fPIC
SHARED := -dynamiclib
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
endif
CXXFLAGS += -DIOS
CXXFLAGS += -DARM
# Theos
else ifeq ($(platform), theos_ios)
CXXFLAGS += $(LTO)