mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 20:14:22 +00:00
916 lines
32 KiB
Bash
Executable File
916 lines
32 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
. ./libretro-config.sh
|
|
|
|
# BSDs don't have readlink -f
|
|
read_link()
|
|
{
|
|
TARGET_FILE="$1"
|
|
cd $(dirname "$TARGET_FILE")
|
|
TARGET_FILE=$(basename "$TARGET_FILE")
|
|
|
|
while [ -L "$TARGET_FILE" ]
|
|
do
|
|
TARGET_FILE=$(readlink "$TARGET_FILE")
|
|
cd $(dirname "$TARGET_FILE")
|
|
TARGET_FILE=$(basename "$TARGET_FILE")
|
|
done
|
|
|
|
PHYS_DIR=$(pwd -P)
|
|
RESULT="$PHYS_DIR/$TARGET_FILE"
|
|
echo $RESULT
|
|
}
|
|
|
|
SCRIPT=$(read_link "$0")
|
|
echo "Script: $SCRIPT"
|
|
BASE_DIR=$(dirname $SCRIPT)
|
|
RARCH_DIR=$BASE_DIR/dist
|
|
RARCH_DIST_DIR=$RARCH_DIR/android
|
|
FORMAT=_android
|
|
FORMAT_EXT=so
|
|
|
|
die()
|
|
{
|
|
echo $1
|
|
#exit 1
|
|
}
|
|
|
|
build_libretro_beetle_bsnes()
|
|
{
|
|
CORENAME="beetle-bsnes"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_bsnes_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_bsnes_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_bsnes_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_lynx()
|
|
{
|
|
CORENAME="beetle-lynx"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_lynx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_lynx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_lynx_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_gba()
|
|
{
|
|
CORENAME="beetle-gba"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_gba_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_gba_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_gba_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_ngp()
|
|
{
|
|
CORENAME="beetle-ngp"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_ngp_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_ngp_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_ngp_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_wswan()
|
|
{
|
|
CORENAME="beetle-wswan"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_wswan_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_wswan_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_wswan_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_psx()
|
|
{
|
|
CORENAME="beetle-psx"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_psx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_psx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_psx_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_pcfx()
|
|
{
|
|
CORENAME="beetle-pcfx"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_pcfx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_pcfx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_pcfx_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_vb()
|
|
{
|
|
CORENAME="beetle-vb"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_vb_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_vb_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_vb_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_pce_fast()
|
|
{
|
|
CORENAME="beetle-pce-fast"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_pce_fast_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_pce_fast_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_pce_fast_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_beetle_supergrafx()
|
|
{
|
|
CORENAME="beetle-supergrafx"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
echo "=== Building ${CORENAME} ==="
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean ${CORENAME}"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86" || die "Failed to build ${CORENAME}"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_supergrafx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_supergrafx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_supergrafx_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_s9x()
|
|
{
|
|
CORENAME="s9x"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/snes9x_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/snes9x_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/snes9x_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_s9x_next()
|
|
{
|
|
CORENAME="s9x-next"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/snes9x_next_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/snes9x_next_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/snes9x_next_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_2048()
|
|
{
|
|
CORENAME="2048"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/2048_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/2048_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/2048_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_stella()
|
|
{
|
|
CORENAME="stella"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/stella_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/stella_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/stella_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_genplus()
|
|
{
|
|
CORENAME="genplus"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/genesis_plus_gx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/genesis_plus_gx_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/genesis_plus_gx_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_fba_full()
|
|
{
|
|
CORENAME="fba"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd svn-current/trunk
|
|
cd projectfiles/libretro-android/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/fb_alpha_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/fb_alpha_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/fb_alpha_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_vbam()
|
|
{
|
|
CORENAME="vbam"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo '=== Building ${CORENAME} ==='
|
|
cd libretro-${CORENAME}/
|
|
cd src/libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/vbam_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/vbam_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/vbam_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo '${CORENAME} not fetched, skipping ...'
|
|
fi
|
|
}
|
|
|
|
build_libretro_vba_next()
|
|
{
|
|
CORENAME="vba-next"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/vba_next_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/vba_next_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/vba_next_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_fceumm()
|
|
{
|
|
CORENAME="fceumm"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd src/drivers/libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/fceumm_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/fceumm_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/fceumm_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_gambatte()
|
|
{
|
|
CORENAME="gambatte"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd libgambatte/libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/gambatte_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/gambatte_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/gambatte_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_nx()
|
|
{
|
|
CORENAME="nx"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/nxengine_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/nxengine_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/nxengine_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_prboom()
|
|
{
|
|
CORENAME="prboom"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/prboom_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/prboom_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/prboom_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_dinothawr()
|
|
{
|
|
CORENAME="dinothawr"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd android/eclipse/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro_dino.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/dinothawr_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro_dino.${FORMAT_EXT} $RARCH_DIST_DIR/mips/dinothawr_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro_dino.${FORMAT_EXT} $RARCH_DIST_DIR/x86/dinothawr_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_nestopia()
|
|
{
|
|
CORENAME="nestopia"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/nestopia_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/nestopia_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/nestopia_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_pcsx_rearmed()
|
|
{
|
|
CORENAME="pcsx-rearmed"
|
|
cd $BASE_DIR
|
|
pwd
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
#ndk-build clean APP_ABI=armeabi-v7a
|
|
#ndk-build -j$JOBS NO_NEON=1 APP_ABI=armeabi-v7a
|
|
#cp ../libs/armeabi-v7a/libretro-noneon.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/pcsx_rearmed_libretro${FORMAT}.${FORMAT_EXT}
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI=armeabi-v7a
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI=armeabi-v7a
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/pcsx_rearmed_libretro_neon${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_tyrquake()
|
|
{
|
|
CORENAME="tyrquake"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/tyrquake_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/tyrquake_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/tyrquake_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_modelviewer()
|
|
{
|
|
CORENAME="gl-modelviewer"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/modelviewer_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/modelviewer_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/modelviewer_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_modelviewer_location()
|
|
{
|
|
CORENAME="gl-modelviewer-location"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/modelviewer_location_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/modelviewer_location_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/modelviewer_location_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_instancingviewer()
|
|
{
|
|
CORENAME="gl-instancingviewer"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/instancingviewer_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/instancingviewer_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/instancingviewer_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_instancingviewer_camera()
|
|
{
|
|
CORENAME="gl-instancingviewer-camera"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/instancingviewer_camera_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/instancingviewer_camera_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/instancingviewer_camera_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_3dengine() {
|
|
CORENAME="3dengine"
|
|
cd "${BASE_DIR}"
|
|
if [ -d 'libretro-${CORENAME}' ]; then
|
|
echo '=== Building ${CORENAME} ==='
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/${CORENAME}_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/${CORENAME}_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/${CORENAME}_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo '${CORENAME} not fetched, skipping ...'
|
|
fi
|
|
}
|
|
|
|
build_libretro_scenewalker()
|
|
{
|
|
CORENAME="gl-scenewalker"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/scenewalker_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/scenewalker_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/scenewalker_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_picodrive()
|
|
{
|
|
CORENAME="picodrive"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI=armeabi-v7a
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI=armeabi-v7a
|
|
cp ../libs/armeabi-v7a/libretro_picodrive.${FORMAT_EXT} "$RARCH_DIST_DIR"/armeabi-v7a/picodrive_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_handy()
|
|
{
|
|
CORENAME="handy"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/armeabi-v7a/handy_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/mips/handy_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/x86/handy_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_desmume()
|
|
{
|
|
CORENAME="desmume"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd desmume/src/libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI=armeabi-v7a
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/armeabi-v7a/desmume_libretro${FORMAT}.${FORMAT_EXT}
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI=x86
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/x86/desmume_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_quicknes()
|
|
{
|
|
CORENAME="quicknes"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/armeabi-v7a/quicknes_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/mips/quicknes_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/x86/quicknes_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
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
|
|
|
|
if [ -d $RARCH_DIST_DIR/armeabi-v7a ]; then
|
|
echo "Directory $RARCH_DIST_DIR/armeabi-v7a already exists, skipping creation..."
|
|
else
|
|
mkdir $RARCH_DIST_DIR/armeabi-v7a
|
|
fi
|
|
|
|
if [ -d $RARCH_DIST_DIR/mips ]; then
|
|
echo "Directory $RARCH_DIST_DIR/mips already exists, skipping creation..."
|
|
else
|
|
mkdir $RARCH_DIST_DIR/mips
|
|
fi
|
|
|
|
if [ -d $RARCH_DIST_DIR/x86 ]; then
|
|
echo "Directory $RARCH_DIST_DIR/x86 already exists, skipping creation..."
|
|
else
|
|
mkdir $RARCH_DIST_DIR/x86
|
|
fi
|
|
}
|
|
|
|
build_libretro_bsnes()
|
|
{
|
|
CORENAME="bsnes"
|
|
#TODO - maybe accuracy/balanced cores as well
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo "=== Building ${CORENAME} ==="
|
|
cd libretro-${CORENAME}/
|
|
cd perf/target-libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a x86"
|
|
cp ../libs/armeabi-v7a/libretro_bsnes_performance.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/bsnes_performance_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro_bsnes_performance.${FORMAT_EXT} $RARCH_DIST_DIR/x86/bsnes_performance_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo "${CORENAME} not fetched, skipping ..."
|
|
fi
|
|
}
|
|
|
|
build_libretro_mupen64()
|
|
{
|
|
CORENAME="mupen64plus"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo '=== Building ${CORENAME} ==='
|
|
cd libretro-${CORENAME}/
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a x86"
|
|
cp ../libs/armeabi-v7a/libretro_mupen64plus.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mupen64plus_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro_mupen64plus.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mupen64plus_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo '${CORENAME} not fetched, skipping ...'
|
|
fi
|
|
}
|
|
|
|
build_libretro_yabause()
|
|
{
|
|
CORENAME="yabause"
|
|
cd $BASE_DIR
|
|
if [ -d "libretro-${CORENAME}" ]; then
|
|
echo '=== Building ${CORENAME} ==='
|
|
cd libretro-${CORENAME}/
|
|
cd libretro/jni
|
|
if [ -z "${NOCLEAN}" ]; then
|
|
ndk-build clean APP_ABI="armeabi-v7a mips x86"
|
|
fi
|
|
ndk-build -j$JOBS APP_ABI="armeabi-v7a mips x86"
|
|
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/armeabi-v7a/yabause_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/mips/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/mips/yabause_libretro${FORMAT}.${FORMAT_EXT}
|
|
cp ../libs/x86/libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"/x86/yabause_libretro${FORMAT}.${FORMAT_EXT}
|
|
else
|
|
echo '${CORENAME} not fetched, skipping ...'
|
|
fi
|
|
}
|
|
|
|
create_dist_dir
|
|
|
|
if [ $1 ]; then
|
|
$1
|
|
else
|
|
build_libretro_2048
|
|
#build_libretro_bsnes_cplusplus98
|
|
build_libretro_bsnes
|
|
build_libretro_beetle_lynx
|
|
build_libretro_beetle_gba
|
|
build_libretro_beetle_ngp
|
|
build_libretro_beetle_pce_fast
|
|
build_libretro_beetle_supergrafx
|
|
build_libretro_beetle_pcfx
|
|
build_libretro_beetle_vb
|
|
build_libretro_beetle_wswan
|
|
build_libretro_beetle_psx
|
|
build_libretro_beetle_bsnes
|
|
build_libretro_s9x
|
|
build_libretro_s9x_next
|
|
build_libretro_genplus
|
|
build_libretro_fba_full
|
|
build_libretro_vbam
|
|
build_libretro_vba_next
|
|
#build_libretro_bnes
|
|
build_libretro_fceumm
|
|
build_libretro_gambatte
|
|
build_libretro_meteor
|
|
build_libretro_nx
|
|
build_libretro_prboom
|
|
build_libretro_stella
|
|
build_libretro_quicknes
|
|
build_libretro_nestopia
|
|
build_libretro_tyrquake
|
|
#build_libretro_mame078
|
|
#build_libretro_mame
|
|
#build_libretro_dosbox
|
|
#build_libretro_scummvm
|
|
build_libretro_picodrive
|
|
build_libretro_handy
|
|
build_libretro_desmume
|
|
build_libretro_pcsx_rearmed
|
|
build_libretro_modelviewer
|
|
build_libretro_scenewalker
|
|
build_libretro_instancingviewer
|
|
build_libretro_instancingviewer_camera
|
|
build_libretro_mupen64
|
|
#build_libretro_ffmpeg
|
|
build_libretro_yabause
|
|
build_libretro_dinothawr
|
|
build_libretro_3dengine
|
|
fi
|