libnx port

Miguel Castiblanco authored
This commit is contained in:
lacastri 2018-10-07 19:30:11 -05:00 committed by GitHub
parent e386c13571
commit c2f6e868a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

3
.gitignore vendored
View File

@ -13,3 +13,6 @@ sdl/build_sdl
sdl/build_sdl2 sdl/build_sdl2
/libretro/msvc/msvc-2017/msvc-2017.vcxproj.user /libretro/msvc/msvc-2017/msvc-2017.vcxproj.user
*.o
*.a

View File

@ -240,6 +240,15 @@ else ifeq ($(platform), switch)
STATIC_LINKING=1 STATIC_LINKING=1
STATIC_LINKING_LINK=1 STATIC_LINKING_LINK=1
# Nintendo Switch (libnx)
else ifeq ($(platform), libnx)
include $(DEVKITPRO)/libnx/switch_rules
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CFLAGS += -D__SWITCH__ -DHAVE_LIBNX -I$(LIBNX)/include/ -fPIE -Wl,--allow-multiple-definition -specs=$(LIBNX)/switch.specs
PLATFORM_DEFINES += -DARM -march=armv8-a -mtune=cortex-a57 -mtp=soft -DLSB_FIRST -DBYTE_ORDER=LITTLE_ENDIAN -D__LIBRETRO__ -DALIGN_LONG -DALIGN_WORD -DM68K_OVERCLOCK_SHIFT=20 -DHAVE_ZLIB
STATIC_LINKING=1
STATIC_LINKING_LINK=1
# emscripten # emscripten
else ifeq ($(platform), emscripten) else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_$(platform).bc TARGET := $(TARGET_NAME)_libretro_$(platform).bc