Skip to content

Commit

Permalink
Merge pull request #227 from yoshisuga/tvos_support
Browse files Browse the repository at this point in the history
(tvOS) support building using tvOS SDK
  • Loading branch information
inactive123 committed Sep 14, 2019
2 parents 94fd459 + 0344c38 commit 29b78df
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libretro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 29b78df

Please sign in to comment.