mirror of
https://github.com/libretro/libretro-super
synced 2025-02-05 00:40:11 +00:00
Merge branch 'master' of github.com:libretro/libretro-super
This commit is contained in:
commit
fb1655f1d0
6
.gitignore
vendored
6
.gitignore
vendored
@ -63,6 +63,12 @@
|
||||
/libretro-fuse/
|
||||
/libretro-lutro/
|
||||
/libretro-gw/
|
||||
/libretro-cap32/
|
||||
/libretro-lutro_game_of_life/
|
||||
/libretro-lutro_iyfct/
|
||||
/libretro-lutro_platformer/
|
||||
/libretro-lutro_snake/
|
||||
/libretro-lutro_tetris/
|
||||
/libretro-devkit/
|
||||
/retroarch/
|
||||
/build-summary.log
|
||||
|
12
dist/info/mgba_libretro.info
vendored
Normal file
12
dist/info/mgba_libretro.info
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
display_name = "Game Boy Advance (mGBA)"
|
||||
authors = "Jeffrey Pfau"
|
||||
supported_extensions = "gba|bin"
|
||||
corename = "mGBA"
|
||||
manufacturer = "Nintendo"
|
||||
categories = "Emulator"
|
||||
systemname = "Game Boy Advance"
|
||||
database = "Nintendo - Game Boy Advance|Nintendo - Game Boy Advance (e-Cards)"
|
||||
license = "MPLv2.0"
|
||||
permissions = ""
|
||||
display_version = "Git"
|
||||
supports_no_game = "false"
|
@ -3,6 +3,7 @@
|
||||
. "$BASE_DIR/script-modules/util.sh"
|
||||
. "$BASE_DIR/script-modules/fetch-rules.sh"
|
||||
. "$BASE_DIR/script-modules/cpu.sh"
|
||||
. "$BASE_DIR/script-modules/modules.sh"
|
||||
|
||||
. "$BASE_DIR/rules.d/core-rules.sh"
|
||||
|
||||
@ -40,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() {
|
||||
@ -52,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
|
||||
|
||||
@ -113,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 ...'
|
||||
@ -136,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
|
||||
}
|
||||
|
||||
@ -154,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\""
|
||||
|
||||
@ -309,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..."
|
||||
@ -377,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
|
||||
@ -420,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
|
||||
|
||||
@ -430,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
|
||||
}
|
||||
|
||||
@ -471,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
|
||||
|
||||
@ -517,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
|
||||
@ -547,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
|
||||
@ -585,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
|
||||
@ -648,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
|
||||
|
@ -14,75 +14,6 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
set -e
|
||||
# The theos build rules have all been moved to libretro-build.sh
|
||||
|
||||
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
|
||||
fi
|
||||
platform=theos_ios ${BASE_DIR}/libretro-build.sh $@
|
||||
|
@ -88,6 +88,91 @@ echo "STRIP = $STRIP"
|
||||
|
||||
. "$BASE_DIR/libretro-build-common.sh"
|
||||
|
||||
build_default_cores() {
|
||||
|
||||
# These build everywhere libretro-build.sh works
|
||||
# (They also use rules builds, which will help later)
|
||||
|
||||
libretro_build_core 2048
|
||||
libretro_build_core 3dengine
|
||||
libretro_build_core 4do
|
||||
libretro_build_core bluemsx
|
||||
libretro_build_core catsfc
|
||||
libretro_build_core desmume
|
||||
libretro_build_core dosbox
|
||||
libretro_build_core fb_alpha
|
||||
libretro_build_core fceumm
|
||||
libretro_build_core fmsx
|
||||
libretro_build_core gambatte
|
||||
libretro_build_core gpsp
|
||||
libretro_build_core handy
|
||||
libretro_build_core meteor
|
||||
libretro_build_core nestopia
|
||||
libretro_build_core nxengine
|
||||
libretro_build_core o2em
|
||||
libretro_build_core prboom
|
||||
libretro_build_core prosystem
|
||||
libretro_build_core quicknes
|
||||
libretro_build_core snes9x
|
||||
libretro_build_core snes9x_next
|
||||
libretro_build_core stella
|
||||
libretro_build_core tgbdual
|
||||
libretro_build_core tyrquake
|
||||
libretro_build_core vba_next
|
||||
libretro_build_core vbam
|
||||
libretro_build_core vecx
|
||||
libretro_build_core virtualjaguar
|
||||
|
||||
# Nothing past here supports theos
|
||||
[ "$platform" = "theos_ios" ] && return
|
||||
|
||||
libretro_build_core dinothawr
|
||||
libretro_build_core fuse
|
||||
libretro_build_core genesis_plus_gx
|
||||
libretro_build_core gw
|
||||
libretro_build_core hatari
|
||||
libretro_build_core lutro
|
||||
libretro_build_core mame078
|
||||
libretro_build_core mednafen_gba
|
||||
libretro_build_core mednafen_lynx
|
||||
libretro_build_core mednafen_ngp
|
||||
libretro_build_core mednafen_pce_fast
|
||||
libretro_build_core mednafen_pcfx
|
||||
libretro_build_core mednafen_psx
|
||||
libretro_build_core mednafen_snes
|
||||
libretro_build_core mednafen_supergrafx
|
||||
libretro_build_core mednafen_vb
|
||||
libretro_build_core mednafen_wswan
|
||||
libretro_build_core picodrive
|
||||
libretro_build_core scummvm
|
||||
libretro_build_core stonesoup
|
||||
libretro_build_core yabause
|
||||
|
||||
build_libretro_bsnes
|
||||
build_libretro_bsnes_cplusplus98
|
||||
build_libretro_bsnes_mercury
|
||||
build_libretro_emux
|
||||
build_libretro_mame_prerule
|
||||
build_libretro_mupen64
|
||||
|
||||
if [ $platform != "win" ]; then
|
||||
libretro_build_core pcsx_rearmed
|
||||
fi
|
||||
if [ "$platform" = "ios" ]; then
|
||||
build_libretro_pcsx_rearmed_interpreter # for non-jailbreak
|
||||
fi
|
||||
|
||||
if [ $platform != "ios" ]; then
|
||||
libretro_build_core ffmpeg
|
||||
libretro_build_core ppsspp
|
||||
|
||||
build_libretro_bnes
|
||||
fi
|
||||
|
||||
build_libretro_test
|
||||
}
|
||||
|
||||
|
||||
mkdir -p "$RARCH_DIST_DIR"
|
||||
|
||||
if [ -n "$SKIP_UNCHANGED" ]; then
|
||||
@ -111,77 +196,6 @@ if [ -n "$1" ]; then
|
||||
shift
|
||||
done
|
||||
else
|
||||
libretro_build_core 2048
|
||||
libretro_build_core 4do
|
||||
libretro_build_core bluemsx
|
||||
libretro_build_core fmsx
|
||||
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_psx
|
||||
libretro_build_core beetle_snes
|
||||
libretro_build_core catsfc
|
||||
libretro_build_core snes9x
|
||||
libretro_build_core snes9x_next
|
||||
libretro_build_core genesis_plus_gx
|
||||
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
|
||||
libretro_build_core mame078
|
||||
build_libretro_mame_prerule
|
||||
libretro_build_core dosbox
|
||||
libretro_build_core scummvm
|
||||
libretro_build_core picodrive
|
||||
libretro_build_core handy
|
||||
libretro_build_core desmume
|
||||
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
|
||||
libretro_build_core vecx
|
||||
libretro_build_core tgbdual
|
||||
libretro_build_core prosystem
|
||||
libretro_build_core dinothawr
|
||||
libretro_build_core virtualjaguar
|
||||
build_libretro_mupen64
|
||||
libretro_build_core 3dengine
|
||||
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
|
||||
libretro_build_core o2em
|
||||
libretro_build_core hatari
|
||||
libretro_build_core gpsp
|
||||
build_libretro_emux
|
||||
libretro_build_core fuse
|
||||
libretro_build_core stonesoup
|
||||
libretro_build_core nxengine
|
||||
libretro_build_core gw
|
||||
libretro_build_core lutro
|
||||
|
||||
build_libretro_test
|
||||
build_default_cores
|
||||
fi
|
||||
build_summary
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@
|
||||
|
||||
####environment configuration:
|
||||
echo "BUILDBOT JOB: Setting up Environment for $1"
|
||||
echo
|
||||
echo
|
||||
|
||||
ORIGPATH=$PATH
|
||||
WORK=$PWD
|
||||
@ -22,23 +22,21 @@ 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
|
||||
if [ "${KEY}" = "PATH" ]; then
|
||||
export PATH=${VALUE}:${ORIGPATH}
|
||||
echo New PATH: $PATH
|
||||
|
||||
else
|
||||
export ${KEY}=${VALUE}
|
||||
echo $KEY: $VALUE
|
||||
fi
|
||||
done < $1.conf
|
||||
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"
|
||||
@ -54,8 +52,7 @@ read_link()
|
||||
TARGET_FILE="$1"
|
||||
cd $(dirname "$TARGET_FILE")
|
||||
TARGET_FILE=$(basename "$TARGET_FILE")
|
||||
while [ -L "$TARGET_FILE" ]
|
||||
do
|
||||
while [ -L "$TARGET_FILE" ]; do
|
||||
TARGET_FILE=$(readlink "$TARGET_FILE")
|
||||
cd $(dirname "$TARGET_FILE")
|
||||
TARGET_FILE=$(basename "$TARGET_FILE")
|
||||
@ -75,18 +72,16 @@ fi
|
||||
|
||||
mkdir -v -p "$RARCH_DIST_DIR"
|
||||
|
||||
if [ "${PLATFORM}" == "android" ];
|
||||
then
|
||||
|
||||
IFS=' ' read -ra ABIS <<< "$TARGET_ABIS"
|
||||
for a in "${ABIS[@]}"; do
|
||||
echo $a
|
||||
if [ -d $RARCH_DIST_DIR/${a} ]; then
|
||||
echo "Directory $RARCH_DIST_DIR/${a} already exists, skipping creation..."
|
||||
else
|
||||
mkdir $RARCH_DIST_DIR/${a}
|
||||
fi
|
||||
done
|
||||
if [ "${PLATFORM}" = "android" ]; then
|
||||
IFS=' ' read -ra ABIS <<< "$TARGET_ABIS"
|
||||
for a in "${ABIS[@]}"; do
|
||||
echo $a
|
||||
if [ -d $RARCH_DIST_DIR/${a} ]; then
|
||||
echo "Directory $RARCH_DIST_DIR/${a} already exists, skipping creation..."
|
||||
else
|
||||
mkdir $RARCH_DIST_DIR/${a}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "$HOST_CC" ]; then
|
||||
@ -111,32 +106,32 @@ fi
|
||||
|
||||
|
||||
if [ -z "$CC" ]; then
|
||||
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
|
||||
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
|
||||
CC=cc
|
||||
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
|
||||
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
|
||||
CC=mingw32-gcc
|
||||
else
|
||||
else
|
||||
CC=gcc
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$CXX" ]; then
|
||||
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
|
||||
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
|
||||
CXX=c++
|
||||
CXX11="clang++ -std=c++11 -stdlib=libc++"
|
||||
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
|
||||
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
|
||||
CXX=mingw32-g++
|
||||
CXX11=mingw32-g++
|
||||
else
|
||||
else
|
||||
CXX=g++
|
||||
CXX11=g++
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${CC}" ] && [ "${CXX}" ]; then
|
||||
COMPILER="CC=${CC} CXX=${CXX}"
|
||||
COMPILER="CC=${CC} CXX=${CXX}"
|
||||
else
|
||||
COMPILER=""
|
||||
COMPILER=""
|
||||
fi
|
||||
|
||||
echo
|
||||
@ -153,7 +148,7 @@ RESET_FORMAT_COMPILER_TARGET=$FORMAT_COMPILER_TARGET
|
||||
RESET_FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET_ALT
|
||||
|
||||
check_opengl() {
|
||||
if [ "${BUILD_LIBRETRO_GL}" ]; then
|
||||
if [ "${BUILD_LIBRETRO_GL}" ]; then
|
||||
if [ "${ENABLE_GLES}" ]; then
|
||||
echo '=== OpenGL ES enabled ==='
|
||||
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-gles"
|
||||
@ -165,30 +160,26 @@ check_opengl() {
|
||||
fi
|
||||
else
|
||||
echo '=== OpenGL disabled in build ==='
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
reset_compiler_targets() {
|
||||
export FORMAT_COMPILER_TARGET=$RESET_FORMAT_COMPILER_TARGET
|
||||
export FORMAT_COMPILER_TARGET_ALT=$RESET_FORMAT_COMPILER_TARGET_ALT
|
||||
export FORMAT_COMPILER_TARGET=$RESET_FORMAT_COMPILER_TARGET
|
||||
export FORMAT_COMPILER_TARGET_ALT=$RESET_FORMAT_COMPILER_TARGET_ALT
|
||||
}
|
||||
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
}
|
||||
|
||||
build_libretro_generic_makefile() {
|
||||
|
||||
|
||||
NAME=$1
|
||||
DIR=$2
|
||||
SUBDIR=$3
|
||||
@ -199,21 +190,16 @@ build_libretro_generic_makefile() {
|
||||
cd $DIR
|
||||
cd $SUBDIR
|
||||
|
||||
if [ "${NAME}" == "mame078" ];
|
||||
then
|
||||
OLDJ=$JOBS
|
||||
if [ "${NAME}" = "mame078" ]; then
|
||||
OLDJ=$JOBS
|
||||
JOBS=1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if [ -z "${NOCLEAN}" ];
|
||||
then
|
||||
echo "cleaning up..."
|
||||
if [ -z "${NOCLEAN}" ]; then
|
||||
echo "cleaning up..."
|
||||
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
||||
@ -221,23 +207,20 @@ build_libretro_generic_makefile() {
|
||||
fi
|
||||
|
||||
echo "compiling..."
|
||||
if [ -z "${ARGS}" ]
|
||||
then
|
||||
if [ -z "${ARGS}" ]; then
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}
|
||||
else
|
||||
if [ "${NAME}" == "mame2010" ];
|
||||
then
|
||||
if [ "${NAME}" = "mame2010" ]; then
|
||||
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}" buildtools
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}" buildtools
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} buildtools
|
||||
fi
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}
|
||||
fi
|
||||
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="$1 build successful ($jobid)"
|
||||
cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}.${FORMAT_EXT}
|
||||
else
|
||||
@ -246,11 +229,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
|
||||
@ -263,16 +244,11 @@ build_libretro_generic_theos() {
|
||||
cd $DIR
|
||||
cd $SUBDIR
|
||||
|
||||
ln -s $THEOS theos
|
||||
|
||||
|
||||
if [ -z "${NOCLEAN}" ];
|
||||
then
|
||||
echo "cleaning up..."
|
||||
if [ -z "${NOCLEAN}" ]; then
|
||||
echo "cleaning up..."
|
||||
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} clean
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
||||
@ -280,8 +256,7 @@ build_libretro_generic_theos() {
|
||||
fi
|
||||
|
||||
echo "compiling..."
|
||||
if [ -z "${ARGS}" ]
|
||||
then
|
||||
if [ -z "${ARGS}" ]; then
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}
|
||||
else
|
||||
@ -289,8 +264,7 @@ build_libretro_generic_theos() {
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}
|
||||
fi
|
||||
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="$1 build successful ($jobid)"
|
||||
cp -v objs/obj/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
||||
else
|
||||
@ -298,11 +272,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,30 +287,26 @@ build_libretro_generic_jni() {
|
||||
cd ${DIR}/${SUBDIR}
|
||||
|
||||
for a in "${ABIS[@]}"; do
|
||||
if [ -z "${NOCLEAN}" ];
|
||||
then
|
||||
if [ -z "${NOCLEAN}" ]; then
|
||||
echo "cleaning up..."
|
||||
echo "cleanup command: ${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean"
|
||||
${NDK} -j${JOBS} ${ARGS} APP_ABI=${a} clean
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid $a $1 cleanup success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $a $1 cleanup failure!
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "compiling for ${a}..."
|
||||
if [ -z "${ARGS}" ]
|
||||
then
|
||||
echo "compiling for ${a}..."
|
||||
if [ -z "${ARGS}" ]; then
|
||||
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a}"
|
||||
${NDK} -j${JOBS} APP_ABI=${a}
|
||||
else
|
||||
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a} ${ARGS} "
|
||||
${NDK} -j${JOBS} APP_ABI=${a} ${ARGS}
|
||||
fi
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="$1-$a build successful ($jobid)"
|
||||
echo BUILDBOT JOB: $MESSAGE
|
||||
buildbot_log "$MESSAGE"
|
||||
@ -349,13 +317,9 @@ build_libretro_generic_jni() {
|
||||
buildbot_log "$MESSAGE"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
build_libretro_bsnes_jni() {
|
||||
|
||||
echo PARAMETERS: DIR $2, SUBDIR: $3
|
||||
|
||||
NAME=$1
|
||||
@ -370,30 +334,26 @@ build_libretro_bsnes_jni() {
|
||||
cd ${DIR}/${SUBDIR}
|
||||
|
||||
for a in "${ABIS[@]}"; do
|
||||
if [ -z "${NOCLEAN}" ];
|
||||
then
|
||||
echo "cleaning up..."
|
||||
echo "cleanup command: ${NDK} -j${JOBS} APP_ABI=${a} clean"
|
||||
if [ -z "${NOCLEAN}" ]; then
|
||||
echo "cleaning up..."
|
||||
echo "cleanup command: ${NDK} -j${JOBS} APP_ABI=${a} clean"
|
||||
${NDK} -j${JOBS} APP_ABI=${a} clean
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
||||
fi
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "compiling for ${a}..."
|
||||
if [ -z "${ARGS}" ]
|
||||
then
|
||||
echo "compiling for ${a}..."
|
||||
if [ -z "${ARGS}" ]; then
|
||||
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a}"
|
||||
${NDK} -j${JOBS} APP_ABI=${a}
|
||||
else
|
||||
echo "build command: ${NDK} -j${JOBS} APP_ABI=${a}"
|
||||
${NDK} -j${JOBS} APP_ABI=${a}
|
||||
fi
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="$1 build successful ($jobid)"
|
||||
cp -v ../libs/${a}/libretro_${CORENAME}_${PROFILE}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${NAME}_${PROFILE}_libretro${FORMAT}.${FORMAT_EXT}
|
||||
else
|
||||
@ -401,14 +361,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
|
||||
@ -416,19 +374,16 @@ build_libretro_generic_gl_makefile() {
|
||||
PLATFORM=$5
|
||||
ARGS=$6
|
||||
|
||||
|
||||
check_opengl
|
||||
|
||||
cd $DIR
|
||||
cd $SUBDIR
|
||||
|
||||
if [ -z "${NOCLEAN}" ];
|
||||
then
|
||||
echo "cleaning up..."
|
||||
if [ -z "${NOCLEAN}" ]; then
|
||||
echo "cleaning up..."
|
||||
echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} clean
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
||||
@ -436,8 +391,7 @@ build_libretro_generic_gl_makefile() {
|
||||
fi
|
||||
|
||||
echo "compiling..."
|
||||
if [ -z "${ARGS}" ];
|
||||
then
|
||||
if [ -z "${ARGS}" ]; then
|
||||
echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}"
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS}
|
||||
else
|
||||
@ -445,8 +399,7 @@ build_libretro_generic_gl_makefile() {
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}
|
||||
fi
|
||||
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="$1 build successful ($jobid)"
|
||||
cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}
|
||||
else
|
||||
@ -456,14 +409,11 @@ build_libretro_generic_gl_makefile() {
|
||||
buildbot_log "$MESSAGE"
|
||||
|
||||
reset_compiler_targets
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
build_libretro_bsnes() {
|
||||
|
||||
|
||||
NAME=$1
|
||||
DIR=$2
|
||||
PROFILE=$3
|
||||
@ -471,26 +421,19 @@ build_libretro_bsnes() {
|
||||
PLATFORM=$5
|
||||
BSNESCOMPILER=$6
|
||||
|
||||
|
||||
cd $DIR
|
||||
|
||||
|
||||
if [ -z "${NOCLEAN}" ];
|
||||
then
|
||||
echo "cleaning up..."
|
||||
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 [ "${PROFILE}" == "cpp98" -o "${PROFILE}" == "bnes" ];
|
||||
then
|
||||
${MAKE} clean
|
||||
fi
|
||||
|
||||
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $1 cleanup failure!
|
||||
@ -499,12 +442,9 @@ build_libretro_bsnes() {
|
||||
|
||||
echo "compiling..."
|
||||
|
||||
|
||||
if [ "${PROFILE}" == "cpp98" ];
|
||||
then
|
||||
if [ "${PROFILE}" = "cpp98" ]; then
|
||||
${MAKE} platform="${PLATFORM}" ${COMPILER} "-j${JOBS}"
|
||||
elif [ "${PROFILE}" == "bnes" ];
|
||||
then
|
||||
elif [ "${PROFILE}" = "bnes" ]; then
|
||||
echo "build command: ${MAKE} -f Makefile ${COMPILER} "-j${JOBS}" compiler=${BSNESCOMPILER}" platform=${FORMAT_COMPILER_TARGET}
|
||||
${MAKE} -f Makefile ${COMPILER} "-j${JOBS}" compiler="${BSNESCOMPILER}" platform=${FORMAT_COMPILER_TARGET}
|
||||
else
|
||||
@ -512,15 +452,12 @@ build_libretro_bsnes() {
|
||||
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} compiler=${BSNESCOMPILER} ui='target-libretro' profile=${PROFILE} -j${JOBS}
|
||||
fi
|
||||
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
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}"
|
||||
elif [ "${PROFILE}" == "bnes" ];
|
||||
then
|
||||
cp -fv "libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
|
||||
if [ "${PROFILE}" = "cpp98" ]; then
|
||||
cp -fv "out/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT}"
|
||||
elif [ "${PROFILE}" = "bnes" ]; then
|
||||
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
|
||||
@ -529,7 +466,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
|
||||
@ -537,8 +473,7 @@ build_libretro_bsnes() {
|
||||
#sleep 10
|
||||
export jobid=$1
|
||||
|
||||
if [ -z "$2" ]
|
||||
then
|
||||
if [ -z "$2" ]; then
|
||||
echo no argument supplied
|
||||
else
|
||||
echo processing $2 only
|
||||
@ -549,30 +484,24 @@ fi
|
||||
echo
|
||||
echo
|
||||
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 " "`
|
||||
COMMAND=`echo $line | cut -f 6 -d " "`
|
||||
MAKEFILE=`echo $line | cut -f 7 -d " "`
|
||||
SUBDIR=`echo $line | cut -f 8 -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=" "`
|
||||
COMMAND=`echo $line | cut --fields=6 --delimiter=" "`
|
||||
MAKEFILE=`echo $line | cut --fields=7 --delimiter=" "`
|
||||
SUBDIR=`echo $line | cut --fields=8 --delimiter=" "`
|
||||
|
||||
|
||||
if [ ! -z "$TASK" ]
|
||||
then
|
||||
if [ "${TASK}" != "${NAME}" ]
|
||||
then
|
||||
if [ ! -z "$TASK" ]; then
|
||||
if [ "${TASK}" != "${NAME}" ]; then
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ "${ENABLED}" == "YES" ];
|
||||
then
|
||||
if [ "${ENABLED}" = "YES" ]; then
|
||||
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
||||
echo
|
||||
echo
|
||||
echo URL: $URL
|
||||
echo REPO TYPE: $TYPE
|
||||
echo ENABLED: $ENABLED
|
||||
@ -582,117 +511,98 @@ while read line; do
|
||||
echo SUBDIR: $SUBDIR
|
||||
DIR=$3
|
||||
|
||||
|
||||
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
|
||||
TEMP=`echo $line | cut -f 10 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
TEMP=""
|
||||
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
|
||||
if [ -n ${TEMP} ];
|
||||
then
|
||||
TEMP=`echo $line | cut -f 11 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
TEMP=""
|
||||
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
|
||||
if [ -n ${TEMP} ];
|
||||
then
|
||||
TEMP=`echo $line | cut -f 12 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
TEMP=""
|
||||
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
|
||||
if [ -n ${TEMP} ];
|
||||
then
|
||||
TEMP=`echo $line | cut -f 13 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
TEMP=""
|
||||
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
|
||||
if [ -n ${TEMP} ];
|
||||
then
|
||||
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
|
||||
echo
|
||||
|
||||
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ];
|
||||
then
|
||||
echo building core...
|
||||
if [ "${COMMAND}" == "GENERIC" ]; then
|
||||
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
|
||||
elif [ "${COMMAND}" == "GENERIC_GL" ]; then
|
||||
build_libretro_generic_gl_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
|
||||
elif [ "${COMMAND}" == "GENERIC_ALT" ]; then
|
||||
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
||||
elif [ "${COMMAND}" == "GENERIC_JNI" ]; then
|
||||
build_libretro_generic_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
||||
elif [ "${COMMAND}" == "BSNES_JNI" ]; then
|
||||
build_libretro_bsnes_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
||||
elif [ "${COMMAND}" == "GENERIC_THEOS" ]; then
|
||||
build_libretro_generic_theos $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
||||
elif [ "${COMMAND}" == "BSNES" ]; then
|
||||
build_libretro_bsnes $NAME $DIR "${ARGS}" $MAKEFILE ${FORMAT_COMPILER_TARGET} ${CXX11}
|
||||
|
||||
fi
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $NAME already up-to-date...
|
||||
fi
|
||||
echo ARGS: $ARGS
|
||||
echo
|
||||
echo
|
||||
|
||||
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
|
||||
echo building core...
|
||||
if [ "${COMMAND}" = "GENERIC" ]; then
|
||||
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
|
||||
elif [ "${COMMAND}" = "GENERIC_GL" ]; then
|
||||
build_libretro_generic_gl_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
|
||||
elif [ "${COMMAND}" = "GENERIC_ALT" ]; then
|
||||
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
||||
elif [ "${COMMAND}" = "GENERIC_JNI" ]; then
|
||||
build_libretro_generic_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
||||
elif [ "${COMMAND}" = "BSNES_JNI" ]; then
|
||||
build_libretro_bsnes_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
||||
elif [ "${COMMAND}" = "GENERIC_THEOS" ]; then
|
||||
build_libretro_generic_theos $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}"
|
||||
elif [ "${COMMAND}" = "BSNES" ]; then
|
||||
build_libretro_bsnes $NAME $DIR "${ARGS}" $MAKEFILE ${FORMAT_COMPILER_TARGET} ${CXX11}
|
||||
fi
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid $NAME already up-to-date...
|
||||
fi
|
||||
echo
|
||||
fi
|
||||
|
||||
cd "${BASE_DIR}"
|
||||
PREVCORE=$NAME
|
||||
PREVBUILD=$BUILD
|
||||
|
||||
done < $1
|
||||
done < $1
|
||||
|
||||
echo
|
||||
cd $WORK
|
||||
BUILD=""
|
||||
|
||||
|
||||
if [ ! -z "$TASK" ]
|
||||
then
|
||||
if [ "${TASK}" != "retroarch" ]
|
||||
then
|
||||
exit
|
||||
if [ ! -z "$TASK" ]; then
|
||||
if [ "${TASK}" != "retroarch" ]; then
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${PLATFORM}" == "MINGW64" ] || [ "${PLATFORM}" == "MINGW32" ] && [ "${RA}" == "YES" ];
|
||||
then
|
||||
|
||||
if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] && [ "${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 [ ! -z "$TASK" ]
|
||||
then
|
||||
if [ "${TASK}" != "${NAME}" ]
|
||||
then
|
||||
if [ ! -z "$TASK" ]; then
|
||||
if [ "${TASK}" != "${NAME}" ]; then
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
if [ "${ENABLED}" == "YES" ];
|
||||
then
|
||||
fi
|
||||
if [ "${ENABLED}" = "YES" ]; then
|
||||
echo "BUILDBOT JOB: $jobid Processing $NAME"
|
||||
echo
|
||||
echo NAME: $NAME
|
||||
@ -704,39 +614,33 @@ 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
|
||||
TEMP=`echo $line | cut -f 10 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
TEMP=""
|
||||
TEMP=`echo $line | cut --fields=11 --delimiter=" "`
|
||||
if [ -n ${TEMP} ];
|
||||
then
|
||||
TEMP=`echo $line | cut -f 11 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
TEMP=""
|
||||
TEMP=`echo $line | cut --fields=12 --delimiter=" "`
|
||||
if [ -n ${TEMP} ];
|
||||
then
|
||||
TEMP=`echo $line | cut -f 12 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
TEMP=""
|
||||
TEMP=`echo $line | cut --fields=13 --delimiter=" "`
|
||||
if [ -n ${TEMP} ];
|
||||
then
|
||||
TEMP=`echo $line | cut -f 13 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
TEMP=""
|
||||
TEMP=`echo $line | cut --fields=14 --delimiter=" "`
|
||||
if [ -n ${TEMP} ];
|
||||
then
|
||||
TEMP=`echo $line | cut -f 14 -d " "`
|
||||
if [ -n ${TEMP} ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
|
||||
@ -746,11 +650,11 @@ then
|
||||
|
||||
fi
|
||||
|
||||
echo
|
||||
echo
|
||||
done < $1.ra
|
||||
if [ "${BUILD}" == "YES" -o "${FORCE}" == "YES" ];
|
||||
then
|
||||
echo
|
||||
echo
|
||||
done < $1.ra
|
||||
|
||||
if [ "${BUILD}" = "YES" -o "${FORCE}" = "YES" ]; then
|
||||
|
||||
cd $3
|
||||
echo "BUILDBOT JOB: $jobid Building"
|
||||
@ -760,8 +664,7 @@ then
|
||||
cd audio/audio_filters
|
||||
echo "audio filter build command: ${MAKE}"
|
||||
$MAKE
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid audio filter build success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid audio filter build failure!
|
||||
@ -774,8 +677,7 @@ then
|
||||
cd gfx/video_filters
|
||||
echo "audio filter build command: ${MAKE}"
|
||||
$MAKE
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid video filter build success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid video filter build failure!
|
||||
@ -788,8 +690,7 @@ then
|
||||
echo "cleanup command: $MAKE clean"
|
||||
$MAKE clean
|
||||
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid retroarch cleanup success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid retroarch cleanup failure!
|
||||
@ -799,8 +700,7 @@ then
|
||||
echo "configure command: $CONFIGURE"
|
||||
${CONFIGURE}
|
||||
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
echo BUILDBOT JOB: $jobid retroarch configure success!
|
||||
else
|
||||
echo BUILDBOT JOB: $jobid retroarch configure failure!
|
||||
@ -810,8 +710,7 @@ then
|
||||
echo "build command: $MAKE -j${JOBS}"
|
||||
$MAKE -j${JOBS}
|
||||
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
MESSAGE="retroarch build successful ($jobid)"
|
||||
echo $MESSAGE
|
||||
buildbot_log "$MESSAGE"
|
||||
@ -820,9 +719,7 @@ then
|
||||
echo $MESSAGE
|
||||
buildbot_log "$MESSAGE"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
PATH=$ORIGPATH
|
||||
|
@ -13,13 +13,10 @@ case "$platform" in
|
||||
##
|
||||
|
||||
ios)
|
||||
# NOTE: This config requires a Mac with an Xcode version new enough for
|
||||
# its xcrun program to support -show-sdk-path. That pretty much
|
||||
# limits us to Xcode 5 and above unless someone wants to implement
|
||||
# older Xcode version support using an alternate method. Any such
|
||||
# support could only be for jailbreakers as any libretro core that
|
||||
# could ever be added to the App Store would require a recent SDK
|
||||
# and Xcode version to build.
|
||||
# NOTE: This config requires a Mac with an Xcode installation. These
|
||||
# scripts will work at least as far as 10.5 that we're sure of, but
|
||||
# we build with clang targeting iOS >= 5. We'll accept patches for
|
||||
# older versions of iOS.
|
||||
|
||||
DIST_DIR="ios"
|
||||
FORMAT_EXT=dylib
|
||||
@ -34,13 +31,28 @@ case "$platform" in
|
||||
IOSVER_MINOR=${iosver#*.}
|
||||
IOSVER=${IOSVER_MAJOR}${IOSVER_MINOR}
|
||||
|
||||
# Apple requires this stuff
|
||||
# Tell system clang to build for iOS
|
||||
CC="clang -arch armv7 -miphoneos-version-min=5.0 -isysroot $IOSSDK"
|
||||
CXX="clang++ -arch armv7 -miphoneos-version-min=5.0 -isysroot $IOSSDK"
|
||||
CXX11="clang++ -std=c++11 -stdlib=libc++ -arch armv7 -miphoneos-version-min=5.0 -isysroot $IOSSDK"
|
||||
|
||||
;;
|
||||
|
||||
theos_ios)
|
||||
DIST_DIR="theos_ios"
|
||||
BUILD_PRODUCT_PREFIX="objs/obj"
|
||||
FORMAT_EXT=dylib
|
||||
IOS=1
|
||||
ARCH=armv7
|
||||
FORMAT=_ios
|
||||
FORMAT_COMPILER_TARGET=theos_ios
|
||||
FORMAT_COMPILER_TARGET_ALT=theos_ios
|
||||
|
||||
# Make sure that the cross bins you need are first in your path
|
||||
CXX11="clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0"
|
||||
|
||||
;;
|
||||
|
||||
##
|
||||
## Original libretro-config path
|
||||
##
|
||||
@ -59,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
|
||||
@ -81,39 +93,46 @@ 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*)
|
||||
FORMAT_EXT="a"
|
||||
FORMAT_COMPILER_TARGET="wii"
|
||||
DIST_DIR="wii"
|
||||
;;
|
||||
*ios|theos_ios*)
|
||||
*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"
|
||||
DIST_DIR="theos_ios"
|
||||
;;
|
||||
android)
|
||||
FORMAT_EXT="so"
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,8 @@
|
||||
gambatte libretro-gambatte https://github.com/libretro/gambatte-libretro.git PROJECT YES GENERIC Makefile.libretro libgambatte
|
||||
fceumm libretro-fceuumm https://github.com/libretro/libretro-fceumm.git PROJECT YES GENERIC Makefile.libretro .
|
||||
nxengine libretro-nxengine https://github.com/libretro/nxengine-libretro.git PROJECT YES GENERIC Makefile .
|
||||
fmsx libretro-fmsx https://github.com/libretro/fmsx-libretro.git PROJECT YES GENERIC Makefile .
|
||||
prboom libretro-prboom https://github.com/libretro/libretro-prboom.git PROJECT YES GENERIC Makefile .
|
||||
tempgba libretro-tempgba https://github.com/libretro/TempGBA-libretro.git PROJECT YES GENERIC Makefile .
|
||||
mednafen_pce_fast libretro-mednafen_pce_fast https://github.com/aliaspider/beetle-pce-fast-libretro.git psp_hw_render YES GENERIC Makefile .
|
||||
gambatte libretro-gambatte https://github.com/libretro/gambatte-libretro.git PROJECT NO GENERIC Makefile.libretro libgambatte
|
||||
fceumm libretro-fceuumm https://github.com/libretro/libretro-fceumm.git PROJECT NO GENERIC Makefile.libretro .
|
||||
nxengine libretro-nxengine https://github.com/libretro/nxengine-libretro.git PROJECT NO GENERIC Makefile .
|
||||
fmsx libretro-fmsx https://github.com/libretro/fmsx-libretro.git PROJECT NO GENERIC Makefile .
|
||||
prboom libretro-prboom https://github.com/libretro/libretro-prboom.git PROJECT NO GENERIC Makefile .
|
||||
tempgba libretro-tempgba https://github.com/libretro/TempGBA-libretro.git PROJECT NO GENERIC Makefile .
|
||||
mednafen_pce_fast libretro-mednafen_pce_fast https://github.com/aliaspider/beetle-pce-fast-libretro.git psp_hw_render NO GENERIC Makefile .
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
mame078 libretro-mame078 https://github.com/libretro/mame2003-libretro.git PROJECT YES GENERIC makefile .
|
||||
mame078 libretro-mame078 https://github.com/libretro/mame2003-libretro.git PROJECT YES GENERIC Makefile .
|
||||
scummvm libretro-scummvm https://github.com/libretro/scummvm.git PROJECT YES GENERIC Makefile backends/platform/libretro/build
|
||||
|
||||
|
@ -1,4 +1,21 @@
|
||||
gambatte libretro-gambatte https://github.com/libretro/gambatte-libretro.git PROJECT YES GENERIC_ALT Makefile.libretro libgambatte
|
||||
fceumm libretro-fceuumm https://github.com/libretro/libretro-fceumm.git PROJECT YES GENERIC Makefile.libretro .
|
||||
nxengine libretro-nxengine https://github.com/libretro/nxengine-libretro.git PROJECT YES GENERIC Makefile .
|
||||
|
||||
fb_alpha libretro-fba https://github.com/libretro/fba-libretro.git PROJECT YES GENERIC makefile.libretro svn-current/trunk
|
||||
fba_cores_cps1 libretro-fba https://github.com/libretro/fba-libretro.git PROJECT YES GENERIC makefile.libretro svn-current/trunk/fbacores/cps1
|
||||
fba_cores_cps2 libretro-fba https://github.com/libretro/fba-libretro.git PROJECT YES GENERIC makefile.libretro svn-current/trunk/fbacores/cps2
|
||||
fba_cores_neo libretro-fba https://github.com/libretro/fba-libretro.git PROJECT YES GENERIC makefile.libretro svn-current/trunk/fbacores/neogeo
|
||||
fceumm libretro-fceuumm https://github.com/libretro/libretro-fceumm.git PROJECT YES GENERIC Makefile.libretro .
|
||||
gambatte libretro-gambatte https://github.com/libretro/gambatte-libretro.git PROJECT YES GENERIC_ALT Makefile.libretro libgambatte
|
||||
genesis_plus_gx libretro-genesis_plus_gx https://github.com/libretro/Genesis-Plus-GX.git PROJECT YES GENERIC Makefile.libretro .
|
||||
mednafen_ngp libretro-mednafen_ngp https://github.com/libretro/beetle-ngp-libretro.git PROJECT YES GENERIC Makefile .
|
||||
mednafen_pce_fast libretro-mednafen_pce_fast https://github.com/libretro/beetle-pce-fast-libretro.git PROJECT YES GENERIC Makefile .
|
||||
mednafen_pcfx libretro-mednafen_pcfx https://github.com/libretro/beetle-pcfx-libretro.git PROJECT YES GENERIC Makefile .
|
||||
mednafen_supergrafx libretro-mednafen_supergrafx https://github.com/libretro/beetle-supergrafx-libretro.git PROJECT YES GENERIC Makefile .
|
||||
mednafen_vb libretro-mednafen_vb https://github.com/libretro/beetle-vb-libretro.git PROJECT YES GENERIC Makefile .
|
||||
mednafen_wswan libretro-mednafen_wswan https://github.com/libretro/beetle-wswan-libretro.git PROJECT YES GENERIC Makefile .
|
||||
nestopia libretro-nestopia https://github.com/libretro/nestopia.git PROJECT YES GENERIC Makefile libretro
|
||||
nxengine libretro-nxengine https://github.com/libretro/nxengine-libretro.git PROJECT YES GENERIC Makefile .
|
||||
prboom libretro-prboom https://github.com/libretro/libretro-prboom.git PROJECT YES GENERIC_ALT Makefile .
|
||||
quicknes libretro-quicknes https://github.com/libretro/QuickNES_Core.git PROJECT YES GENERIC Makefile libretro
|
||||
snes9x libretro-snes9x https://github.com/libretro/snes9x.git PROJECT YES GENERIC Makefile libretro
|
||||
snes9x_next libretro-snes9x_next https://github.com/libretro/snes9x-next.git PROJECT YES GENERIC_ALT Makefile.libretro .
|
||||
tyrquake libretro-tyrquake https://github.com/libretro/tyrquake.git PROJECT YES GENERIC Makefile .
|
||||
vba_next libretro-vba_next https://github.com/libretro/vba-next.git PROJECT YES GENERIC Makefile.libretro .
|
||||
|
@ -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,240 @@ 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"
|
||||
## TODO: The lutro modules here aren't really "cores", they're assets
|
||||
## Figure out where to put them and what to do with them.
|
||||
|
||||
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"
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user