(tvOS) support building using tvOS SDK

This commit is contained in:
Yoshi Sugawara 2019-09-13 23:17:19 -07:00 committed by hunterk
parent d93d4c95cb
commit bd9246ddd7
1 changed files with 14 additions and 0 deletions

View File

@ -198,6 +198,20 @@ else ifneq (,$(findstring ios,$(platform)))
CXXFLAGS += -miphoneos-version-min=5.0 CXXFLAGS += -miphoneos-version-min=5.0
endif endif
#tvOS
else ifeq ($(platform), tvos-arm64)
CFLAGS += $(LTO)
CXXFLAGS += $(LTO)
LDFLAGS += $(LTO)
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 # Theos
else ifeq ($(platform), theos_ios) else ifeq ($(platform), theos_ios)
CFLAGS += $(LTO) CFLAGS += $(LTO)