Skip to content

Commit

Permalink
Add libnx dist-cores target
Browse files Browse the repository at this point in the history
  • Loading branch information
m4xw committed Sep 27, 2018
1 parent 520f242 commit 6195f63
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dist-scripts/dist-cores.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6195f63

Please sign in to comment.