Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ include:
# Nintendo Switch
- project: 'libretro-infrastructure/ci-templates'
file: '/libnx-static.yml'


# Nintendo Switch 2
- project: 'libretro-infrastructure/ci-templates'
file: '/libounce-make.yml'

# PlayStation Portable
- project: 'libretro-infrastructure/ci-templates'
file: '/psp-static.yml'
Expand Down Expand Up @@ -278,6 +282,12 @@ libretro-build-libnx-aarch64:
- .libretro-libnx-static-retroarch-master
- .core-defs

# Nintendo Switch 2
libretro-build-libounce-aarch64:
extends:
- .libretro-libounce-make-aarch64
- .core-defs

# RetroFW
libretro-build-retrofw-mips32:
extends:
Expand Down
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,15 @@ else ifeq ($(platform), libnx)
CFLAGS += -std=gnu11
STATIC_LINKING = 1

# Nintendo Switch 2 (libounce)
else ifeq ($(platform), libounce)
include $(DEVKITPRO)/libounce/switch2_rules
TARGET := $(TARGET_NAME)_libretro_$(platform).elf
TARGET_NRO := $(TARGET:.elf=.nro)
fpic := -fPIC
SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
LDFLAGS += -Wl,-soname,$(TARGET_NRO)

# Nintendo WiiU
else ifeq ($(platform), wiiu)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
Expand Down Expand Up @@ -640,6 +649,10 @@ INCFLAGS += $(INCFLAGS_PLATFORM)

all: $(TARGET)

ifeq ($(platform), libounce)
all: $(TARGET_NRO)
endif

$(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING),1)
ifneq (,$(findstring msvc,$(platform)))
Expand All @@ -655,4 +668,4 @@ endif
$(CC) -c $(OBJOUT)$@ $< $(CFLAGS) $(INCFLAGS)

clean:
rm -f $(OBJECTS) $(TARGET)
rm -f $(OBJECTS) $(TARGET) $(TARGET_NRO)
Loading