Merge pull request #536 from yoshisuga/tvos_platform

(tvOS) support building
This commit is contained in:
Twinaphex 2019-09-11 04:56:31 +02:00 committed by GitHub
commit e4c36745a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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