From 201c3949154439d18cdf3d5b443706e40ac507ad Mon Sep 17 00:00:00 2001 From: radius Date: Wed, 23 Nov 2016 21:20:46 -0500 Subject: [PATCH] add retroarch to linux recipes --- libretro-buildbot-recipe.sh | 91 ++++++++++++++++++++++++++ recipes/linux/retroarch-linux-x64 | 1 + recipes/linux/retroarch-linux-x64.conf | 5 ++ recipes/linux/retroarch-linux-x64.ra | 6 ++ 4 files changed, 103 insertions(+) create mode 100644 recipes/linux/retroarch-linux-x64 create mode 100644 recipes/linux/retroarch-linux-x64.conf create mode 100644 recipes/linux/retroarch-linux-x64.ra diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index 6152aae8..84b61e66 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -1874,5 +1874,96 @@ if [ "${PLATFORM}" = "emscripten" ] && [ "${RA}" = "YES" ]; then fi fi +if [ "${PLATFORM}" = "unix" ]; then + echo WORKINGDIR=$PWD + echo RELEASE=$RELEASE + echo FORCE=$FORCE_RETROARCH_BUILD + echo RADIR=$RADIR + + buildbot_pull + + echo + echo + + if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" -o "${FORCE_RETROARCH_BUILD}" == "YES" ]; then + touch $TMPDIR/built-frontend + cd $RADIR + git clean -xdf + echo "buildbot job: $jobid Building" + echo + + echo "compiling audio filters" + cd audio/audio_filters + echo "audio filter BUILD CMD: ${HELPER} ${MAKE}" + ${HELPER} ${MAKE} + if [ $? -eq 0 ]; then + echo buildbot job: $jobid audio filter build success! + else + echo buildbot job: $jobid audio filter: [status: fail]! + fi + + cd .. + cd .. + + echo "compiling video filters" + cd gfx/video_filters + echo "audio filter BUILD CMD: ${HELPER} ${MAKE}" + ${HELPER} ${MAKE} + if [ $? -eq 0 ]; then + echo buildbot job: $jobid video filter build success! + else + echo buildbot job: $jobid video filter: [status: fail]! + fi + + cd .. + cd .. + + echo "configuring..." + echo "configure command: $CONFIGURE $ARGS" + ${CONFIGURE} ${ARGS} + + + echo "cleaning up..." + echo "CLEANUP CMD: ${HELPER} ${MAKE} clean" + ${HELPER} ${MAKE} clean + + if [ $? -eq 0 ]; then + echo buildbot job: $jobid retroarch cleanup success! + else + echo buildbot job: $jobid retroarch cleanup failed! + fi + + if [ $? -eq 0 ]; then + echo buildbot job: $jobid retroarch configure success! + else + echo buildbot job: $jobid retroarch configure failed! + fi + + echo "building..." + echo "BUILD CMD: ${HELPER} ${MAKE} -j${JOBS}" + ${HELPER} ${MAKE} -j${JOBS} 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log + + status=$? + echo $status + + if [ $status -eq 0 ]; then + MESSAGE="retroarch: [status: done] [$jobid]" + echo $MESSAGE + echo buildbot job: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log + buildbot_log "$MESSAGE" + + echo "Packaging" + + else + ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log + HASTE=`curl -X POST http://hastebin.com/documents --data-binary @$ERROR` + HASTE=`echo $HASTE | cut -d"\"" -f4` + MESSAGE="retroarch: [status: fail] [$jobid] LOG: http://hastebin.com/$HASTE" + echo $MESSAGE + echo buildbot job: $MESSAGE | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log + buildbot_log "$MESSAGE" + fi + fi +fi PATH=$ORIGPATH diff --git a/recipes/linux/retroarch-linux-x64 b/recipes/linux/retroarch-linux-x64 new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/recipes/linux/retroarch-linux-x64 @@ -0,0 +1 @@ + diff --git a/recipes/linux/retroarch-linux-x64.conf b/recipes/linux/retroarch-linux-x64.conf new file mode 100644 index 00000000..e404909e --- /dev/null +++ b/recipes/linux/retroarch-linux-x64.conf @@ -0,0 +1,5 @@ +platform unix +PLATFORM unix +MAKEPORTABLE NO +CORE_JOB YES +MAKE make diff --git a/recipes/linux/retroarch-linux-x64.ra b/recipes/linux/retroarch-linux-x64.ra new file mode 100644 index 00000000..913a7c8d --- /dev/null +++ b/recipes/linux/retroarch-linux-x64.ra @@ -0,0 +1,6 @@ +retroarch retroarch https://github.com/libretro/Retroarch.git SUBMODULE YES . +overlays overlays https://github.com/libretro/common-overlays.git ASSETS YES retroarch/media +shaders shaders_cg https://github.com/libretro/common-shaders.git ASSETS YES retroarch/media +autoconfig autoconfig https://github.com/libretro/retroarch-joypad-autoconfig.git ASSETS YES retroarch/media +assets assets https://github.com/libretro/retroarch-assets.git ASSETS YES retroarch/media +libretrodb libretrodb https://github.com/libretro/libretro-database.git ASSETS YES retroarch/media