mirror of
https://github.com/libretro/xrick-libretro.git
synced 2024-11-23 08:19:47 +00:00
Add Switch target
This commit is contained in:
parent
26230324ae
commit
52c19f5fbb
@ -75,6 +75,31 @@ else ifeq ($(platform), wii)
|
||||
STATIC_LINKING=1
|
||||
STATIC_LINKING_LINK=1
|
||||
|
||||
# Nintendo WiiU
|
||||
else ifeq ($(platform), wiiu)
|
||||
TARGET := $(TARGET_NAME)_libretro_wiiu.a
|
||||
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
|
||||
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
|
||||
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
|
||||
BAKE_IN_ZLIB=1
|
||||
CFLAGS += -DSDL_BYTEORDER=SDL_BIG_ENDIAN -DMSB_FIRST -DBYTE_ORDER=BIG_ENDIAN -DBYTE_ORDER=BIG_ENDIAN \
|
||||
-DHAVE_ASPRINTF -I$(DEVKITPRO)/libogc/include \
|
||||
-D__powerpc__ -D__POWERPC__ -DGEKKO -DWIIU -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
|
||||
SHARED := -lm -lc
|
||||
PLATFLAGS := -DALIGN_DWORD
|
||||
WANT_ZLIB=1
|
||||
STATIC_LINKING=1
|
||||
STATIC_LINKING_LINK=1
|
||||
|
||||
# Nintendo Switch (libtransistor)
|
||||
else ifeq ($(platform), switch)
|
||||
EXT=a
|
||||
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
|
||||
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
|
||||
WANT_ZLIB=1
|
||||
PLATFLAGS := -DALIGN_DWORD
|
||||
STATIC_LINKING=1
|
||||
|
||||
else ifeq ($(platform), ps3)
|
||||
TARGET := $(TARGET_NAME)_libretro_ps3.a
|
||||
CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
|
||||
|
Loading…
Reference in New Issue
Block a user