From b046eae103c4f92bb36e85c178a6fd3f5366603b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 14 Aug 2014 21:50:16 +0200 Subject: [PATCH] Add o2em --- libretro-build-common.sh | 16 ++++++++++++++++ libretro-build.sh | 1 + libretro-fetch.sh | 1 + 3 files changed, 18 insertions(+) diff --git a/libretro-build-common.sh b/libretro-build-common.sh index f3b4e339..927a9c1d 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -513,6 +513,22 @@ build_libretro_prosystem() { fi } +build_libretro_o2em() { + cd "${BASE_DIR}" + if [ -d 'libretro-o2em' ]; then + echo '=== Building o2em ===' + cd libretro-o2em/ + + if [ -z "${NOCLEAN}" ]; then + "${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to build o2em' + fi + "${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die 'Failed to build o2em' + cp "o2em_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" + else + echo 'o2em not fetched, skipping ...' + fi +} + build_libretro_virtualjaguar() { cd "${BASE_DIR}" if [ -d 'libretro-virtualjaguar' ]; then diff --git a/libretro-build.sh b/libretro-build.sh index 93c04343..c1c4571d 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -151,4 +151,5 @@ else build_libretro_ffmpeg build_libretro_3dengine build_libretro_ppsspp + build_libretro_o2em fi diff --git a/libretro-fetch.sh b/libretro-fetch.sh index 73d82f50..265a1f8c 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -171,3 +171,4 @@ fetch_project "$REPO_BASE/libretro/libretro-ppsspp.git" "libretro-ppsspp" "libre fetch_subproject "$REPO_BASE/libretro/ppsspp-native.git" "libretro-ppsspp" "native" "libretro/ppsspp/native" fetch_subproject "$REPO_BASE/libretro/ppsspp-ffmpeg.git" "libretro-ppsspp" "ffmpeg" "libretro/ppsspp/ffmpeg" fetch_project "$REPO_BASE/libretro/prosystem-libretro.git" "libretro-prosystem" "libretro/prosystem" +fetch_project "$REPO_BASE/libretro/libretro-o2em.git" "libretro-o2em" "libretro/o2em"