Skip to content

Commit

Permalink
Merge pull request #42 from yoshisuga/tvos_support
Browse files Browse the repository at this point in the history
(iOS/tvOS) support building
  • Loading branch information
inactive123 authored Sep 14, 2019
2 parents c1f7d09 + ba8f20c commit b074e8b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif

DEFINES := -DIOS
CXXFLAGS += $(DEFINES)
DEFINES := -DIOS -Wno-error=implicit-function-declaration
CXXFLAGS += $(DEFINES) -stdlib=libc++
CFLAGS += $(DEFINES)
CC = cc -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
Expand All @@ -98,6 +98,20 @@ else
CXXFLAGS += -miphoneos-version-min=5.0
CFLAGS += -miphoneos-version-min=5.0
endif

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

DEFINES := -DIOS -Wno-error=implicit-function-declaration
CXXFLAGS += $(DEFINES) -stdlib=libc++
CFLAGS += $(DEFINES)

else ifneq (,$(findstring qnx,$(platform)))
TARGET := $(TARGET_NAME)_libretro_qnx.so
fpic := -fPIC
Expand Down

0 comments on commit b074e8b

Please sign in to comment.