Merge pull request #234 from iKarith/master

Toward merging theos script
This commit is contained in:
Twinaphex 2015-03-10 20:48:35 +01:00
commit 559dd615fa
9 changed files with 676 additions and 569 deletions

View File

@ -41,7 +41,11 @@ echo "$FORMAT_COMPILER_TARGET_ALT"
RESET_FORMAT_COMPILER_TARGET=$FORMAT_COMPILER_TARGET
RESET_FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET_ALT
CORE_PREFIX=""
CORE_SUFFIX="_libretro${FORMAT}.$FORMAT_EXT"
if [ "$platform" = "theos_ios" ]; then
CORE_PREFIX="objs/obj/"
fi
build_summary_log() {
@ -53,6 +57,16 @@ build_summary_log() {
fi
}
copy_core_to_dist() {
[ -z "$1" ] && return 1
dest="${2:-$1}"
echo_cmd "cp \"$CORE_PREFIX$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR/$dest$CORE_SUFFIX\""
ret=$?
build_summary_log $ret "$dest"
return $ret
}
build_should_skip() {
[ -z "$SKIP_UNCHANGED" ] && return 1
@ -114,8 +128,7 @@ build_libretro_pcsx_rearmed_interpreter() {
echo_cmd "$MAKE -f Makefile.libretro platform=\"$FORMAT_COMPILER_TARGET\" \"-j$JOBS\" clean" || die 'Failed to clean PCSX ReARMed'
fi
echo_cmd "$MAKE -f Makefile.libretro USE_DYNAREC=0 platform=\"$FORMAT_COMPILER_TARGET\" $COMPILER \"-j$JOBS\"" || die 'Failed to build PCSX ReARMed'
echo_cmd "cp \"pcsx_rearmed$CORE_SUFFIX\" \"$RARCH_DIST_DIR/pcsx_rearmed_interpreter${FORMAT}.$FORMAT_EXT\""
build_summary_log $? "pcsx_rearmed_interpreter"
copy_core_to_dist "pcsx_rearmed" "pcsx_rearmed_interpreter"
build_save_revision $? "pcsx_rearmed_interpreter"
else
echo 'PCSX ReARMed not fetched, skipping ...'
@ -137,8 +150,7 @@ build_libretro_generic_makefile_subcore() {
echo_cmd "$MAKE -f \"$4\" platform=$5 -j$JOBS clean" || die "Failed to clean $2"
fi
echo_cmd "$MAKE -f $4 platform=$5 -j$JOBS" || die "Failed to build $2"
echo_cmd "cp $2$CORE_SUFFIX $RARCH_DIST_DIR/$2$CORE_SUFFIX"
build_summary_log $? "$2"
copy_core_to_dist "$2"
fi
}
@ -155,18 +167,6 @@ build_libretro_fba_cps1() {
}
copy_core_to_dist() {
if [ "$FORMAT_COMPILER_TARGET" = "theos_ios" ]; then
echo_cmd "cp \"objs/obj/$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR\""
else
echo_cmd "cp \"$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR\""
fi
ret=$?
build_summary_log $ret "$1"
return $ret
}
build_libretro_generic() {
echo_cmd "cd \"$5/$2\""
@ -310,7 +310,7 @@ libretro_build_core() {
build_libretro_test() {
build_dir="$WORKDIR/$1"
build_dir="$WORKDIR/retroarch"
if build_should_skip "test" "$build_dir"; then
echo "Core test is already built, skipping..."
@ -378,10 +378,8 @@ build_libretro_mame_modern() {
fi
[ "$ret" -gt 0 ] && die 'Failed to build MAME'
echo_cmd "cp \"$2$CORE_SUFFIX\" \"$RARCH_DIST_DIR\""
ret=$?
build_summary_log $ret "$2"
return $ret
copy_core_to_dist "$2"
return $?
else
echo 'MAME not fetched, skipping ...'
fi
@ -421,9 +419,11 @@ build_libretro_mame_prerule() {
else
for target in mame mess ume; do
echo_cmd "$MAKE -f Makefile.libretro $extra_args \"TARGET=$target\" platform=\"$FORMAT_COMPILER_TARGET\" $COMPILER \"-j$JOBS\" emulator" || die "Failed to build $target"
echo_cmd "cp \"$target$CORE_SUFFIX\" \"$RARCH_DIST_DIR\""
copy_core_to_dist "$target"
ret=$?
build_summary_log $ret "$target"
# If a target fails, stop here...
[ $ret -eq 0 ] || break
done
fi
@ -431,7 +431,6 @@ build_libretro_mame_prerule() {
echo 'MAME not fetched, skipping ...'
fi
# TODO: Like others, this saves the revision if ume builds...
build_save_revision $ret mame
}
@ -472,9 +471,7 @@ build_libretro_bsnes_modern() {
ret=0
for a in accuracy balanced performance; do
echo_cmd "$cmdline profile=$a"
echo_cmd "cp -f \"out/${1}_$a$CORE_SUFFIX\" \"$RARCH_DIST_DIR/${1}_$a$CORE_SUFFIX\""
ret=$?
build_summary_log $ret "${1}_$a"
copy_core_to_dist "out/${1}_$a" "${1}_$a"
[ $ret -eq 0 ] || break
done
@ -518,14 +515,14 @@ build_libretro_bsnes_cplusplus98() {
echo_cmd "cd \"$build_dir\""
if [ -z "$NOCLEAN" ]; then
echo_cmd "$MAKE clean" || die "Failed to clean $CORENAME"
# byuu's "make clean" doesn't
echo_cmd "rm -f obj/*.{o,\"$FORMAT_EXT\"}"
echo_cmd "rm -f out/*.{o,\"$FORMAT_EXT\"}"
fi
echo_cmd "$MAKE platform=\"$FORMAT_COMPILER_TARGET\" $COMPILER \"-j$JOBS\""
echo_cmd "cp \"out/libretro.$FORMAT_EXT\" \"$RARCH_DIST_DIR/$CORENAME$CORE_SUFFIX\""
ret=$?
build_summary_log $ret $CORENAME
build_save_revision $ret $CORENAME
copy_core_to_dist "out/$CORENAME" "$CORENAME"
build_save_revision $? $CORENAME
else
echo "$CORENAME not fetched, skipping ..."
fi
@ -548,10 +545,8 @@ build_libretro_bnes() {
echo_cmd "$MAKE -f Makefile \"-j$JOBS\" clean" || die 'Failed to clean bNES'
fi
echo_cmd "$MAKE -f Makefile $COMPILER \"-j$JOBS\" compiler=\"${CXX11}\"" || die 'Failed to build bNES'
echo_cmd "cp \"libretro${FORMAT}.$FORMAT_EXT\" \"$RARCH_DIST_DIR/bnes$CORE_SUFFIX\""
ret=$?
build_summary_log $ret "bnes"
build_save_revision $ret "bnes"
copy_core_to_dist "bnes"
build_save_revision $? "bnes"
else
echo 'bNES not fetched, skipping ...'
fi
@ -586,10 +581,8 @@ build_libretro_mupen64() {
echo_cmd "$MAKE $dynarec platform=\"$FORMAT_COMPILER_TARGET_ALT\" $COMPILER \"-j$JOBS\"" || die 'Failed to build Mupen 64'
echo_cmd "cp \"mupen64plus$CORE_SUFFIX\" \"$RARCH_DIST_DIR\""
ret=$?
build_summary_log $ret "mupen64plus"
build_save_revision $ret "mupen64plus"
copy_core_to_dist "mupen64plus"
build_save_revision $? "mupen64plus"
else
echo 'Mupen64 Plus not fetched, skipping ...'
fi
@ -649,34 +642,34 @@ build_libretro_4do() {
libretro_build_core 4do
}
build_libretro_beetle_gba() {
libretro_build_core beetle_gba
libretro_build_core mednafen_gba
}
build_libretro_beetle_lynx() {
libretro_build_core beetle_lynx
libretro_build_core mednafen_lynx
}
build_libretro_beetle_ngp() {
libretro_build_core beetle_ngp
libretro_build_core mednafen_ngp
}
build_libretro_beetle_pce_fast() {
libretro_build_core beetle_pce_fast
libretro_build_core mednafen_pce_fast
}
build_libretro_beetle_pcfx() {
libretro_build_core beetle_pcfx
libretro_build_core mednafen_pcfx
}
build_libretro_beetle_psx() {
libretro_build_core beetle_psx
libretro_build_core mednafen_psx
}
build_libretro_beetle_snes() {
libretro_build_core beetle_snes
libretro_build_core mednafen_snes
}
build_libretro_beetle_supergrafx() {
libretro_build_core beetle_supergrafx
libretro_build_core mednafen_supergrafx
}
build_libretro_beetle_vb() {
libretro_build_core beetle_vb
libretro_build_core mednafen_vb
}
build_libretro_beetle_wswan() {
libretro_build_core beetle_wsawn
libretro_build_core mednafen_wsawn
}
build_libretro_bluemsx() {
libretro_build_core bluemsx

View File

@ -1,6 +1,8 @@
#! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
platform=theos_ios
SCRIPT="${0#./}"
BASE_DIR="${SCRIPT%/*}"
WORKDIR="$PWD"
@ -14,75 +16,193 @@ else
fi
fi
set -e
. "$BASE_DIR/libretro-config.sh"
if [ -z "$RARCH_DIST_DIR" ]; then
RARCH_DIR="$WORKDIR/dist"
RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR"
fi
if [ -z "$JOBS" ]; then
JOBS=7
fi
if [ "$HOST_CC" ]; then
CC="${HOST_CC}-gcc"
CXX="${HOST_CC}-g++"
CXX11="${HOST_CC}-g++"
STRIP="${HOST_CC}-strip"
fi
if [ -z "$MAKE" ]; then
if uname -s | grep -i MINGW32 > /dev/null 2>&1; then
MAKE=mingw32-make
else
if type gmake > /dev/null 2>&1; then
MAKE=gmake
else
MAKE=make
fi
fi
fi
if [ -z "$CC" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CC=cc
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CC=mingw32-gcc
else
CC=gcc
fi
fi
if [ -z "$CXX" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CXX=c++
CXX11="clang++ -std=c++11 -stdlib=libc++"
# FIXME: Do this right later.
if [ "$ARCH" = "i386" ]; then
CC="cc -arch i386"
CXX="c++ -arch i386"
CXX11="clang++ -arch i386 -std=c++11 -stdlib=libc++"
fi
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CXX=mingw32-g++
CXX11=mingw32-g++
else
CXX=g++
CXX11=g++
fi
fi
FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET
if [ "$FORMAT_COMPILER_TARGET" = "ios" ]; then
echo "iOS path: ${IOSSDK}"
echo "iOS version: ${IOSVER}"
fi
echo "CC = $CC"
echo "CXX = $CXX"
echo "CXX11 = $CXX11"
echo "STRIP = $STRIP"
RARCH_DIR=$BASE_DIR/dist
RARCH_DIST_DIR=$RARCH_DIR/theos_ios
FORMAT=_ios
FORMAT_COMPILER_TARGET=theos_ios
FORMAT_COMPILER_TARGET_ALT=theos_ios
FORMAT_EXT=dylib
JOBS=7
MAKE=make
CXX11="clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0"
IOS=1
. "$BASE_DIR/libretro-build-common.sh"
if [ $1 ]; then
$1
else
build_libretro_2048
build_libretro_bluemsx
build_libretro_fmsx
#build_libretro_bsnes_cplusplus98
#build_libretro_bsnes
#build_libretro_beetle_lynx
#build_libretro_beetle_gba
#build_libretro_beetle_ngp
#build_libretro_beetle_pce_fast
#build_libretro_beetle_supergrafx
#build_libretro_beetle_pcfx
#build_libretro_beetle_vb
#build_libretro_beetle_wswan
#build_libretro_mednafen_psx
#build_libretro_beetle_bsnes
build_libretro_catsfc
build_libretro_snes9x
build_libretro_snes9x_next
build_libretro_genesis_plus_gx
build_libretro_fb_alpha
build_libretro_vbam
build_libretro_vba_next
build_libretro_fceumm
build_libretro_gambatte
build_libretro_meteor
build_libretro_nx
build_libretro_prboom
build_libretro_stella
build_libretro_quicknes
build_libretro_nestopia
build_libretro_tyrquake
#build_libretro_mame078
#build_libretro_mame
build_libretro_dosbox
#build_libretro_scummvm
#build_libretro_picodrive
build_libretro_handy
build_libretro_desmume
#build_libretro_pcsx_rearmed
#build_libretro_pcsx_rearmed_interpreter
#build_libretro_mupen64
#build_libretro_yabause
#build_libretro_ffmpeg
build_libretro_3dengine
build_libretro_vecx
build_libretro_tgbdual
build_libretro_prosystem
#build_libretro_dinothawr
build_libretro_virtualjaguar
build_libretro_o2em
build_libretro_4do
build_libretro_gpsp
#build_libretro_emux
mkdir -p "$RARCH_DIST_DIR"
if [ -n "$SKIP_UNCHANGED" ]; then
[ -z "$BUILD_REVISIONS_DIR" ] && BUILD_REVISIONS_DIR="$WORKDIR/build-revisions"
echo "mkdir -p \"$BUILD_REVISIONS_DIR\""
mkdir -p "$BUILD_REVISIONS_DIR"
fi
if [ -n "$1" ]; then
while [ -n "$1" ]; do
case "$1" in
build_libretro_*)
# "Old"-style
$1
;;
*)
# New style (just generic cores for now)
libretro_build_core $1
;;
esac
shift
done
else
libretro_build_core 2048
libretro_build_core 4do
libretro_build_core bluemsx
libretro_build_core fmsx
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
build_libretro_bsnes_cplusplus98
build_libretro_bsnes
build_libretro_bsnes_mercury
libretro_build_core mednafen_lynx
libretro_build_core mednafen_gba
libretro_build_core mednafen_ngp
libretro_build_core mednafen_pce_fast
libretro_build_core mednafen_supergrafx
libretro_build_core mednafen_pcfx
libretro_build_core mednafen_vb
libretro_build_core mednafen_wswan
libretro_build_core mednafen_psx
libretro_build_core mednafen_snes
fi
libretro_build_core catsfc
libretro_build_core snes9x
libretro_build_core snes9x_next
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
libretro_build_core genesis_plus_gx
fi
libretro_build_core fb_alpha
libretro_build_core vbam
libretro_build_core vba_next
libretro_build_core fceumm
libretro_build_core gambatte
libretro_build_core meteor
libretro_build_core nxengine
libretro_build_core prboom
libretro_build_core stella
libretro_build_core quicknes
libretro_build_core nestopia
libretro_build_core tyrquake
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
libretro_build_core mame078
build_libretro_mame_prerule
fi
libretro_build_core dosbox
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
libretro_build_core scummvm
libretro_build_core picodrive
fi
libretro_build_core handy
libretro_build_core desmume
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
if [ $FORMAT_COMPILER_TARGET != "win" ]; then
libretro_build_core pcsx_rearmed
fi
if [ $FORMAT_COMPILER_TARGET = "ios" ]; then
# For self-signed iOS (without jailbreak)
build_libretro_pcsx_rearmed_interpreter
fi
libretro_build_core yabause
fi
libretro_build_core vecx
libretro_build_core tgbdual
libretro_build_core prosystem
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
libretro_build_core dinothawr
fi
libretro_build_core virtualjaguar
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
build_libretro_mupen64
fi
libretro_build_core 3dengine
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
if [ $FORMAT_COMPILER_TARGET != "ios" ]; then
# These don't currently build on iOS
build_libretro_bnes
libretro_build_core ffmpeg
libretro_build_core ppsspp
fi
fi
libretro_build_core o2em
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
libretro_build_core hatari
fi
libretro_build_core gpsp
if [ $FORMAT_COMPILER_TARGET != "theos_ios" ]; then
build_libretro_emux
libretro_build_core fuse
libretro_build_core stonesoup
libretro_build_core gw
libretro_build_core lutro
build_libretro_test
fi
fi
build_summary

View File

@ -118,16 +118,16 @@ else
build_libretro_bsnes_cplusplus98
build_libretro_bsnes
build_libretro_bsnes_mercury
libretro_build_core beetle_lynx
libretro_build_core beetle_gba
libretro_build_core beetle_ngp
libretro_build_core beetle_pce_fast
libretro_build_core beetle_supergrafx
libretro_build_core beetle_pcfx
libretro_build_core beetle_vb
libretro_build_core beetle_wswan
libretro_build_core mednafen_lynx
libretro_build_core mednafen_gba
libretro_build_core mednafen_ngp
libretro_build_core mednafen_pce_fast
libretro_build_core mednafen_supergrafx
libretro_build_core mednafen_pcfx
libretro_build_core mednafen_vb
libretro_build_core mednafen_wswan
libretro_build_core mednafen_psx
libretro_build_core beetle_snes
libretro_build_core mednafen_snes
libretro_build_core catsfc
libretro_build_core snes9x
libretro_build_core snes9x_next

View File

@ -17,13 +17,12 @@ WORK=$PWD
echo Original PATH: $PATH
while read line; do
KEY=`echo $line | cut --fields=1 --delimiter=" "`
VALUE=`echo $line | cut --fields=2 --delimiter=" "`
KEY=`echo $line | cut -f 1 -d " "`
VALUE=`echo $line | cut -f 2 -d " "`
if [ "${KEY}" = "PATH" ]; then
export PATH=${VALUE}:${ORIGPATH}
echo New PATH: $PATH
else
export ${KEY}=${VALUE}
echo $KEY: $VALUE
@ -32,7 +31,7 @@ done < $1.conf
echo
echo
. ./libretro-config.sh
. $WORK/libretro-config.sh
echo
[[ "${ARM_NEON}" ]] && echo 'ARM NEON opts enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-neon"
@ -69,7 +68,6 @@ fi
mkdir -v -p "$RARCH_DIST_DIR"
if [ "${PLATFORM}" = "android" ]; then
IFS=' ' read -ra ABIS <<< "$TARGET_ABIS"
for a in "${ABIS[@]}"; do
echo $a
@ -174,7 +172,7 @@ buildbot_log() {
MESSAGE=`echo -e $1`
HASH=`echo -n "$MESSAGE" | openssl sha1 -hmac $SIG | cut --fields=2 --delimiter=" "`
HASH=`echo -n "$MESSAGE" | openssl sha1 -hmac $SIG | cut -f 2 -d " "`
curl --data "message=$MESSAGE&sign=$HASH" $LOGURL
@ -198,8 +196,6 @@ build_libretro_generic_makefile() {
JOBS=1
fi
if [ -z "${NOCLEAN}" ]; then
echo "cleaning up..."
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean"
@ -227,11 +223,10 @@ build_libretro_generic_makefile() {
if [ $? -eq 0 ]; then
MESSAGE="$1 build successful ($jobid)"
if [ "${MAKEPORTABLE}" == "YES" ];
then
echo "$1 running retrolink ($jobid)"
$WORK/retrolink.sh ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
fi
if [ "${MAKEPORTABLE}" == "YES" ]; then
echo "$1 running retrolink ($jobid)"
$WORK/retrolink.sh ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
fi
cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}.${FORMAT_EXT}
else
MESSAGE="$1 build failed ($jobid)"
@ -239,11 +234,9 @@ build_libretro_generic_makefile() {
echo BUILDBOT JOB: $MESSAGE
buildbot_log "$MESSAGE"
JOBS=$OLDJ
}
build_libretro_generic_theos() {
echo PARAMETERS: DIR $2, SUBDIR: $3, MAKEFILE: $4
NAME=$1
@ -256,9 +249,6 @@ build_libretro_generic_theos() {
cd $DIR
cd $SUBDIR
ln -s $THEOS theos
if [ -z "${NOCLEAN}" ]; then
echo "cleaning up..."
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean"
@ -287,11 +277,9 @@ build_libretro_generic_theos() {
fi
echo BUILDBOT JOB: $MESSAGE
buildbot_log "$MESSAGE"
}
build_libretro_generic_jni() {
echo PARAMETERS: DIR $2, SUBDIR: $3
NAME=$1
@ -315,7 +303,7 @@ build_libretro_generic_jni() {
fi
fi
echo "compiling for ${a}..."
echo "compiling for ${a}..."
if [ -z "${ARGS}" ]; then
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a}"
${NDK} -j${JOBS} APP_ABI=${a}
@ -334,13 +322,9 @@ build_libretro_generic_jni() {
buildbot_log "$MESSAGE"
fi
done
}
build_libretro_bsnes_jni() {
echo PARAMETERS: DIR $2, SUBDIR: $3
NAME=$1
@ -382,14 +366,12 @@ build_libretro_bsnes_jni() {
fi
echo BUILDBOT JOB: $MESSAGE
buildbot_log "$MESSAGE"
done
}
build_libretro_generic_gl_makefile() {
NAME=$1
DIR=$2
SUBDIR=$3
@ -397,7 +379,6 @@ build_libretro_generic_gl_makefile() {
PLATFORM=$5
ARGS=$6
check_opengl
cd $DIR
@ -433,14 +414,11 @@ build_libretro_generic_gl_makefile() {
buildbot_log "$MESSAGE"
reset_compiler_targets
}
build_libretro_bsnes() {
NAME=$1
DIR=$2
PROFILE=$3
@ -448,22 +426,18 @@ build_libretro_bsnes() {
PLATFORM=$5
BSNESCOMPILER=$6
cd $DIR
if [ -z "${NOCLEAN}" ]; then
echo "cleaning up..."
rm -f obj/*.{o,"${FORMAT_EXT}"}
rm -f out/*.{o,"${FORMAT_EXT}"}
if [ "${PROFILE}" = "cpp98" -o "${PROFILE}" = "bnes" ]; then
${MAKE} clean
fi
if [ $? -eq 0 ]; then
echo BUILDBOT JOB: $jobid $1 cleanup success!
else
@ -473,7 +447,6 @@ build_libretro_bsnes() {
echo "compiling..."
if [ "${PROFILE}" = "cpp98" ]; then
${MAKE} platform="${PLATFORM}" ${COMPILER} "-j${JOBS}"
elif [ "${PROFILE}" = "bnes" ]; then
@ -487,9 +460,9 @@ build_libretro_bsnes() {
if [ $? -eq 0 ]; then
MESSAGE="$1 build successful ($jobid)"
if [ "${PROFILE}" = "cpp98" ]; then
cp -fv "out/libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
cp -fv "out/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
elif [ "${PROFILE}" = "bnes" ]; then
cp -fv "libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
cp -fv "${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
else
cp -fv "out/${NAME}_libretro$FORMAT.${FORMAT_EXT}" $RARCH_DIST_DIR/${NAME}_${PROFILE}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
fi
@ -498,7 +471,6 @@ build_libretro_bsnes() {
fi
echo BUILDBOT JOB: $MESSAGE
buildbot_log "$MESSAGE"
}
#fetch a project and mark it for building if there have been any changes
@ -509,15 +481,14 @@ export jobid=$1
echo
echo
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=" "`
COMMAND=`echo $line | cut --fields=6 --delimiter=" "`
MAKEFILE=`echo $line | cut --fields=7 --delimiter=" "`
SUBDIR=`echo $line | cut --fields=8 --delimiter=" "`
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
COMMAND=`echo $line | cut -f 6 -d " "`
MAKEFILE=`echo $line | cut -f 7 -d " "`
SUBDIR=`echo $line | cut -f 8 -d " "`
if [ "${ENABLED}" = "YES" ]; then
echo "BUILDBOT JOB: $jobid Processing $NAME"
@ -530,35 +501,34 @@ while read line; do
echo DIR: $DIR
echo SUBDIR: $SUBDIR
ARGS=""
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
TEMP=`echo $line | cut -f 9 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=10 --delimiter=" "`
TEMP=`echo $line | cut -f 10 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
TEMP=`echo $line | cut -f 11 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
TEMP=`echo $line | cut -f 12 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
TEMP=`echo $line | cut -f 13 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
TEMP=`echo $line | cut -f 14 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
@ -596,9 +566,7 @@ while read line; do
BUILD="YES"
fi
cd ..
else
echo "cloning repo..."
git clone --depth=1 "$URL" "$DIR"
@ -676,7 +644,6 @@ while read line; do
cd "${BASE_DIR}"
PREVCORE=$NAME
PREVBUILD=$BUILD
done < $1
echo "BUILDBOT JOB: $jobid Building Retroarch"
@ -685,15 +652,13 @@ cd $WORK
BUILD=""
if [ "${PLATFORM}" = "android" ] && [ "${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=" "`
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
PARENTDIR=`echo $line | cut -f 6 -d " "`
if [ "${ENABLED}" = "YES" ]; then
echo "BUILDBOT JOB: $jobid Processing $NAME"
@ -707,32 +672,32 @@ if [ "${PLATFORM}" = "android" ] && [ "${RA}" = "YES" ]; then
ARGS=""
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
TEMP=`echo $line | cut -f 9 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=10 --delimiter=" "`
TEMP=`echo $line | cut -f 10 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
TEMP=`echo $line | cut -f 11 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
TEMP=`echo $line | cut -f 12 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
TEMP=`echo $line | cut -f 13 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
TEMP=`echo $line | cut -f 14 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
@ -765,7 +730,6 @@ if [ "${PLATFORM}" = "android" ] && [ "${RA}" = "YES" ]; then
if [ "${TYPE}" = "PROJECT" ]; then
BUILD="YES"
RADIR=$DIR
fi
cd $WORK
fi
@ -774,6 +738,7 @@ if [ "${PLATFORM}" = "android" ] && [ "${RA}" = "YES" ]; then
echo
echo
done < $1.ra
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
echo "BUILDBOT JOB: $jobid Compiling Shaders"
echo
@ -825,15 +790,13 @@ if [ "${PLATFORM}" = "android" ] && [ "${RA}" = "YES" ]; then
fi
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=" "`
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
PARENTDIR=`echo $line | cut -f 6 -d " "`
if [ "${ENABLED}" = "YES" ]; then
echo "BUILDBOT JOB: $jobid Processing $NAME"
@ -847,32 +810,32 @@ if [ "${PLATFORM}" = "theos_ios" ] && [ "${RA}" = "YES" ]; then
ARGS=""
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
TEMP=`echo $line | cut -f 9 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=10 --delimiter=" "`
TEMP=`echo $line | cut -f 10 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
TEMP=`echo $line | cut -f 11 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
TEMP=`echo $line | cut -f 12 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
TEMP=`echo $line | cut -f 13 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
TEMP=`echo $line | cut -f 14 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
@ -914,6 +877,7 @@ if [ "${PLATFORM}" = "theos_ios" ] && [ "${RA}" = "YES" ]; then
echo
echo
done < $1.ra
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
echo "BUILDBOT JOB: $jobid Compiling Shaders"
echo
@ -932,7 +896,6 @@ if [ "${PLATFORM}" = "theos_ios" ] && [ "${RA}" = "YES" ]; then
rm RetroArch.app -rf
rm -rfv *.deb
ln -s $THEOS theos
export PRODUCT_NAME=RetroArch
$MAKE clean
$MAKE -j8
@ -950,15 +913,13 @@ if [ "${PLATFORM}" = "theos_ios" ] && [ "${RA}" = "YES" ]; then
fi
if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] && [ "${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=" "`
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
PARENTDIR=`echo $line | cut -f 6 -d " "`
if [ "${ENABLED}" = "YES" ]; then
echo "BUILDBOT JOB: $jobid Processing $NAME"
@ -972,33 +933,33 @@ if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] && [ "${RA}" =
ARGS=""
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
TEMP=`echo $line | cut -f 9 -d " "`
if [ -n ${TEMP} ];
then
ARGS="${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=10 --delimiter=" "`
TEMP=`echo $line | cut -f 10 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
TEMP=`echo $line | cut -f 11 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
TEMP=`echo $line | cut -f 12 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
TEMP=`echo $line | cut -f 13 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
TEMP=`echo $line | cut -f 14 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
@ -1031,7 +992,6 @@ if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] && [ "${RA}" =
if [ "${TYPE}" = "PROJECT" ]; then
BUILD="YES"
RADIR=$DIR
fi
cd $WORK
fi
@ -1040,8 +1000,8 @@ if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] && [ "${RA}" =
echo
echo
done < $1.ra
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
cd $RADIR
echo "BUILDBOT JOB: $jobid Building"
echo
@ -1133,8 +1093,6 @@ video_shader_dir = ":\shaders"
EOF
rm -rfv windows
mkdir -p windows
mkdir -p windows/overlays
@ -1148,7 +1106,7 @@ EOF
mkdir -p windows/database
mkdir -p windows/database/cursors
mkdir -p windows/database/rdb
cp -v *.cfg windows/
cp -v *.exe tools/*.exe windows/
cp -Rfv media/overlays/* windows/overlays
@ -1163,27 +1121,22 @@ EOF
cp -Rfv audio/audio_filters/*.dsp windows/filters/audio
cp -Rfv gfx/video_filters/*.dll windows/filters/video
cp -Rfv gfx/video_filters/*.filt windows/filters/video
else
MESSAGE="retroarch build failed ($jobid)"
echo $MESSAGE
buildbot_log "$MESSAGE"
fi
fi
fi
if [ "${PLATFORM}" = "psp1" ] && [ "${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=" "`
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
PARENTDIR=`echo $line | cut -f 6 -d " "`
if [ "${ENABLED}" = "YES" ]; then
echo "BUILDBOT JOB: $jobid Processing $NAME"
@ -1197,131 +1150,121 @@ if [ "${PLATFORM}" = "psp1" ] && [ "${RA}" = "YES" ]; then
ARGS=""
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
TEMP=`echo $line | cut -f 9 -d " "`
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..."
TEMP=""
TEMP=`echo $line | cut -f 10 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 11 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 12 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 13 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 14 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
echo ARGS: $ARGS
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
cd $PARENTDIR
git clone "$URL" "$DIR" --depth=1
cd $DIR
if [ "${TYPE}" = "PROJECT" ]; then
BUILD="YES"
RADIR=$DIR
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
cd $WORK
fi
fi
echo
echo
echo
echo
done < $1.ra
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
cd $RADIR
rm -rfv psp1/pkg
echo "BUILDBOT JOB: $jobid Building"
echo
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ]; then
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_psp1." $2 }' |sh
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_psp1." $2 }' |sh
./psp1-cores.sh
if [ $? -eq 0 ]; then
MESSAGE="retroarch build successful ($jobid)"
echo $MESSAGE
else
MESSAGE="retroarch build failed ($jobid)"
echo $MESSAGE
fi
echo "Packaging"
echo ============================================
cp retroarch.cfg retroarch.default.cfg
./psp1-cores.sh
if [ $? -eq 0 ]; then
MESSAGE="retroarch build successful ($jobid)"
echo $MESSAGE
else
MESSAGE="retroarch build failed ($jobid)"
echo $MESSAGE
mkdir -p psp1/pkg/
mkdir -p psp1/pkg/cheats
mkdir -p psp1/pkg/database
mkdir -p psp1/pkg/database/cursors
mkdir -p psp1/pkg/database/rdb
cp -Rfv media/libretrodb/cht/* psp1/pkg/cheats
cp -Rfv media/libretrodb/rdb/* psp1/pkg/database/rdb
cp -Rfv media/libretrodb/cursors/* psp1/pkg/database/cursors
fi
echo "Packaging"
echo ============================================
cp retroarch.cfg retroarch.default.cfg
mkdir -p psp1/pkg/
mkdir -p psp1/pkg/cheats
mkdir -p psp1/pkg/database
mkdir -p psp1/pkg/database/cursors
mkdir -p psp1/pkg/database/rdb
cp -Rfv media/libretrodb/cht/* psp1/pkg/cheats
cp -Rfv media/libretrodb/rdb/* psp1/pkg/database/rdb
cp -Rfv media/libretrodb/cursors/* psp1/pkg/database/cursors
fi
fi
if [ "${PLATFORM}" == "wii" ] && [ "${RA}" == "YES" ];
then
if [ "${PLATFORM}" == "wii" ] && [ "${RA}" == "YES" ]; then
while read line; do
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
PARENTDIR=`echo $line | cut -f 6 -d " "`
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
if [ "${ENABLED}" == "YES" ]; then
echo "BUILDBOT JOB: $jobid Processing $NAME"
echo
echo NAME: $NAME
@ -1333,132 +1276,114 @@ then
ARGS=""
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
if [ -n ${TEMP} ];
then
TEMP=`echo $line | cut -f 9 -d " "`
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
fi
TEMP=""
TEMP=`echo $line | cut -f 10 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 11 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 12 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 13 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut -f 14 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
echo ARGS: $ARGS
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"
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
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
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
cd $WORK
fi
fi
echo
echo
echo
echo
done < $1.ra
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ];
then
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ]; then
cd $RADIR
#rm -rfv wii/pkg
#rm -rfv wii/pkg
echo "BUILDBOT JOB: $jobid Building"
echo
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ];
then
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ]; then
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
cd dist-scripts
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_wii." $2 }' |sh
sh ./wii-cores.sh
if [ $? -eq 0 ];
then
MESSAGE="retroarch build successful ($jobid)"
echo $MESSAGE
else
MESSAGE="retroarch build failed ($jobid)"
echo $MESSAGE
ls -1 *.a | awk -F "." ' { print "cp " $0 " " $1 "_wii." $2 }' |sh
sh ./wii-cores.sh
if [ $? -eq 0 ]; then
MESSAGE="retroarch build successful ($jobid)"
echo $MESSAGE
else
MESSAGE="retroarch build failed ($jobid)"
echo $MESSAGE
fi
buildbot_log "$MESSAGE"
cd ..
fi
buildbot_log "$MESSAGE"
cd ..
echo "Packaging"
echo ============================================
cp retroarch.cfg retroarch.default.cfg
mkdir -p wii/pkg/
mkdir -p wii/pkg/overlays
mkdir -p wii/pkg/cheats
mkdir -p wii/pkg/database
mkdir -p wii/pkg/database/cursors
mkdir -p wii/pkg/database/rdb
cp -Rfv media/libretrodb/cht/* wii/pkg/cheats
cp -Rfv media/libretrodb/rdb/* wii/pkg/database/rdb
cp -Rfv media/libretrodb/cursors/* wii/pkg/database/cursors
cp -Rfv media/overlays/* wii/pkg/overlays
fi
echo "Packaging"
echo ============================================
cp retroarch.cfg retroarch.default.cfg
mkdir -p wii/pkg/
mkdir -p wii/pkg/overlays
mkdir -p wii/pkg/cheats
mkdir -p wii/pkg/database
mkdir -p wii/pkg/database/cursors
mkdir -p wii/pkg/database/rdb
cp -Rfv media/libretrodb/cht/* wii/pkg/cheats
cp -Rfv media/libretrodb/rdb/* wii/pkg/database/rdb
cp -Rfv media/libretrodb/cursors/* wii/pkg/database/cursors
cp -Rfv media/overlays/* wii/pkg/overlays
fi
fi
PATH=$ORIGPATH

View File

@ -22,8 +22,8 @@ WORK=$PWD
echo Original PATH: $PATH
while read line; do
KEY=`echo $line | cut --fields=1 --delimiter=" "`
VALUE=`echo $line | cut --fields=2 --delimiter=" "`
KEY=`echo $line | cut -f 1 -d " "`
VALUE=`echo $line | cut -f 2 -d " "`
if [ "${KEY}" = "PATH" ]; then
export PATH=${VALUE}:${ORIGPATH}
@ -177,7 +177,7 @@ cd "${BASE_DIR}"
####build commands
buildbot_log() {
HASH=`echo -n "$1" | openssl sha1 -hmac $SIG | cut --fields=2 --delimiter=" "`
HASH=`echo -n "$1" | openssl sha1 -hmac $SIG | cut -f 2 -d " "`
curl --data "message=$1&sign=$HASH" $LOGURL
@ -485,9 +485,9 @@ build_libretro_bsnes() {
if [ $? -eq 0 ]; then
MESSAGE="$1 build successful ($jobid)"
if [ "${PROFILE}" = "cpp98" ]; then
cp -fv "out/libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
cp -fv "out/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
elif [ "${PROFILE}" = "bnes" ]; then
cp -fv "libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
cp -fv "${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
else
cp -fv "out/${NAME}_libretro$FORMAT.${FORMAT_EXT}" $RARCH_DIST_DIR/${NAME}_${PROFILE}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
fi
@ -516,14 +516,14 @@ echo
echo
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=" "`
COMMAND=`echo $line | cut --fields=6 --delimiter=" "`
MAKEFILE=`echo $line | cut --fields=7 --delimiter=" "`
SUBDIR=`echo $line | cut --fields=8 --delimiter=" "`
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
COMMAND=`echo $line | cut -f 6 -d " "`
MAKEFILE=`echo $line | cut -f 7 -d " "`
SUBDIR=`echo $line | cut -f 8 -d " "`
if [ ! -z "$TASK" ]; then
@ -548,32 +548,32 @@ while read line; do
ARGS=""
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
TEMP=`echo $line | cut -f 9 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=10 --delimiter=" "`
TEMP=`echo $line | cut -f 10 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
TEMP=`echo $line | cut -f 11 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
TEMP=`echo $line | cut -f 12 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
TEMP=`echo $line | cut -f 13 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
TEMP=`echo $line | cut -f 14 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
@ -629,12 +629,12 @@ if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] && [ "${RA}" =
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=" "`
NAME=`echo $line | cut -f 1 -d " "`
DIR=`echo $line | cut -f 2 -d " "`
URL=`echo $line | cut -f 3 -d " "`
TYPE=`echo $line | cut -f 4 -d " "`
ENABLED=`echo $line | cut -f 5 -d " "`
PARENTDIR=`echo $line | cut -f 6 -d " "`
if [ ! -z "$TASK" ]; then
if [ "${TASK}" != "${NAME}" ]; then
@ -653,32 +653,32 @@ if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] && [ "${RA}" =
ARGS=""
TEMP=`echo $line | cut --fields=9 --delimiter=" "`
TEMP=`echo $line | cut -f 9 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=10 --delimiter=" "`
TEMP=`echo $line | cut -f 10 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
TEMP=`echo $line | cut -f 11 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
TEMP=`echo $line | cut -f 12 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
TEMP=`echo $line | cut -f 13 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi
TEMP=""
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
TEMP=`echo $line | cut -f 14 -d " "`
if [ -n ${TEMP} ]; then
ARGS="${ARGS} ${TEMP}"
fi

View File

@ -71,7 +71,7 @@ case "$platform" in
X86=true
;;
armv*)
B ARM=true
ARM=true
export FORMAT_COMPILER_TARGET=armv
export RARCHCFLAGS="$RARCHCFLAGS -marm"
case "${ARCH}" in
@ -93,36 +93,43 @@ B ARM=true
[ -z "$platform" ] && platform="$(uname)"
case "$platform" in
*BSD*)
platform=bsd
FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="unix"
DIST_DIR="bsd"
;;
osx|*Darwin*)
platform=osx
FORMAT_EXT="dylib"
FORMAT_COMPILER_TARGET="osx"
DIST_DIR="osx"
;;
win|*mingw32*|*MINGW32*|*MSYS_NT*)
platform=win
FORMAT_EXT="dll"
FORMAT_COMPILER_TARGET="win"
DIST_DIR="win_x86"
;;
win64|*mingw64*|*MINGW64*)
platform=win
FORMAT_EXT="dll"
FORMAT_COMPILER_TARGET="win"
DIST_DIR="win_x64"
;;
*psp1*)
platform=psp1
FORMAT_EXT="a"
FORMAT_COMPILER_TARGET="psp1"
DIST_DIR="psp1"
;;
*wii*)
platform=wii
FORMAT_EXT="a"
FORMAT_COMPILER_TARGET="wii"
DIST_DIR="wii"
;;
theos_ios*)
platform=theos_ios
FORMAT_EXT="dylib"
FORMAT_COMPILER_TARGET="theos_ios"
DIST_DIR="theos_ios"

View File

@ -25,7 +25,6 @@ fi
. "$BASE_DIR/rules.d/devkit-rules.sh"
# TODO: Read these programmatically
# libretro_fetch: Download the given core using its fetch rules
#
# $1 Name of the core to fetch
@ -97,30 +96,49 @@ libretro_fetch() {
fi
}
libretro_players="retroarch"
libretro_devkits="devkit"
if [ -n "$1" ]; then
fetch_devel=""
no_more_args=""
while [ -n "$1" ]; do
if [ -z "$no_more_args" ]; then
if [[ "$1" = -* && -z "$no_more_args" ]]; then
case "$1" in
--)
no_more_args="1"
;;
*)
# New style (just cores for now)
libretro_fetch $1
;;
--) no_more_args=1 ;;
--devel) fetch_devel=1 ;;
--cores) fetch_cores="$libretro_cores" ;;
--devkit) fetch_devkits="$libretro_devkits" ;;
--players) fetch_players="$libretro_players" ;;
--retroarch) fetch_players="retroarch" ;;
*) ;;
esac
else
libretro_fetch $1
shift
continue
fi
fetch_cores="$fetch_cores $1"
# Handle non-commands
shift
done
else
libretro_fetch retroarch
libretro_fetch devkit
for a in $libretro_cores; do
libretro_fetch "${a%%:*}"
done
# Make libretro-fetch.sh with no args behave traditionally by default
fetch_devel=1
fetch_cores="$libretro_cores"
fetch_players="retroarch"
fetch_devkit="devkit"
fi
for a in $fetch_players; do
libretro_fetch $a
done
for a in $fetch_devkits; do
libretro_fetch $a
done
for a in $fetch_cores; do
if [ -n "$fetch_devel" ] || can_build_module "$a"; then
libretro_fetch "${a%%:*}"
fi
done

View File

@ -1,27 +1,27 @@
# vim: set ts=3 sw=3 noet ft=sh : bash
register_module core "bsnes"
register_core "bsnes" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_bsnes_name="bsnes/higan"
libretro_bsnes_git_url="https://github.com/libretro/bsnes-libretro.git"
libretro_bsnes_build_rule=none # NEED CUSTOM RULE
register_core "snes9x"
register_core "snes9x" -ngc -ps3 -psp1 -wii
libretro_snes9x_name="SNES9x"
libretro_snes9x_git_url="https://github.com/libretro/snes9x.git"
libretro_snes9x_build_subdir="libretro"
register_core "snes9x_next"
register_core "snes9x_next" -ps3
libretro_snes9x_next_name="SNES9x Next"
libretro_snes9x_next_git_url="https://github.com/libretro/snes9x-next.git"
libretro_snes9x_next_build_makefile="Makefile.libretro"
libretro_snes9x_next_build_platform="$FORMAT_COMPILER_TARGET_ALT"
register_core "genesis_plus_gx"
register_core "genesis_plus_gx" -theos_ios
libretro_genesis_plus_gx_name="Genesis Plus GX"
libretro_genesis_plus_gx_git_url="https://github.com/libretro/Genesis-Plus-GX.git"
libretro_genesis_plus_gx_build_makefile="Makefile.libretro"
register_core "fb_alpha"
register_core "fb_alpha" -psp1
libretro_fb_alpha_name="Final Burn Alpha"
libretro_fb_alpha_git_url="https://github.com/libretro/fba-libretro.git"
libretro_fb_alpha_build_subdir="svn-current/trunk"
@ -33,23 +33,23 @@ libretro_vba_next_git_url="https://github.com/libretro/vba-next.git"
libretro_vba_next_build_makefile="Makefile.libretro"
libretro_vba_next_build_platform="$FORMAT_COMPILER_TARGET_ALT"
register_core "vbam"
register_core "vbam" -ngc -ps3 -psp1 -wii
libretro_vbam_name="VBA-M"
libretro_vbam_git_url="https://github.com/libretro/vbam-libretro.git"
libretro_vbam_build_subdir="src/libretro"
libretro_vbam_build_makefile="Makefile"
libretro_vbam_build_platform="$FORMAT_COMPILER_TARGET_ALT"
register_core "handy"
register_core "handy" -ngc -wii
libretro_handy_name="Handy"
libretro_handy_git_url="https://github.com/libretro/libretro-handy.git"
register_core "cap32"
register_core "cap32" -ngc -ps3 -psp1 -qnx -wii
libretro_cap32_name="Caprice32"
libretro_cap32_git_url="https://github.com/libretro/libretro-cap32.git"
libretro_cap32_build_makefile="Makefile"
register_core "bnes"
register_core "bnes" -ios -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_bnes_name="bnes/higan"
libretro_bnes_git_url="https://github.com/libretro/bnes-libretro.git"
libretro_bnes_build_rule=none # NEED CUSTOM RULE
@ -66,7 +66,7 @@ libretro_gambatte_build_subdir="libgambatte"
libretro_gambatte_build_makefile="Makefile.libretro"
libretro_gambatte_build_platform="$FORMAT_COMPILER_TARGET_ALT"
register_core "meteor"
register_core "meteor" -ngc -ps3 -psp1 -qnx -wii
libretro_meteor_name="Meteor"
libretro_meteor_git_url="https://github.com/libretro/meteor-libretro.git"
libretro_meteor_build_subdir="libretro"
@ -80,11 +80,11 @@ libretro_prboom_name="PrBoom"
libretro_prboom_git_url="https://github.com/libretro/libretro-prboom.git"
libretro_prboom_build_platform="$FORMAT_COMPILER_TARGET_ALT"
register_core "stella"
register_core "stella" -ngc -wii
libretro_stella_name="Stella"
libretro_stella_git_url="https://github.com/libretro/stella-libretro.git"
register_core "desmume"
register_core "desmume" -ngc -ps3 -psp1 -qnx -wii
libretro_desmume_name="DeSmuME"
libretro_desmume_git_url="https://github.com/libretro/desmume.git"
libretro_desmume_build_subdir="desmume"
@ -105,237 +105,237 @@ libretro_tyrquake_name="TyrQuake"
libretro_tyrquake_git_url="https://github.com/libretro/tyrquake.git"
libretro_tyrquake_build_makefile="Makefile"
register_core "pcsx_rearmed"
register_core "pcsx_rearmed" -theos_ios -ngc -ps3 -psp1 -wii
libretro_pcsx_rearmed_name="PCSX ReARMed"
libretro_pcsx_rearmed_git_url="https://github.com/libretro/pcsx_rearmed.git"
libretro_pcsx_rearmed_build_makefile="Makefile.libretro"
register_core "mednafen_gba"
register_core "mednafen_gba" -theos_ios
libretro_mednafen_gba_name="Mednafen/Beetle GBA"
libretro_mednafen_gba_git_url="https://github.com/libretro/beetle-gba-libretro.git"
register_core "mednafen_lynx"
register_core "mednafen_lynx" -theos_ios
libretro_mednafen_lynx_name="Mednafen/Beetle Lynx"
libretro_mednafen_lynx_git_url="https://github.com/libretro/beetle-lynx-libretro.git"
register_core "mednafen_ngp"
register_core "mednafen_ngp" -theos_ios -qnx
libretro_mednafen_ngp_name="Mednafen/Beetle NeoPop"
libretro_mednafen_ngp_git_url="https://github.com/libretro/beetle-ngp-libretro.git"
register_core "mednafen_pce_fast"
register_core "mednafen_pce_fast" -theos_ios
libretro_mednafen_pce_fast_name="Mednafen/Beetle PCE FAST"
libretro_mednafen_pce_fast_git_url="https://github.com/libretro/beetle-pce-fast-libretro.git"
register_core "mednafen_supergrafx"
register_core "mednafen_supergrafx" -theos_ios
libretro_mednafen_supergrafx_name="Mednafen/Beetle SuperGrafx"
libretro_mednafen_supergrafx_git_url="https://github.com/libretro/beetle-supergrafx-libretro.git"
register_core "mednafen_psx"
register_core "mednafen_psx" -theos_ios -ngc -psp1
libretro_mednafen_psx_name="Mednafen PSX"
libretro_mednafen_psx_git_url="https://github.com/libretro/mednafen-psx-libretro.git"
register_core "mednafen_pcfx"
register_core "mednafen_pcfx" -theos_ios
libretro_mednafen_pcfx_name="Mednafen/Beetle PC-FX"
libretro_mednafen_pcfx_git_url="https://github.com/libretro/beetle-pcfx-libretro.git"
register_core "mednafen_snes"
register_core "mednafen_snes" -theos_ios
libretro_mednafen_snes_name="Mednafen/Beetle bsnes"
libretro_mednafen_snes_git_url="https://github.com/libretro/beetle-bsnes-libretro.git"
register_core "mednafen_vb"
register_core "mednafen_vb" -theos_ios
libretro_mednafen_vb_name="Mednafen/Beetle VB"
libretro_mednafen_vb_git_url="https://github.com/libretro/beetle-vb-libretro.git"
register_core "mednafen_wswan"
register_core "mednafen_wswan" -theos_ios -psp1
libretro_mednafen_wswan_name="Mednafen/Beetle WonderSwan"
libretro_mednafen_wswan_git_url="https://github.com/libretro/beetle-wswan-libretro.git"
register_core "scummvm"
register_core "scummvm" -theos_ios -ngc -ps3 -psp1 -wii
libretro_scummvm_name="ScummVM"
libretro_scummvm_git_url="https://github.com/libretro/scummvm.git"
libretro_scummvm_build_subdir="backends/platform/libretro/build"
register_core "yabause"
register_core "yabause" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_yabause_name="Yabause"
libretro_yabause_git_url="https://github.com/libretro/yabause.git"
libretro_yabause_build_subdir="libretro"
register_core "dosbox"
register_core "dosbox" -ngc -ps3 -psp1 -wii
libretro_dosbox_name="DOSBox"
libretro_dosbox_git_url="https://github.com/libretro/dosbox-libretro.git"
libretro_dosbox_makefile="Makefile.libretro"
register_core "virtualjaguar"
register_core "virtualjaguar" -ngc -ps3 -psp1 -wii
libretro_virtualjaguar_name="Virtual Jaguar"
libretro_virtualjaguar_git_url="https://github.com/libretro/virtualjaguar-libretro.git"
libretro_virtualjaguar_makefile="Makefile"
register_core "mame078"
register_core "mame078" -theos_ios -ngc -psp1 -wii
libretro_mame078_name="MAME 2003 (0.78)"
libretro_mame078_git_url="https://github.com/libretro/mame2003-libretro.git"
libretro_mame078_makefile="Makefile"
register_core "mame139"
register_core "mame139" none
libretro_mame139_name="MAME 2010 (0.139)"
libretro_mame139_git_url="https://github.com/libretro/mame2010-libretro.git"
libretro_mame139_build_rule=none # NEED A BUILD RULE
register_core "mame"
register_core "mame" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_mame_name="MAME (git)"
libretro_mame_git_url="https://github.com/libretro/mame.git"
libretro_mame_build_rule=none # NEED CUSTOM RULE
register_core "ffmpeg"
register_core "ffmpeg" -ios -theos_ios -osx -ngc -ps3 -psp1 -qnx -wii
libretro_ffmpeg_name="FFmpeg"
libretro_ffmpeg_git_url="https://github.com/libretro/FFmpeg.git"
libretro_ffmpeg_build_subdir="libretro"
libretro_ffmpeg_build_opengl="optional"
register_core "bsnes_cplusplus98"
register_core "bsnes_cplusplus98" -theos_ios -ngc -ps3 -psp1 -wii
libretro_bsnes_cplusplus98_name="bsnes C++98 (v0.85)"
libretro_bsnes_cplusplus98_git_url="https://github.com/libretro/bsnes-libretro-cplusplus98.git"
libretro_bsnes_cplusplus98_build_rule=none # NEED CUSTOM RULE
register_core "bsnes_mercury"
register_core "bsnes_mercury" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_bsnes_mercury_name="bsnes-mercury"
libretro_bsnes_mercury_git_url="https://github.com/libretro/bsnes-mercury.git"
libretro_bsnes_mercury_build_rule=none # NEED CUSTOM RULE
register_core "picodrive"
register_core "picodrive" -theos_ios -ngc -ps3 -wii
libretro_picodrive_name="Picodrive"
libretro_picodrive_git_url="https://github.com/libretro/picodrive.git"
libretro_picodrive_git_submodules="yes"
libretro_picodrive_build_makefile="Makefile.libretro"
register_core "tgbdual"
register_core "tgbdual" -ngc -ps3 -wii
libretro_tgbdual_name="TGB Dual"
libretro_tgbdual_git_url="https://github.com/libretro/tgbdual-libretro.git"
register_core "mupen64plus"
register_core "mupen64plus" -theos_ios -ngc -ps3 -psp1 -wii
libretro_mupen64plus_name="Mupen64Plus"
libretro_mupen64plus_git_url="https://github.com/libretro/mupen64plus-libretro.git"
libretro_mupen64plus_build_rule=none # NEED CUSTOM RULE
register_core "dinothawr"
register_core "dinothawr" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_dinothawr_name="Dinothawr"
libretro_dinothawr_git_url="https://github.com/libretro/Dinothawr.git"
libretro_dinothawr_build_platform="$FORMAT_COMPILER_TARGET_ALT"
register_core "uae"
register_core "uae" none
libretro_uae_name="UAE"
libretro_uae_git_url="https://github.com/libretro/libretro-uae.git"
libretro_uae_build_rule=none # NEED A BUILD RULE
register_core "3dengine"
register_core "3dengine" -ngc -ps3 -psp1 -wii
libretro_3dengine_name="3DEngine"
libretro_3dengine_git_url="https://github.com/libretro/libretro-3dengine.git"
libretro_3dengine_build_opengl=yes
register_core "remotejoy"
register_core "remotejoy" -ngc -ps3 -psp1 -qnx -wii
libretro_remotejoy_name="RemoteJoy"
libretro_remotejoy_git_url="https://github.com/libretro/libretro-remotejoy.git"
libretro_remotejoy_build_makefile="Makefile"
register_core "bluemsx"
register_core "bluemsx" -ps3
libretro_bluemsx_name="blueMSX"
libretro_bluemsx_git_url="https://github.com/libretro/blueMSX-libretro.git"
libretro_bluemsx_build_makefile="Makefile.libretro"
register_core "fmsx"
register_core "fmsx" -ps3
libretro_fmsx_name="fMSX"
libretro_fmsx_git_url="https://github.com/libretro/fmsx-libretro.git"
register_module core "2048"
register_core "2048" -ngc -ps3 -wii
libretro_2048_git_url="https://github.com/libretro/libretro-2048.git"
libretro_2048_build_makefile="Makefile.libretro"
register_module core "vecx"
register_core "vecx" -ngc -ps3 -wii
libretro_vecx_git_url="https://github.com/libretro/libretro-vecx.git"
libretro_vecx_build_makefile="Makefile.libretro"
register_core "ppsspp"
register_core "ppsspp" -ios -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_ppsspp_name="PPSSPP"
libretro_ppsspp_git_url="https://github.com/libretro/ppsspp.git"
libretro_ppsspp_git_submodules="yes"
libretro_ppsspp_build_subdir="libretro"
libretro_ppsspp_build_opengl="yes"
register_core "prosystem"
register_core "prosystem" -ngc -ps3 -wii
libretro_prosystem_name="ProSystem"
libretro_prosystem_git_url="https://github.com/libretro/prosystem-libretro.git"
register_core "o2em"
register_core "o2em" -ngc -ps3 -wii
libretro_o2em_name="O2EM"
libretro_o2em_git_url="https://github.com/libretro/libretro-o2em.git"
register_core "4do"
register_core "4do" -ngc -ps3 -psp1 -wii
libretro_4do_name="4DO"
libretro_4do_git_url="https://github.com/libretro/4do-libretro.git"
register_core "catsfc"
register_core "catsfc" -ngc -ps3 -psp1 -wii
libretro_catsfc_name="CATSFC"
libretro_catsfc_git_url="https://github.com/libretro/CATSFC-libretro.git"
register_core "stonesoup"
register_core "stonesoup" -ngc -ps3 -psp1 -qnx -wii
libretro_stonesoup_name="Dungeon Crawl Stone Soup"
libretro_stonesoup_git_url="https://github.com/libretro/crawl-ref.git"
libretro_stonesoup_git_submodules="clone"
libretro_stonesoup_build_subdir="crawl-ref"
libretro_stonesoup_build_makefile="Makefile.libretro"
register_core "hatari"
register_core "hatari" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_hatari_name="Hatari"
libretro_hatari_git_url="https://github.com/libretro/hatari.git"
libretro_hatari_build_makefile="Makefile.libretro"
register_core "tempgba"
register_core "tempgba" none
libretro_tempgba_name="TempGBA"
libretro_tempgba_git_url="https://github.com/libretro/TempGBA-libretro.git"
libretro_tempgba_build_rule=none # NEED A BUILD RULE
register_core "gpsp"
register_core "gpsp" -ngc -ps3 -psp1 -wii
libretro_gpsp_name="gpSP"
libretro_gpsp_git_url="https://github.com/libretro/gpsp.git"
register_core "emux"
register_core "emux" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_emux_name="Emux"
libretro_emux_git_url="https://github.com/libretro/emux.git"
libretro_emux_build_rule=none # NEED CUSTOM RULE
register_core "fuse"
register_core "fuse" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_fuse_name="Fuse"
libretro_fuse_git_url="https://github.com/libretro/fuse-libretro.git"
libretro_fuse_build_makefile="Makefile.libretro"
libretro_fuse_build_platform="$FORMAT_COMPILER_TARGET_ALT"
register_core "gw"
register_core "gw" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_gw_name="Game & Watch"
libretro_gw_git_url="https://github.com/libretro/gw-libretro.git"
libretro_gw_git_submodules="yes"
libretro_gw_build_makefile="Makefile.libretro"
register_core "lutro"
register_core "lutro" -theos_ios -ngc -ps3 -psp1 -qnx -wii
libretro_lutro_name="Lutro"
libretro_lutro_git_url="https://github.com/libretro/libretro-lutro.git"
libretro_lutro_build_makefile="Makefile"
register_core "lutro_platformer"
register_core "lutro_platformer" none
libretro_lutro_platformer_name="Lutro-Platformer"
libretro_lutro_platformer_git_url="https://github.com/libretro/lutro-platformer.git"
register_core "lutro_tetris"
register_core "lutro_tetris" none
libretro_lutro_tetris_name="Lutro-tetris"
libretro_lutro_tetris_git_url="https://github.com/libretro/lutro-tetris.git"
register_core "lutro_snake"
register_core "lutro_snake" none
libretro_lutro_snake_name="Lutro-snake"
libretro_lutro_snake_git_url="https://github.com/libretro/lutro-snake.git"
register_core "lutro_iyfct"
register_core "lutro_iyfct" none
libretro_lutro_iyfct_name="Lutro-iyfct"
libretro_lutro_iyfct_git_url="https://github.com/libretro/lutro-iyfct.git"
register_core "lutro_game_of_life"
register_core "lutro_game_of_life" none
libretro_lutro_game_of_life_name="Lutro-Game-of-Life"
libretro_lutro_game_of_life_git_url="https://github.com/libretro/lutro-game-of-life.git"

View File

@ -1,17 +1,35 @@
# vim: set ts=3 sw=3 noet ft=sh : bash
register_module() {
case "$1" in
mod_type="$1"
mod_name="$2"
shift 2
case "$mod_type" in
core|devkit|player)
if [ -n "$2" ]; then
eval "libretro_${1}s=\"\$libretro_${1}s $2::\""
if [ -n "$mod_name" ]; then
build_plats=""
skip_plats=""
while [ -n "$1" ]; do
if [[ "$1" = -* ]]; then
skip_plats="$skip_plats,$1"
else
build_plats="$build_plats,$1"
fi
shift
done
build_plats="${build_plats#,}"
skip_plats="${skip_plats#,}"
eval "libretro_${mod_type}s=\"\$libretro_${mod_type}s $mod_name:${build_plats:-any}:$skip_plats\""
else
echo "register_module:Trying to register a $1 without a name"
echo "register_module:Trying to register a $mod_type without a name"
exit 1
fi
;;
*)
echo "register_module:Unknown module type \"$1\""
echo "register_module:Unknown module type \"$mod_type\""
exit 1
;;
esac
@ -20,3 +38,29 @@ register_module() {
register_core() {
register_module core $@
}
can_build_module() {
if [[ "$1" != *:*:* ]]; then
# Not in <name>:<build>:<skip> format, assume developer mode
return 0
fi
build_plats="${1#*:}"
build_plats="${build_plats%:*}"
skip_plats="${1##*:}"
if [ "$build_plats" != "any" ]; then
# Module is exclusive to certain platforms
if [[ "$platform" != *${build_plats}* ]]; then
# And this isn't one of them.
return 1
fi
fi
if [[ "$skip_plats" = *${platform}* ]]; then
# Module is disabled on this particular platform
return 1
fi
return 0
}