mirror of
https://github.com/libretro/RetroArch
synced 2025-03-06 04:13:52 +00:00
Merge pull request #7310 from m4xw/libnx_ci
[LIBNX] Add dist-cores target
This commit is contained in:
commit
4ad6a5f683
@ -169,7 +169,7 @@ else
|
||||
endif
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
export OFILES := $(OBJ) libretro_switch.a
|
||||
export OFILES := $(OBJ) libretro_libnx.a
|
||||
export HFILES_BIN := $(addsuffix .h,$(subst .,_,$(BINFILES)))
|
||||
|
||||
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||
|
@ -35,6 +35,13 @@ platform=vita
|
||||
SALAMANDER=yes
|
||||
EXT=a
|
||||
mkdir -p ../pkg/vita/vpk
|
||||
|
||||
# Nintendo Switch (libnx)
|
||||
elif [ $PLATFORM = "libnx" ] ; then
|
||||
platform=libnx
|
||||
EXT=a
|
||||
mkdir -p ../pkg/${platform}/build/romfs
|
||||
|
||||
# CTR/3DS
|
||||
elif [ $PLATFORM = "ctr" ] ; then
|
||||
platform=ctr
|
||||
@ -207,6 +214,8 @@ for f in `ls -v *_${platform}.${EXT}`; do
|
||||
make -C ../ -f Makefile LINK=g++ $whole_archive $big_stack -j3 || exit 1
|
||||
elif [ $PLATFORM = "ctr" ]; then
|
||||
make -C ../ -f Makefile.${platform} $OPTS LIBRETRO=$name $whole_archive $big_stack -j3 || exit 1
|
||||
elif [ $PLATFORM = "libnx" ]; then
|
||||
make -C ../ -f Makefile.${platform} $OPTS APP_TITLE="$name" LIBRETRO=$name $whole_archive $big_stack -j3 || exit 1
|
||||
else
|
||||
make -C ../ -f Makefile.${platform} $OPTS $whole_archive $big_stack -j3 || exit 1
|
||||
fi
|
||||
@ -249,6 +258,9 @@ for f in `ls -v *_${platform}.${EXT}`; do
|
||||
mv -f ../retroarch_3ds.cia ../pkg/${platform}/build/cia/${name}_libretro.cia
|
||||
mv -f ../retroarch_3ds.3dsx ../pkg/${platform}/build/3dsx/${name}_libretro.3dsx
|
||||
mv -f ../retroarch_3ds.3ds ../pkg/${platform}/build/rom/${name}_libretro.3ds
|
||||
elif [ $PLATFORM = "libnx" ] ; then
|
||||
mkdir -p ../pkg/${platform}/build/libnx/
|
||||
mv -f ../retroarch_switch.nro ../pkg/${platform}/build/libnx/${name}.nro
|
||||
elif [ $PLATFORM = "unix" ] ; then
|
||||
mv -f ../retroarch ../pkg/${platform}/${name}_libretro.elf
|
||||
elif [ $PLATFORM = "ngc" ] ; then
|
||||
@ -275,6 +287,10 @@ for f in `ls -v *_${platform}.${EXT}`; do
|
||||
rm -f ../retroarch_3ds.elf
|
||||
rm -f ../retroarch_3ds.bnr
|
||||
rm -f ../retroarch_3ds.icn
|
||||
elif [ $PLATFORM = "libnx" ] ; then
|
||||
rm -f ../retroarch_switch.elf
|
||||
rm -f ../retroarch_switch.nacp
|
||||
rm -f ../retroarch_switch.nso
|
||||
elif [ $PLATFORM = "unix" ] ; then
|
||||
rm -f ../retroarch
|
||||
elif [ $PLATFORM = "ngc" ] ; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user