diff --git a/libretro/Makefile b/libretro/Makefile index 33db15c1..69e88991 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -198,6 +198,20 @@ else ifneq (,$(findstring ios,$(platform))) CXXFLAGS += -miphoneos-version-min=5.0 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 else ifeq ($(platform), theos_ios) CFLAGS += $(LTO)