Add Switch target

This commit is contained in:
twinaphex 2018-01-04 23:07:47 +01:00
parent f6f8361dc4
commit a907bcc7d3

View File

@ -220,6 +220,14 @@ else ifeq ($(platform), wiiu)
CFLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING = 1
# Nintendo Switch (libtransistor)
else ifeq ($(platform), switch)
EXT=a
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
STATIC_LINKING=1
CFLAGS += -DHAVE_STRLWR
else ifneq (,$(findstring armv,$(platform)))
EXT?=so
TARGET := $(TARGET_NAME)_libretro.$(EXT)