Merge pull request #597 from orbea/filters

libretro-buildbot-recipe.sh: Combine the audio and video filter functions.
This commit is contained in:
Twinaphex 2017-11-15 07:16:21 +01:00 committed by GitHub
commit 25671a12a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 28 deletions

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}"
( cd "$FILTERDIR"; ${HELPER} ${MAKE} )
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"