diff --git a/libretro-build-common.sh b/libretro-build-common.sh index 9493b70b..031033c5 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -467,6 +467,22 @@ build_libretro_s9x_next() { fi } +build_libretro_vecx() { + cd "${BASE_DIR}" + if [ -d 'libretro-vecx' ]; then + echo '=== Building VecX ===' + cd libretro-vecx/ + + if [ -z "${NOCLEAN}" ]; then + "${MAKE}" -f Makefile.libretro platform="${FORMAT_COMPILER_TARGET_ALT}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to build VecX' + fi + "${MAKE}" -f Makefile.libretro platform="${FORMAT_COMPILER_TARGET_ALT}" ${COMPILER} "-j${JOBS}" || die 'Failed to build VecX' + cp "vecx_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" + else + echo 'VecX not fetched, skipping ...' + fi +} + build_libretro_genplus() { cd "${BASE_DIR}" if [ -d 'libretro-genplus' ]; then diff --git a/libretro-build.sh b/libretro-build.sh index 17e9c345..a870ae99 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -147,4 +147,5 @@ else build_libretro_ffmpeg build_libretro_dinothawr build_libretro_3dengine + build_libretro_vecx fi