From 6195f6360a0939caf313d4d5f6073a6150123411 Mon Sep 17 00:00:00 2001 From: M4xw Date: Fri, 28 Sep 2018 01:10:25 +0200 Subject: [PATCH] Add libnx dist-cores target --- dist-scripts/dist-cores.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dist-scripts/dist-cores.sh b/dist-scripts/dist-cores.sh index 190c52731e..04b2c2b2d2 100755 --- a/dist-scripts/dist-cores.sh +++ b/dist-scripts/dist-cores.sh @@ -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