mirror of
https://github.com/libretro/libretro-super
synced 2025-03-30 04:21:01 +00:00
Have PS3 build script depend on libretro-fetch.sh as well
This commit is contained in:
parent
2f05e85685
commit
910be05228
@ -3,10 +3,9 @@
|
||||
SCRIPT=$(readlink -f $0)
|
||||
BASE_DIR=$(dirname $SCRIPT)
|
||||
RARCH_DIR=$BASE_DIR/dist
|
||||
RARCH_DIST_DIR=$RARCH_DIR/android
|
||||
JOBS=7
|
||||
|
||||
echo $RARCH_DIR
|
||||
|
||||
die()
|
||||
{
|
||||
echo $1
|
||||
@ -24,33 +23,33 @@ build_libretro_mednafen()
|
||||
ndk-build clean || die "Failed to clean mednafen_ngp"
|
||||
ndk-build core=ngp clean || die "Failed to clean mednafen_ngp"
|
||||
ndk-build core=ngp -j$JOBS || die "Failed to build mednafen_ngp"
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_mednafen_ngp.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_mednafen_ngp.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_mednafen_ngp.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_mednafen_ngp.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_mednafen_ngp.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_mednafen_ngp.so
|
||||
|
||||
ndk-build clean || die "Failed to clean mednafen_wswan"
|
||||
ndk-build core=wswan clean || die "Failed to clean mednafen_wswan"
|
||||
ndk-build core=wswan -j$JOBS || die "Failed to build mednafen_wswan"
|
||||
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_mednafen_wswan.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_mednafen_wswan.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_mednafen_wswan.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_mednafen_wswan.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_mednafen_wswan.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_mednafen_wswan.so
|
||||
|
||||
ndk-build clean || die "Failed to clean mednafen_vb"
|
||||
ndk-build core=vb clean || die "Failed to clean mednafen_vb"
|
||||
ndk-build core=vb -j$JOBS || die "Failed to build mednafen_vb"
|
||||
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_mednafen_vb.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_mednafen_vb.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_mednafen_vb.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_mednafen_vb.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_mednafen_vb.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_mednafen_vb.so
|
||||
|
||||
ndk-build clean || die "Failed to clean mednafen_pce_fast"
|
||||
ndk-build core=pce-fast clean || die "Failed to clean mednafen_pce_fast"
|
||||
ndk-build core=pce-fast -j$JOBS || die "Failed to build mednafen_pce_fast"
|
||||
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_mednafen_pce_fast.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_mednafen_pce_fast.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_mednafen_pce_fast.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_mednafen_pce_fast.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_mednafen_pce_fast.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_mednafen_pce_fast.so
|
||||
else
|
||||
echo "Mednafen not fetched, skipping ..."
|
||||
fi
|
||||
@ -65,9 +64,9 @@ build_libretro_s9x_next()
|
||||
cd libretro/jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_snes9x_next.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_snes9x_next.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_snes9x_next.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_snes9x_next.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_snes9x_next.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_snes9x_next.so
|
||||
else
|
||||
echo "SNES9x-Next not fetched, skipping ..."
|
||||
fi
|
||||
@ -82,9 +81,9 @@ build_libretro_genplus()
|
||||
cd libretro/jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_genesis_plus_gx.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_genesis_plus_gx.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_genesis_plus_gx.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_genesis_plus_gx.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_genesis_plus_gx.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_genesis_plus_gx.so
|
||||
else
|
||||
echo "Genplus GX not fetched, skipping ..."
|
||||
fi
|
||||
@ -100,9 +99,9 @@ build_libretro_fba()
|
||||
cd projectfiles/libretro-android/jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_fba.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_fba.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_fba.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_fba.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_fba.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_fba.so
|
||||
else
|
||||
echo "Final Burn Alpha not fetched, skipping ..."
|
||||
fi
|
||||
@ -117,9 +116,9 @@ build_libretro_vba()
|
||||
cd libretro/jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_vba_next.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_vba_next.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_vba_next.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_vba_next.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_vba_next.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_vba_next.so
|
||||
else
|
||||
echo "VBA-Next not fetched, skipping ..."
|
||||
fi
|
||||
@ -134,9 +133,9 @@ build_libretro_fceu()
|
||||
cd fceumm-code/src/drivers/libretro/jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_fceumm.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_fceumm.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_fceumm.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_fceumm.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_fceumm.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_fceumm.so
|
||||
else
|
||||
echo "FCEU not fetched, skipping ..."
|
||||
fi
|
||||
@ -151,9 +150,9 @@ build_libretro_gambatte()
|
||||
cd libretro/jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_gambatte.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_gambatte.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_gambatte.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_gambatte.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_gambatte.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_gambatte.so
|
||||
else
|
||||
echo "Gambatte not fetched, skipping ..."
|
||||
fi
|
||||
@ -168,9 +167,9 @@ build_libretro_nx()
|
||||
cd jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_nxengine.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_nxengine.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_nxengine.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_nxengine.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_nxengine.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_nxengine.so
|
||||
else
|
||||
echo "NXEngine not fetched, skipping ..."
|
||||
fi
|
||||
@ -185,9 +184,9 @@ build_libretro_prboom()
|
||||
cd libretro/jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_prboom.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_prboom.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_prboom.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_prboom.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_prboom.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_prboom.so
|
||||
else
|
||||
echo "PRBoom not fetched, skipping ..."
|
||||
fi
|
||||
@ -202,9 +201,9 @@ build_libretro_nestopia()
|
||||
cd jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_nestopia.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_nestopia.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_nestopia.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_nestopia.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_nestopia.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_nestopia.so
|
||||
else
|
||||
echo "Nestopia not fetched, skipping ..."
|
||||
fi
|
||||
@ -220,10 +219,10 @@ build_libretro_pcsx_rearmed()
|
||||
cd jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS NO_NEON=1
|
||||
cp ../libs/armeabi-v7a/libretro-noneon.so $RARCH_DIR/android/armeabi-v7a/libretro_pcsx_rearmed.so
|
||||
cp ../libs/armeabi-v7a/libretro-noneon.so $RARCH_DIST_DIR/armeabi-v7a/libretro_pcsx_rearmed.so
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_pcsx_rearmed-neon.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_pcsx_rearmed-neon.so
|
||||
else
|
||||
echo "PCSX ReARMed not fetched, skipping ..."
|
||||
fi
|
||||
@ -238,9 +237,9 @@ build_libretro_tyrquake()
|
||||
cd libretro/jni
|
||||
ndk-build clean
|
||||
ndk-build -j$JOBS
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIR/android/armeabi-v7a/libretro_tyrquake.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIR/android/mips/libretro_tyrquake.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIR/android/x86/libretro_tyrquake.so
|
||||
cp ../libs/armeabi-v7a/libretro.so $RARCH_DIST_DIR/armeabi-v7a/libretro_tyrquake.so
|
||||
cp ../libs/mips/libretro.so $RARCH_DIST_DIR/mips/libretro_tyrquake.so
|
||||
cp ../libs/x86/libretro.so $RARCH_DIST_DIR/x86/libretro_tyrquake.so
|
||||
else
|
||||
echo "TyrQuake not fetched, skipping ..."
|
||||
fi
|
||||
@ -254,28 +253,28 @@ create_dist_dir()
|
||||
mkdir $RARCH_DIR
|
||||
fi
|
||||
|
||||
if [ -d $RARCH_DIR/android ]; then
|
||||
echo "Directory $RARCH_DIR/android already exists, skipping creation..."
|
||||
if [ -d $RARCH_DIST_DIR ]; then
|
||||
echo "Directory $RARCH_DIST_DIR already exists, skipping creation..."
|
||||
else
|
||||
mkdir $RARCH_DIR/android
|
||||
mkdir $RARCH_DIST_DIR
|
||||
fi
|
||||
|
||||
if [ -d $RARCH_DIR/android/armeabi-v7a ]; then
|
||||
echo "Directory $RARCH_DIR/android/armeabi-v7a already exists, skipping creation..."
|
||||
if [ -d $RARCH_DIST_DIR/armeabi-v7a ]; then
|
||||
echo "Directory $RARCH_DIST_DIR/armeabi-v7a already exists, skipping creation..."
|
||||
else
|
||||
mkdir $RARCH_DIR/android/armeabi-v7a
|
||||
mkdir $RARCH_DIST_DIR/armeabi-v7a
|
||||
fi
|
||||
|
||||
if [ -d $RARCH_DIR/android/mips ]; then
|
||||
echo "Directory $RARCH_DIR/android/mips already exists, skipping creation..."
|
||||
if [ -d $RARCH_DIST_DIR/mips ]; then
|
||||
echo "Directory $RARCH_DIST_DIR/mips already exists, skipping creation..."
|
||||
else
|
||||
mkdir $RARCH_DIR/android/mips
|
||||
mkdir $RARCH_DIST_DIR/mips
|
||||
fi
|
||||
|
||||
if [ -d $RARCH_DIR/android/x86 ]; then
|
||||
echo "Directory $RARCH_DIR/android/x86 already exists, skipping creation..."
|
||||
if [ -d $RARCH_DIST_DIR/x86 ]; then
|
||||
echo "Directory $RARCH_DIST_DIR/x86 already exists, skipping creation..."
|
||||
else
|
||||
mkdir $RARCH_DIR/android/x86
|
||||
mkdir $RARCH_DIST_DIR/x86
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
CORES_DIR=~/local-repos
|
||||
ROOT_DIR=$CORES_DIR/libretro-super
|
||||
RARCH_DIR=$CORES_DIR/RetroArch
|
||||
RARCH_DIST_DIR=$RARCH_DIR/dist-scripts
|
||||
SCRIPT=$(readlink -f $0)
|
||||
BASE_DIR=$(dirname $SCRIPT)
|
||||
RARCH_DIR=$BASE_DIR/dist
|
||||
RARCH_DIST_DIR=$RARCH_DIR/ps3
|
||||
FORMAT=_ps3
|
||||
FORMAT_COMPILER_TARGET=ps3
|
||||
FORMAT_COMPILER_TARGET_ALT=sncps3
|
||||
@ -15,14 +15,13 @@ die()
|
||||
#exit 1
|
||||
}
|
||||
|
||||
MEDNAFEN_DIR_NAME=mednafen-libretro
|
||||
|
||||
build_libretro_mednafen()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$MEDNAFEN_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
|
||||
if [ -d "libretro-mednafen" ]; then
|
||||
echo "=== Building Mednafen ==="
|
||||
cd $MEDNAFEN_DIR_NAME
|
||||
cd libretro-mednafen
|
||||
|
||||
make core=pce-fast platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS clean || die "Failed to clean mednafen/${core}"
|
||||
make core=pce-fast platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS || die "Failed to build mednafen/${core}"
|
||||
@ -33,33 +32,17 @@ build_libretro_mednafen()
|
||||
make core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build mednafen/${core}"
|
||||
cp mednafen_$(echo ${core} | tr '[\-]' '[_]')_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
done
|
||||
cd ..
|
||||
else
|
||||
echo "Mednafen not fetched, skipping ..."
|
||||
fi
|
||||
}
|
||||
|
||||
#build_libretro_s9x()
|
||||
#{
|
||||
#if [ -d "libretro-s9x" ]; then
|
||||
#echo "=== Building SNES9x ==="
|
||||
#cd libretro-s9x/libretro
|
||||
#make -j4 || die "Failed to build SNES9x"
|
||||
#cp libretro.so ../libretro-snes9x.so
|
||||
#cd ../..
|
||||
#else
|
||||
#echo "SNES9x not fetched, skipping ..."
|
||||
#fi
|
||||
#}
|
||||
|
||||
S9X_NEXT_DIR_NAME=snes9x-next
|
||||
|
||||
build_libretro_s9x_next()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$S9X_NEXT_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-s9x-next" ]; then
|
||||
echo "=== Building SNES9x-Next ==="
|
||||
cd $S9X_NEXT_DIR_NAME
|
||||
cd libretro-s9x-next/
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS clean || die "Failed to build SNES9x-Next"
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS || die "Failed to build SNES9x-Next"
|
||||
cp snes9x_next_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -69,14 +52,12 @@ build_libretro_s9x_next()
|
||||
fi
|
||||
}
|
||||
|
||||
GENPLUS_DIR_NAME=Genesis-Plus-GX
|
||||
|
||||
build_libretro_genplus()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$GENPLUS_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-genplus" ]; then
|
||||
echo "=== Building Genplus GX ==="
|
||||
cd $GENPLUS_DIR_NAME
|
||||
cd libretro-genplus/
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean Genplus GX"
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build Genplus GX"
|
||||
cp genesis_plus_gx_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -85,14 +66,13 @@ build_libretro_genplus()
|
||||
fi
|
||||
}
|
||||
|
||||
FBA_DIR_NAME=fba-libretro
|
||||
|
||||
build_libretro_fba()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$FBA_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-fba" ]; then
|
||||
echo "=== Building Final Burn Alpha ==="
|
||||
cd $FBA_DIR_NAME/svn-current/trunk
|
||||
cd libretro-fba/
|
||||
cd svn-current/trunk
|
||||
make -f makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean Final Burn Alpha"
|
||||
make -f makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build Final Burn Alpha"
|
||||
cp fb_alpha_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -101,14 +81,12 @@ build_libretro_fba()
|
||||
fi
|
||||
}
|
||||
|
||||
VBA_NEXT_DIR_NAME=vba-next
|
||||
|
||||
build_libretro_vba()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$VBA_NEXT_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-vba" ]; then
|
||||
echo "=== Building VBA-Next ==="
|
||||
cd $VBA_NEXT_DIR_NAME
|
||||
cd libretro-vba/
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS clean || die "Failed to clean VBA-Next"
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS || die "Failed to build VBA-Next"
|
||||
cp vba_next_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -117,14 +95,12 @@ build_libretro_vba()
|
||||
fi
|
||||
}
|
||||
|
||||
FCEUMM_DIR_NAME=fceu-next
|
||||
|
||||
build_libretro_fceu()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$FCEUMM_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-fceu" ]; then
|
||||
echo "=== Building FCEU ==="
|
||||
cd $FCEUMM_DIR_NAME
|
||||
cd libretro-fceu
|
||||
make -C fceumm-code -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean FCEUmm"
|
||||
make -C fceumm-code -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build FCEUmm"
|
||||
cp fceumm-code/fceumm_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -133,14 +109,12 @@ build_libretro_fceu()
|
||||
fi
|
||||
}
|
||||
|
||||
GAMBATTE_DIR_NAME=gambatte-libretro
|
||||
|
||||
build_libretro_gambatte()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$GAMBATTE_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-gambatte" ]; then
|
||||
echo "=== Building Gambatte ==="
|
||||
cd $GAMBATTE_DIR_NAME/libgambatte
|
||||
cd libretro-gambatte/libgambatte
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS clean || die "Failed to clean Gambatte"
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS || die "Failed to build Gambatte"
|
||||
cp gambatte_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -149,14 +123,12 @@ build_libretro_gambatte()
|
||||
fi
|
||||
}
|
||||
|
||||
NXENGINE_DIR_NAME=nxengine-libretro
|
||||
|
||||
build_libretro_nx()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$NXENGINE_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-nx" ]; then
|
||||
echo "=== Building NXEngine ==="
|
||||
cd $NXENGINE_DIR_NAME
|
||||
cd libretro-nx
|
||||
make platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean NXEngine"
|
||||
make platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build NXEngine"
|
||||
cp nxengine_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -165,14 +137,12 @@ build_libretro_nx()
|
||||
fi
|
||||
}
|
||||
|
||||
PRBOOM_DIR_NAME=libretro-prboom
|
||||
|
||||
build_libretro_prboom()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$PRBOOM_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-prboom" ]; then
|
||||
echo "=== Building PRBoom ==="
|
||||
cd $PRBOOM_DIR_NAME
|
||||
cd libretro-prboom
|
||||
make platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS clean || die "Failed to clean PRBoom"
|
||||
make platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS || die "Failed to build PRBoom"
|
||||
cp prboom_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -181,54 +151,12 @@ build_libretro_prboom()
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
#build_libretro_stella()
|
||||
#{
|
||||
#if [ -d "libretro-stella" ]; then
|
||||
#echo "=== Building Stella ==="
|
||||
#cd libretro-stella
|
||||
#make -j4 || die "Failed to build Stella"
|
||||
#cp libretro.so libretro-stella.so
|
||||
#cd ../
|
||||
#else
|
||||
#echo "Stella not fetched, skipping ..."
|
||||
#fi
|
||||
#}
|
||||
|
||||
#build_libretro_desmume()
|
||||
#{
|
||||
#if [ -d "libretro-desmume" ]; then
|
||||
#echo "=== Building Desmume ==="
|
||||
#cd libretro-desmume
|
||||
#make -f Makefile.libretro -j4 || die "Failed to build Desmume"
|
||||
#cp libretro.so libretro-desmume.so
|
||||
#cd ../
|
||||
#else
|
||||
#echo "Desmume not fetched, skipping ..."
|
||||
#fi
|
||||
#}
|
||||
|
||||
#build_libretro_quicknes()
|
||||
#{
|
||||
#if [ -d "libretro-quicknes" ]; then
|
||||
#echo "=== Building QuickNES ==="
|
||||
#cd libretro-quicknes/libretro
|
||||
#make -j4 || die "Failed to build QuickNES"
|
||||
#cp libretro.so ../libretro-quicknes.so
|
||||
#cd ../..
|
||||
#else
|
||||
#echo "QuickNES not fetched, skipping ..."
|
||||
#fi
|
||||
#}
|
||||
|
||||
NESTOPIA_DIR_NAME=nestopia
|
||||
|
||||
build_libretro_nestopia()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$NESTOPIA_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-nestopia" ]; then
|
||||
echo "=== Building Nestopia ==="
|
||||
cd $NESTOPIA_DIR_NAME/libretro
|
||||
cd libretro-nestopia/libretro
|
||||
make platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean Nestopia"
|
||||
make platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build Nestopia"
|
||||
cp nestopia_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -237,14 +165,12 @@ build_libretro_nestopia()
|
||||
fi
|
||||
}
|
||||
|
||||
TYRQUAKE_DIR_NAME=tyrquake
|
||||
|
||||
build_libretro_tyrquake()
|
||||
{
|
||||
cd $CORES_DIR
|
||||
if [ -d "$TYRQUAKE_DIR_NAME" ]; then
|
||||
cd $BASE_DIR
|
||||
if [ -d "libretro-tyrquake" ]; then
|
||||
echo "=== Building Tyr Quake ==="
|
||||
cd $TYRQUAKE_DIR_NAME
|
||||
cd libretro-tyrquake
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean Tyr Quake"
|
||||
make -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build Tyr Quake"
|
||||
cp tyrquake_libretro$FORMAT.a $RARCH_DIST_DIR
|
||||
@ -253,8 +179,24 @@ build_libretro_tyrquake()
|
||||
fi
|
||||
}
|
||||
|
||||
create_dist_dir()
|
||||
{
|
||||
if [ -d $RARCH_DIR ]; then
|
||||
echo "Directory $RARCH_DIR already exists, skipping creation..."
|
||||
else
|
||||
mkdir $RARCH_DIR
|
||||
fi
|
||||
|
||||
if [ -d $RARCH_DIST_DIR ]; then
|
||||
echo "Directory $RARCH_DIST_DIR already exists, skipping creation..."
|
||||
else
|
||||
mkdir $RARCH_DIST_DIR
|
||||
fi
|
||||
}
|
||||
|
||||
create_dist_dir
|
||||
|
||||
build_libretro_mednafen
|
||||
#build_libretro_s9x
|
||||
build_libretro_s9x_next
|
||||
build_libretro_genplus
|
||||
build_libretro_fba
|
||||
@ -263,9 +205,6 @@ build_libretro_fceu
|
||||
build_libretro_gambatte
|
||||
build_libretro_nx
|
||||
build_libretro_prboom
|
||||
#build_libretro_stella
|
||||
#build_libretro_desmume
|
||||
#build_libretro_quicknes
|
||||
build_libretro_nestopia
|
||||
build_libretro_tyrquake
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user