mirror of
https://github.com/libretro/libretro-super
synced 2025-04-09 18:44:44 +00:00
Do away with more extraneous build rules
This commit is contained in:
parent
64b07029e1
commit
50fbe9f211
@ -41,6 +41,7 @@ die()
|
|||||||
|
|
||||||
# $1 is core name
|
# $1 is core name
|
||||||
# $2 is subdir (if there's no subdir, put "." here)
|
# $2 is subdir (if there's no subdir, put "." here)
|
||||||
|
# $3 is appendage to core name for output JNI file
|
||||||
build_libretro_generic_makefile()
|
build_libretro_generic_makefile()
|
||||||
{
|
{
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
@ -53,40 +54,13 @@ build_libretro_generic_makefile()
|
|||||||
ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${1}"
|
ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${1}"
|
||||||
fi
|
fi
|
||||||
ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${1}"
|
ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${1}"
|
||||||
cp ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}.${FORMAT_EXT}
|
cp ../libs/${a}/libretro${3}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}.${FORMAT_EXT}
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "${1} not fetched, skipping ..."
|
echo "${1} not fetched, skipping ..."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
build_libretro_bsnes()
|
|
||||||
{
|
|
||||||
cd $BASE_DIR
|
|
||||||
if [ -d "libretro-${1}" ]; then
|
|
||||||
echo "=== Building ${1} ==="
|
|
||||||
cd libretro-${1}/
|
|
||||||
cd ${2}
|
|
||||||
for a in "${ABIS[@]}"; do
|
|
||||||
if [ -z "${NOCLEAN}" ]; then
|
|
||||||
ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${1}"
|
|
||||||
fi
|
|
||||||
ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${1}"
|
|
||||||
cp ../libs/${a}/libretro_${1}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}.${FORMAT_EXT}
|
|
||||||
done
|
|
||||||
else
|
|
||||||
echo "${1} not fetched, skipping ..."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
build_libretro_desmume() {
|
|
||||||
build_libretro_generic_makefile "desmume" "desmume/src/libretro/jni"
|
|
||||||
}
|
|
||||||
|
|
||||||
build_libretro_fb_alpha() {
|
|
||||||
build_libretro_generic_makefile "fb_alpha" "svn-current/trunk/projectfiles/libretro-android/jni"
|
|
||||||
}
|
|
||||||
|
|
||||||
create_dist_dir()
|
create_dist_dir()
|
||||||
{
|
{
|
||||||
if [ -d $RARCH_DIR ]; then
|
if [ -d $RARCH_DIR ]; then
|
||||||
@ -158,24 +132,32 @@ WANT_CORES=" \
|
|||||||
vbam \
|
vbam \
|
||||||
fceumm \
|
fceumm \
|
||||||
dinothawr \
|
dinothawr \
|
||||||
|
desmume \
|
||||||
|
fb_alpha \
|
||||||
bsnes_mercury_performance \
|
bsnes_mercury_performance \
|
||||||
bsnes_performance"
|
bsnes_performance"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for core in $WANT_CORES; do
|
for core in $WANT_CORES; do
|
||||||
path="jni"
|
path="jni"
|
||||||
|
append=""
|
||||||
if [ $core = "snes9x" ] || [ $core = "genesis_plus_gx" ] || [ $core = "meteor" ] || [ $core = "nestopia" ] || [ $core = "yabause" ] || [ $core = "vbam" ] || [ $core = "vba_next" ] || [ $core = "ppsspp" ]; then
|
if [ $core = "snes9x" ] || [ $core = "genesis_plus_gx" ] || [ $core = "meteor" ] || [ $core = "nestopia" ] || [ $core = "yabause" ] || [ $core = "vbam" ] || [ $core = "vba_next" ] || [ $core = "ppsspp" ]; then
|
||||||
path="libretro/jni"
|
path="libretro/jni"
|
||||||
fi
|
fi
|
||||||
if [ $core = "gambatte" ]; then
|
if [ $core = "gambatte" ]; then
|
||||||
path="libgambatte/libretro/jni"
|
path="libgambatte/libretro/jni"
|
||||||
fi
|
fi
|
||||||
|
if [ $core = "desmume" ]; then
|
||||||
|
path="desmume/src/libretro/jni"
|
||||||
|
fi
|
||||||
|
if [ $core = "fb_alpha" ]; then
|
||||||
|
path="svn-current/trunk/projectfiles/libretro-android/jni"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $core = "bsnes_mercury_performance" ] || [ $core = "bsnes_performance" ]; then
|
if [ $core = "bsnes_mercury_performance" ] || [ $core = "bsnes_performance" ]; then
|
||||||
path="target-libretro/jni"
|
path="target-libretro/jni"
|
||||||
build_libretro_bsnes $core $path
|
append="_$core"
|
||||||
else
|
|
||||||
build_libretro_generic_makefile $core $path
|
|
||||||
fi
|
fi
|
||||||
|
build_libretro_generic_makefile $core $path $append
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user