Add libnx dist-cores target

This commit is contained in:
M4xw 2018-09-28 01:10:25 +02:00
parent 520f242051
commit 6195f6360a

View File

@ -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