mirror of
https://github.com/libretro/libretro-super
synced 2025-04-01 01:20:29 +00:00
Add test cores
This commit is contained in:
parent
ee2e2303d7
commit
3cb57e23b4
@ -118,15 +118,10 @@ copy_core_to_dist() {
|
||||
fi
|
||||
}
|
||||
|
||||
# $1 is corename
|
||||
# $2 is subdir. In case there is no subdir, enter "." here
|
||||
# $3 is Makefile name
|
||||
# $4 is preferred platform
|
||||
build_libretro_generic_makefile() {
|
||||
build_dir="${WORKDIR}/libretro-${1}"
|
||||
if [ -d "${build_dir}" ]; then
|
||||
build_libretro_generic() {
|
||||
if [ -d "${5}" ]; then
|
||||
echo "=== Building ${1} ==="
|
||||
cd "${build_dir}/${2}"
|
||||
cd "${5}/${2}"
|
||||
|
||||
if [ -z "${NOCLEAN}" ]; then
|
||||
"${MAKE}" -f ${3} platform="${4}" ${COMPILER} "-j${JOBS}" clean || die "Failed to build ${1}"
|
||||
@ -141,6 +136,21 @@ build_libretro_generic_makefile() {
|
||||
fi
|
||||
}
|
||||
|
||||
# $1 is corename
|
||||
# $2 is subdir. In case there is no subdir, enter "." here
|
||||
# $3 is Makefile name
|
||||
# $4 is preferred platform
|
||||
build_libretro_generic_makefile() {
|
||||
build_dir="${WORKDIR}/libretro-${1}"
|
||||
build_libretro_generic $1 $2 $3 $4 $build_dir
|
||||
}
|
||||
|
||||
build_retroarch_generic_makefile() {
|
||||
build_dir="${WORKDIR}/${1}"
|
||||
build_libretro_generic $1 $2 $3 $4 $build_dir
|
||||
copy_core_to_dist $5
|
||||
}
|
||||
|
||||
build_libretro_stonesoup() {
|
||||
build_libretro_generic_makefile "stonesoup" "crawl-ref" "Makefile.libretro" ${FORMAT_COMPILER_TARGET}
|
||||
}
|
||||
@ -185,6 +195,14 @@ build_libretro_emux() {
|
||||
copy_core_to_dist "emux_sms"
|
||||
}
|
||||
|
||||
build_libretro_test() {
|
||||
build_retroarch_generic_makefile "retroarch" "libretro-test" "Makefile" ${FORMAT_COMPILER_TARGET} "test"
|
||||
}
|
||||
|
||||
build_libretro_testgl() {
|
||||
build_retroarch_generic_makefile "retroarch" "libretro-test-gl" "Makefile" ${FORMAT_COMPILER_TARGET} "testgl"
|
||||
}
|
||||
|
||||
build_libretro_picodrive() {
|
||||
build_libretro_generic_makefile "picodrive" "." "Makefile.libretro" ${FORMAT_COMPILER_TARGET}
|
||||
}
|
||||
|
@ -156,6 +156,8 @@ else
|
||||
build_libretro_hatari
|
||||
build_libretro_gpsp
|
||||
build_libretro_emux
|
||||
build_libretro_test
|
||||
build_libretro_testgl
|
||||
build_summary
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user