From 0344c38af86a8deb5e8bfa7c9d4834390dde0ff3 Mon Sep 17 00:00:00 2001 From: Yoshi Sugawara Date: Fri, 13 Sep 2019 23:17:19 -0700 Subject: [PATCH] (tvOS) support building using tvOS SDK --- libretro/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libretro/Makefile b/libretro/Makefile index 33db15c1f..69e889915 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)