Build the HW core for tvOS

This commit is contained in:
Eric Warmenhoven 2023-05-08 11:22:04 -04:00
parent a87e483e9c
commit b4dbb67a75
2 changed files with 17 additions and 4 deletions

View File

@ -240,3 +240,8 @@ libretro-build-tvos-arm64:
extends:
- .libretro-tvos-arm64-make-default
- .core-defs
libretro-build-tvos-arm64-hw:
extends:
- .libretro-tvos-arm64-make-default
- .core-defs-hw

View File

@ -199,11 +199,19 @@ else ifeq ($(platform), tvos-arm64)
fpic := -fPIC
SHARED := -dynamiclib
HAVE_LIGHTREC = 0
FLAGS += -DHAVE_UNISTD_H
FLAGS += -DHAVE_UNISTD_H -DIOS=1 -DTVOS=1
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
endif
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcrun -sdk appletvos -show-sdk-path)
endif
ifeq ($(HAVE_OPENGL),1)
GL_LIB := -framework OpenGLES
GLES = 1
GLES3 = 1
endif
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
# QNX
else ifeq ($(platform), qnx)