libretro-buildbot-recipe.sh: Combine the compile_audio_filters and compile_video_filters functions.

This commit is contained in:
orbea 2017-11-14 09:24:17 -08:00
parent d8fd01da79
commit 49f5893049

View file

@ -1019,36 +1019,27 @@ buildbot_pull(){
cd $WORK
}
compile_audio_filters()
compile_filters()
{
HELPER=$1
MAKE=$2
echo "compiling audio filters"
echo "audio filter BUILD CMD: ${HELPER} ${MAKE}"
${HELPER} ${MAKE} -C libretro-common/audio/dsp_filters
FILTER="$1"
HELPER="$2"
MAKE="$3"
case "$FILTER" in
audio ) FILTERDIR='libretro-common/audio/dsp_filters' ;;
video ) FILTERDIR='gfx/video_filters' ;;
esac
echo "compile $FILTER filters"
echo "$FILTER filter BUILD CMD: ${HELPER} ${MAKE} -C $FILTERDIR"
${HELPER} ${MAKE} -C "$FILTERDIR"
if [ $? -eq 0 ]; then
echo buildbot job: $jobid audio filter build success!
echo "buildbot job: $jobid $FILTER filter build success!"
else
echo buildbot job: $jobid audio filter: [status: fail]!
echo "buildbot job: $jobid $FILTER filter: [status: fail]!"
fi
}
compile_video_filters()
{
HELPER=$1
MAKE=$2
echo "compiling video filters"
echo "$PWD"
echo "video filter BUILD CMD: ${HELPER} ${MAKE}"
${HELPER} ${MAKE} -C gfx/video_filters
if [ $? -eq 0 ]; then
echo buildbot job: $jobid video filter build success!
else
echo buildbot job: $jobid video filter: [status: fail]!
fi
}
echo "buildbot job: $jobid Building Retroarch-$PLATFORM"
echo --------------------------------------------------
echo
@ -1265,8 +1256,8 @@ if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] || [ "${PLATFO
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" ]; then
compile_audio_filters ${HELPER} ${MAKE}
compile_video_filters ${HELPER} ${MAKE}
compile_filters audio ${HELPER} ${MAKE}
compile_filters video ${HELPER} ${MAKE}
echo "configuring..."
echo "configure command: $CONFIGURE $ARGS"
@ -1662,8 +1653,8 @@ if [ "${PLATFORM}" = "unix" ]; then
touch $TMPDIR/built-frontend
compile_audio_filters ${HELPER} ${MAKE}
compile_video_filters ${HELPER} ${MAKE}
compile_filters audio ${HELPER} ${MAKE}
compile_filters video ${HELPER} ${MAKE}
echo "configuring..."
echo "configure command: $CONFIGURE $ARGS"