libretro-super/libretro-build.sh

201 lines
4.7 KiB
Bash
Raw Normal View History

2011-11-02 15:27:23 +00:00
#!/bin/sh
die()
{
echo $1
2012-04-16 17:33:18 +00:00
#exit 1
2011-11-02 15:27:23 +00:00
}
2012-04-16 17:33:18 +00:00
build_libretro_bsnes()
2011-11-02 15:27:23 +00:00
{
if [ -z "$CC" ]; then
CC=gcc
fi
2012-04-16 17:33:18 +00:00
if [ -d "libretro-bsnes/perf" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building bSNES performance ==="
cd libretro-bsnes/perf/bsnes
make compiler="$CC" ui=target-libretro profile=performance -j4 || die "Failed to build bSNES performance core"
cp -f out/libretro.so ../../libretro-bsnes-performance.so
cd ../../..
2011-11-02 15:27:23 +00:00
else
echo "bSNES performance not fetched, skipping ..."
fi
2012-04-16 17:33:18 +00:00
if [ -d "libretro-bsnes/compat" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building bSNES compatibility ==="
cd libretro-bsnes/compat/bsnes
make compiler="$CC" ui=target-libretro profile=compatibility -j4 || die "Failed to build bSNES compatibility core"
cp -f out/libretro.so ../../libretro-bsnes-compat.so
cd ../../..
2011-11-02 15:27:23 +00:00
else
echo "bSNES compat not fetched, skipping ..."
fi
2012-04-16 17:33:18 +00:00
if [ -d "libretro-bsnes" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building bSNES accuracy ==="
cd libretro-bsnes/bsnes
make compiler="$CC" ui=target-libretro profile=accuracy -j4 || die "Failed to build bSNES accuracy core"
cp -f out/libretro.so ../libretro-bsnes-accuracy.so
cd ../..
2011-11-02 15:27:23 +00:00
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_s9x()
2011-11-02 15:27:23 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-s9x" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building SNES9x ==="
2012-04-16 17:33:18 +00:00
cd libretro-s9x/libretro
2011-11-02 15:27:23 +00:00
make -j4 || die "Failed to build SNES9x"
2012-04-16 17:33:18 +00:00
cp libretro.so ../libretro-snes9x.so
2011-11-02 15:27:23 +00:00
cd ../..
else
echo "SNES9x not fetched, skipping ..."
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_s9x_next()
2011-11-08 20:20:44 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-s9x-next" ]; then
2011-11-08 20:20:44 +00:00
echo "=== Building SNES9x-Next ==="
2012-04-16 17:33:18 +00:00
cd libretro-s9x-next/
make -f Makefile.libretro -j4 || die "Failed to build SNES9x-Next"
cp libretro.so libretro-snes9x-next.so
2011-11-28 16:43:07 +00:00
cd ..
2011-11-08 20:20:44 +00:00
else
echo "SNES9x-Next not fetched, skipping ..."
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_genplus()
2011-11-02 15:27:23 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-genplus" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building Genplus GX ==="
2012-04-16 17:33:18 +00:00
cd libretro-genplus/
make -f Makefile.libretro -j4 || die "Failed to build Genplus GX"
cp libretro.so libretro-genplus.so
2011-11-28 16:43:07 +00:00
cd ..
2011-11-02 15:27:23 +00:00
else
echo "Genplus GX not fetched, skipping ..."
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_fba()
2011-11-02 15:27:23 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-fba" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building Final Burn Alpha ==="
2012-04-16 17:33:18 +00:00
cd libretro-fba/
./compile_libretro.sh make || die "Failed to build Final Burn Alpha"
2012-06-02 13:32:02 +00:00
cp src-0.2.97.26/libretro.so libretro-fba.so
2011-11-29 04:39:27 +00:00
cd ..
2011-11-02 15:27:23 +00:00
else
echo "Final Burn Alpha not fetched, skipping ..."
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_vba()
2011-11-02 15:27:23 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-vba" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building VBA-Next ==="
2012-04-16 17:33:18 +00:00
cd libretro-vba/
make -f Makefile.libretro -j4 || die "Failed to build VBA-Next"
cp libretro.so libretro-vba.so
2011-11-28 16:43:07 +00:00
cd ..
2011-11-02 15:27:23 +00:00
else
echo "VBA-Next not fetched, skipping ..."
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_bnes()
2011-11-02 15:27:23 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-bnes" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building bNES ==="
2012-04-16 17:33:18 +00:00
cd libretro-bnes
2011-11-02 15:27:23 +00:00
mkdir -p obj
make -j4 || die "Failed to build bNES"
2012-04-16 17:33:18 +00:00
cp libretro.so libretro-bnes.so
2011-11-02 15:27:23 +00:00
cd ..
else
echo "bNES not fetched, skipping ..."
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_fceu()
2011-11-02 15:27:23 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-fceu" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building FCEU ==="
2012-04-16 17:33:18 +00:00
cd libretro-fceu
make -f Makefile.libretro-fceumm -j4 || die "Failed to build FCEU"
cp libretro.so libretro-fceu.so
2011-11-28 16:43:07 +00:00
cd ..
2011-11-02 15:27:23 +00:00
else
2011-11-19 19:53:53 +00:00
echo "FCEU not fetched, skipping ..."
2011-11-02 15:27:23 +00:00
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_gambatte()
2011-11-02 15:27:23 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-gambatte" ]; then
2011-11-02 15:27:23 +00:00
echo "=== Building Gambatte ==="
2012-04-16 17:33:18 +00:00
cd libretro-gambatte/libgambatte
make -f Makefile.libretro -j4 || die "Failed to build Gambatte"
cp libretro.so ../libretro-gambatte.so
cd ../..
2011-11-02 15:27:23 +00:00
else
echo "Gambatte not fetched, skipping ..."
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_meteor()
2012-01-03 14:15:33 +00:00
{
2012-04-16 17:33:18 +00:00
if [ -d "libretro-meteor" ]; then
2012-01-03 14:15:33 +00:00
echo "=== Building Meteor ==="
2012-04-16 17:33:18 +00:00
cd libretro-meteor/libretro
2012-01-03 14:15:33 +00:00
make -j4 || die "Failed to build Meteor"
2012-04-16 17:33:18 +00:00
cp libretro.so ../libretro-meteor.so
2012-04-22 18:45:51 +00:00
cd ../..
2012-01-03 14:15:33 +00:00
else
echo "Meteor not fetched, skipping ..."
fi
}
2012-04-22 18:45:51 +00:00
build_libretro_nx()
{
if [ -d "libretro-nx" ]; then
echo "=== Building NXEngine ==="
cd libretro-nx
make -j4 || die "Failed to build NXEngine"
cp libretro.so libretro-nx.so
cd ../
else
echo "NXEngine not fetched, skipping ..."
fi
}
2011-11-02 15:27:23 +00:00
2012-05-16 21:22:42 +00:00
build_libretro_prboom()
{
if [ -d "libretro-prboom" ]; then
echo "=== Building PRBoom ==="
cd libretro-prboom
make -j4 || die "Failed to build PRBoom"
cp libretro.so libretro-prboom.so
cd ../
else
echo "PRBoom not fetched, skipping ..."
fi
}
2012-04-16 17:33:18 +00:00
build_libretro_bsnes
build_libretro_s9x
build_libretro_s9x_next
build_libretro_genplus
build_libretro_fba
build_libretro_vba
build_libretro_bnes
build_libretro_fceu
build_libretro_gambatte
build_libretro_meteor
2012-04-22 18:45:51 +00:00
build_libretro_nx
2012-05-16 21:22:42 +00:00
build_libretro_prboom
2011-11-02 15:27:23 +00:00