(tvOS) support building

This commit is contained in:
Yoshi Sugawara 2019-09-10 14:59:10 -10:00
parent e34300dd8d
commit 8faccaf6dc

View File

@ -135,7 +135,7 @@ else ifneq (,$(findstring ios,$(platform)))
ifeq ($(HAVE_OPENGL),1)
GL_LIB := -framework OpenGLES
endif
CC = cc -arch $(iarch) -isysroot $(IOSSDK)
CXX = c++ -arch $(iarch) -isysroot $(IOSSDK)
IPHONEMINVER :=
@ -149,6 +149,16 @@ else ifneq (,$(findstring ios,$(platform)))
CC += $(IPHONEMINVER)
CXX += $(IPHONEMINVER)
# tvOS
else ifeq ($(platform), tvos-arm64)
TARGET := $(TARGET_NAME)_libretro_tvos.dylib
fpic := -fPIC
SHARED := -dynamiclib
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
endif
# QNX
else ifeq ($(platform), qnx)
TARGET := $(TARGET_NAME)_libretro_$(platform).so