diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index 8f2195d9..a9780faa 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -948,7 +948,7 @@ then cd $RADIR $MAKE -f Makefile.griffin shaders-convert-glsl PYTHON3=$PYTHON - echo "Processing Assets" + echo "Processing Assets" echo ============================================ rm -Rv android/phoenix/assets/overlays @@ -975,4 +975,144 @@ then fi +echo $PLATFORM +echo $RA + +if [ "${PLATFORM}" == "theos_ios" ] && [ "${RA}" == "YES" ]; +then + + while read line; do + + NAME=`echo $line | cut --fields=1 --delimiter=" "` + DIR=`echo $line | cut --fields=2 --delimiter=" "` + URL=`echo $line | cut --fields=3 --delimiter=" "` + TYPE=`echo $line | cut --fields=4 --delimiter=" "` + ENABLED=`echo $line | cut --fields=5 --delimiter=" "` + PARENTDIR=`echo $line | cut --fields=6 --delimiter=" "` + + if [ "${ENABLED}" == "YES" ]; + then + echo "Processing $NAME" + echo ============================================ + echo NAME: $NAME + echo DIR: $DIR + echo PARENT: $PARENTDIR + echo URL: $URL + echo REPO TYPE: $TYPE + echo ENABLED: $ENABLED + + ARGS="" + + TEMP=`echo $line | cut --fields=9 --delimiter=" "` + if [ -n ${TEMP} ]; + then + ARGS="${TEMP}" + fi + TEMP="" + TEMP=`echo $line | cut --fields=10 --delimiter=" "` + if [ -n ${TEMP} ]; + then + ARGS="${ARGS} ${TEMP}" + fi + TEMP="" + TEMP=`echo $line | cut --fields=11 --delimiter=" "` + if [ -n ${TEMP} ]; + then + ARGS="${ARGS} ${TEMP}" + fi + TEMP="" + TEMP=`echo $line | cut --fields=12 --delimiter=" "` + if [ -n ${TEMP} ]; + then + ARGS="${ARGS} ${TEMP}" + fi + TEMP="" + TEMP=`echo $line | cut --fields=13 --delimiter=" "` + if [ -n ${TEMP} ]; + then + ARGS="${ARGS} ${TEMP}" + fi + TEMP="" + TEMP=`echo $line | cut --fields=14 --delimiter=" "` + if [ -n ${TEMP} ]; + then + ARGS="${ARGS} ${TEMP}" + fi + + ARGS="${ARGS%"${ARGS##*[![:space:]]}"}" + + echo ARGS: $ARGS + + if [ -d "${PARENTDIR}/${DIR}/.git" ]; + then + cd $PARENTDIR + cd $DIR + echo "pulling from repo... " + OUT=`git pull` + echo $OUT + if [ "${TYPE}" == "PROJECT" ]; + then + RADIR=$DIR + if [[ $OUT == *"Already up-to-date"* ]] + then + BUILD="NO" + else + BUILD="YES" + fi + fi + cd $WORK + + else + echo "cloning repo..." + cd $PARENTDIR + git clone "$URL" "$DIR" --depth=1 + cd $DIR + if [ "${TYPE}" == "PROJECT" ]; + then + BUILD="YES" + RADIR=$DIR + + fi + cd $WORK + fi + fi + + echo + echo + done < $1.ra + if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ]; + then + echo "Compiling Shaders" + echo ============================================ + + echo RADIR $RADIR + cd $RADIR + $MAKE -f Makefile.griffin shaders-convert-glsl PYTHON3=$PYTHON + + echo "Processing Assets" + echo ============================================ + + + echo "Building" + echo ============================================ + cd apple/iOS + rm RetroArch.app -rfv + + rm -rv *.deb + ln -s $THEOS theos + + $MAKE clean + $MAKE -j8 + ./package.sh + + mkdir obj/RetroArch.app/modules + cp -rv ../../../dist/theos/*.* obj/RetroArch.app/modules + cp -rv ../../../dist/info/*.* obj/RetroArch.app/modules + $MAKE package + + cp -rv *.deb /home/buildbot/www/.radius/ + fi + +fi + PATH=$ORIGPATH diff --git a/recipes/recipes-theos.conf b/recipes/recipes-theos.conf index 5676e60c..3b8fc4a5 100644 --- a/recipes/recipes-theos.conf +++ b/recipes/recipes-theos.conf @@ -3,3 +3,5 @@ PATH /opt/theos PLATFORM theos_ios platform theos_ios SUFFIX _ios +RA YES +