mirror of
https://github.com/libretro/libretro-super
synced 2024-12-01 04:03:00 +00:00
Add special build rules for emux
This commit is contained in:
parent
d271ad9fe2
commit
f7e4403c8b
@ -96,6 +96,11 @@ build_libretro_fba_cps1() {
|
||||
build_libretro_generic_makefile_subcore "fb_alpha" "fba_cores_cps1" "svn-current/trunk/fbacores/cps1" "makefile.libretro" ${FORMAT_COMPILER_TARGET}
|
||||
}
|
||||
|
||||
|
||||
copy_core_to_dist() {
|
||||
cp "${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
|
||||
}
|
||||
|
||||
# $1 is corename
|
||||
# $2 is subdir. In case there is no subdir, enter "." here
|
||||
# $3 is Makefile name
|
||||
@ -112,7 +117,9 @@ build_libretro_generic_makefile() {
|
||||
fi
|
||||
echo "${MAKE}" -f ${3} platform="${4}" ${COMPILER} "-j${JOBS}"
|
||||
"${MAKE}" -f ${3} platform="${4}" ${COMPILER} "-j${JOBS}" || die "Failed to build ${1}"
|
||||
cp "${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
|
||||
if [ -z "${5}" ]; then
|
||||
copy_core_to_dist $1
|
||||
fi
|
||||
else
|
||||
echo "${1} not fetched, skipping ..."
|
||||
fi
|
||||
@ -154,6 +161,14 @@ build_libretro_catsfc() {
|
||||
build_libretro_generic_makefile "catsfc" "." "Makefile" ${FORMAT_COMPILER_TARGET}
|
||||
}
|
||||
|
||||
build_libretro_emux() {
|
||||
build_libretro_generic_makefile "emux" "libretro" "Makefile" ${FORMAT_COMPILER_TARGET} 1
|
||||
copy_core_to_dist "emux_chip8"
|
||||
copy_core_to_dist "emux_gb"
|
||||
copy_core_to_dist "emux_nes"
|
||||
copy_core_to_dist "emux_sms"
|
||||
}
|
||||
|
||||
build_libretro_picodrive() {
|
||||
build_libretro_generic_makefile "picodrive" "." "Makefile.libretro" ${FORMAT_COMPILER_TARGET}
|
||||
}
|
||||
|
@ -152,4 +152,5 @@ else
|
||||
build_libretro_o2em
|
||||
build_libretro_hatari
|
||||
build_libretro_gpsp
|
||||
build_libretro_emux
|
||||
fi
|
||||
|
@ -174,3 +174,4 @@ fetch_project_submodule_no_update "$REPO_BASE/libretro/crawl-ref.git" "libretro-
|
||||
fetch_project "$REPO_BASE/libretro/hatari.git" "libretro-hatari" "libretro/hatari"
|
||||
fetch_project "$REPO_BASE/libretro/TempGBA-libretro.git" "libretro-tempgba" "libretro/TempGBA"
|
||||
fetch_project "$REPO_BASE/libretro/gpsp.git" "libretro-gpsp" "libretro/gpsp"
|
||||
fetch_project "$REPO_BASE/libretro/emux.git" "libretro-emux" "libretro/Emux"
|
||||
|
Loading…
Reference in New Issue
Block a user