Merge pull request #662 from orbea/core

libretro-buildbot-recipe.sh: Allow building specific bsnes and mame c…
This commit is contained in:
Twinaphex 2017-12-24 17:33:17 +01:00 committed by GitHub
commit fb10ca1bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 10 deletions

View File

@ -315,9 +315,9 @@ build_libretro_generic_makefile() {
cd "${SUBDIR}"
if [ "${COMMAND}" = "BSNES" ]; then
CORE="${NAME}_accuracy ${NAME}_balanced ${NAME}_performance"
CORE="${CORE:-${NAME}_accuracy ${NAME}_balanced ${NAME}_performance}"
elif [ "${NAME}" = "mame2014" ]; then
CORE="${NAME} mess2014 ume2014"
CORE="${CORE:-${NAME} mess2014 ume2014}"
else
CORE="${NAME}"
fi
@ -472,7 +472,7 @@ build_libretro_generic_jni() {
fi
if [ "${COMMAND}" = "BSNES_JNI" ]; then
CORE="${NAME}_accuracy ${NAME}_balanced ${NAME}_performance"
CORE="${CORE:-${NAME}_accuracy ${NAME}_balanced ${NAME}_performance}"
else
CORE="${NAME}"
fi
@ -573,7 +573,9 @@ while read line; do
ARGS="${ARGS# }"
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
if [ "$SINGLE_CORE" ] && [ "$NAME" != "$SINGLE_CORE" ]; then
if [ -z "${SINGLE_CORE:-}" ]; then
CORE=""
elif [ "$NAME" != "$SINGLE_CORE" ]; then
continue
fi

View File

@ -20,5 +20,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -10,5 +10,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -21,5 +21,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -10,5 +10,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -21,5 +21,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"

View File

@ -20,5 +20,7 @@ if [ "${TRAVIS_BUILD_DIR}" ]; then
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE
FORCE=YES SINGLE_CORE=${CORE} ./libretro-buildbot-recipe.sh ${RECIPE}
FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"