From f7e4403c8bb630e5969e5e620637a257e096e895 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 22 Dec 2014 09:10:07 +0100 Subject: [PATCH] Add special build rules for emux --- libretro-build-common.sh | 17 ++++++++++++++++- libretro-build.sh | 1 + libretro-fetch.sh | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/libretro-build-common.sh b/libretro-build-common.sh index 850ea753..c7dee09b 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -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} } diff --git a/libretro-build.sh b/libretro-build.sh index 0ff1cc12..60b4d263 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -152,4 +152,5 @@ else build_libretro_o2em build_libretro_hatari build_libretro_gpsp + build_libretro_emux fi diff --git a/libretro-fetch.sh b/libretro-fetch.sh index 92749729..7755b953 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -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"