mirror of
https://github.com/libretro/beetle-wswan-libretro.git
synced 2024-11-23 07:59:40 +00:00
libnx port
This commit is contained in:
parent
b4dc85b0ad
commit
06219d4134
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,4 +3,4 @@
|
|||||||
*.dll
|
*.dll
|
||||||
*.dylib
|
*.dylib
|
||||||
/old
|
/old
|
||||||
|
*.a
|
||||||
|
15
Makefile
15
Makefile
@ -215,6 +215,21 @@ else ifneq (,$(filter $(platform), ngc wii wiiu))
|
|||||||
ENDIANNESS_DEFINES += -DHW_DOL -mrvl
|
ENDIANNESS_DEFINES += -DHW_DOL -mrvl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Nintendo Switch (libnx)
|
||||||
|
else ifeq ($(platform), libnx)
|
||||||
|
include $(DEVKITPRO)/libnx/switch_rules
|
||||||
|
EXT=a
|
||||||
|
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
|
||||||
|
DEFINES := -DSWITCH=1 -U__linux__ -U__linux -DRARCH_INTERNAL
|
||||||
|
CFLAGS := $(DEFINES) -g \
|
||||||
|
-O3 \
|
||||||
|
-fPIE -I$(LIBNX)/include/ -ffunction-sections -fdata-sections -ftls-model=local-exec -Wl,--allow-multiple-definition -specs=$(LIBNX)/switch.specs
|
||||||
|
CFLAGS += $(INCDIRS)
|
||||||
|
CFLAGS += $(INCLUDE) -D__SWITCH__ -DHAVE_LIBNX -DARM -march=armv8-a -mtune=cortex-a57 -mtp=soft -fomit-frame-pointer -ffast-math
|
||||||
|
CXXFLAGS := $(ASFLAGS) $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
|
||||||
|
CFLAGS += -std=gnu11
|
||||||
|
STATIC_LINKING = 1
|
||||||
|
|
||||||
# Emscripten
|
# Emscripten
|
||||||
else ifeq ($(platform), emscripten)
|
else ifeq ($(platform), emscripten)
|
||||||
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
|
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
|
||||||
|
Loading…
Reference in New Issue
Block a user