From bd9246ddd75a5e9f78d6189c8c57754d843630f7 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 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)