Add BSNES profiles and remaining recipes, should build everything that libretro-build.sh builds now

TODO:

Add a configuration file per-recipe to allow chaning between toolchains for different recipes
This commit is contained in:
AndresSM 2014-11-08 12:02:21 -08:00
parent 79fdd10054
commit e5f193ced3
3 changed files with 126 additions and 17 deletions

View File

@ -142,6 +142,7 @@ build_libretro_generic_makefile() {
cd $DIR
cd $SUBDIR
if [ -z "${NOCLEAN}" ];
then
echo "cleaning up..."
@ -173,6 +174,7 @@ build_libretro_generic_makefile() {
echo error while compiling $1
fi
}
build_libretro_generic_gl_makefile() {
@ -185,11 +187,12 @@ build_libretro_generic_gl_makefile() {
PLATFORM=$5
ARGS=$6
cd $DIR
cd $SUBDIR
check_opengl
cd $DIR
cd $SUBDIR
if [ -z "${NOCLEAN}" ];
then
echo "cleaning up..."
@ -223,6 +226,77 @@ build_libretro_generic_gl_makefile() {
reset_compiler_targets
}
build_libretro_bsnes() {
NAME=$1
DIR=$2
PROFILE=$3
MAKEFILE=$4
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 success!
else
echo error while cleaning up
fi
fi
echo "compiling..."
if [ "${PROFILE}" == "cpp98" ];
then
${MAKE} platform="${PLATFORM}" ${COMPILER} "-j${JOBS}"
elif [ "${PROFILE}" == "bnes" ];
then
${MAKE} -f Makefile ${COMPILER} "-j${JOBS}" compiler=${BSNESCOMPILER}
else
echo "buid command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} compiler=${BSNESCOMPILER} ui='target-libretro' profile=${PROFILE} -j${JOBS}"
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} compiler=${BSNESCOMPILER} ui='target-libretro' profile=${PROFILE} -j${JOBS}
fi
if [ $? -eq 0 ];
then
echo success!
if [ "${PROFILE}" == "cpp98" ];
then
cp -fv "out/libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}.${FORMAT_EXT}"
elif [ "${PROFILE}" == "bnes" ];
then
cp -fv "libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${NAME}_libretro${FORMAT}.${FORMAT_EXT}"
else
cp -fv "out/${NAME}_libretro$FORMAT.${FORMAT_EXT}" $RARCH_DIST_DIR/${NAME}_${PROFILE}_libretro$FORMAT.${FORMAT_EXT}
fi
else
echo error while compiling $1
fi
}
#fetch a project and mark it for building if there have been any changes
@ -290,6 +364,8 @@ while read line; do
ARGS="${ARGS} ${TEMP}"
fi
ARGS="${ARGS%"${ARGS##*[![:space:]]}"}"
echo ARGS: $ARGS
echo
echo
@ -354,6 +430,8 @@ while read line; do
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}" == "BSNES" ]; then
build_libretro_bsnes $NAME $DIR "${ARGS}" $MAKEFILE ${FORMAT_COMPILER_TARGET} ${CXX11}
fi
else

View File

@ -1,16 +1,30 @@
RECIPE FORMAT:
CORENAME COREDIR URL REPOTYPE ENABLED COMMAND MAKEFILE SUBDIR
CORENAME COREDIR URL REPOTYPE ENABLED COMMAND MAKEFILE SUBDIR ARGS
The following are know to work for Windows x64 with the toolchain provided by MSYS2 by default (SEH exception model):
2048 libretro-2048 https://github.com/libretro/libretro-2048.git PROJECT NO GENERIC Makefile.libretro .
3dengine libretro-3dengine https://github.com/libretro/libretro-3dengine.git PROJECT NO GENERIC_GL Makefile .
4do libretro-4do https://github.com/libretro/4do-libretro.git PROJECT NO GENERIC Makefile .
bluemsx libretro-bluemsx https://github.com/libretro/blueMSX-libretro.git PROJECT NO GENERIC Makefile.libretro .
bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT NO BSNES Makefile .
bnes libretro-bnes https://github.com/libretro/bnes-libretro.git PROJECT YES BSNES Makefile . bnes
bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT YES BSNES Makefile . accuracy
bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT YES BSNES Makefile . balanced
bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT YES BSNES Makefile . performance
bsnes_cplusplus98 libretro-bsnes_cplusplus98 https://github.com/libretro/bsnes-libretro-cplusplus98.git PROJECT YES BSNES Makefile . cpp98
bsnes_mercury libretro-bsnes_mercury https://github.com/libretro/bsnes-mercury.git PROJECT YES BSNES Makefile . accuracy
bsnes_mercury libretro-bsnes_mercury https://github.com/libretro/bsnes-mercury.git PROJECT YES BSNES Makefile . balanced
bsnes_mercury libretro-bsnes_mercury https://github.com/libretro/bsnes-mercury.git PROJECT YES BSNES Makefile . performance
catsfc libretro-catsfc https://github.com/libretro/CATSFC-libretro.git PROJECT NO GENERIC Makefile .
desmume libretro-desmume https://github.com/libretro/desmume.git PROJECT NO GENERIC Makefile.libretro desmume
dinothawr libretro-dinothawr https://github.com/libretro/Dinothawr.git PROJECT NO GENERIC_ALT Makefile .
dosbox libretro-dosbox https://github.com/libretro/dosbox-libretro.git PROJECT NO GENERIC Makefile.libretro .
fb_alpha libretro-fba https://github.com/libretro/fba-libretro.git PROJECT NO GENERIC makefile.libretro svn-current/trunk
fba_cores_cps1 libretro-fba https://github.com/libretro/fba-libretro.git PROJECT NO GENERIC makefile.libretro svn-current/trunk/fbacores/cps1
fba_cores_cps2 libretro-fba https://github.com/libretro/fba-libretro.git PROJECT NO GENERIC makefile.libretro svn-current/trunk/fbacores/cps2
fba_cores_neo libretro-fba https://github.com/libretro/fba-libretro.git PROJECT NO GENERIC makefile.libretro svn-current/trunk/fbacores/neogeo
fceumm libretro-fceuumm https://github.com/libretro/libretro-fceumm.git PROJECT NO GENERIC Makefile.libretro .
ffmpeg libretro-ffmpeg https://github.com/libretro/FFmpeg.git PROJECT NO GENERIC_GL Makefile libretro
fmsx libretro-fmsx https://github.com/libretro/fmsx-libretro.git PROJECT NO GENERIC Makefile .
gambatte libretro-gambatte https://github.com/libretro/gambatte-libretro.git PROJECT NO GENERIC_ALT Makefile.libretro libgambatte
genesis_plus_gx libretro-genesis_plus_gx https://github.com/libretro/Genesis-Plus-GX.git PROJECT NO GENERIC Makefile.libretro .
@ -25,19 +39,26 @@ mednafen_snes libretro-mednafen_snes https://github.com/libretro/beetle-bsnes-li
mednafen_supergrafx libretro-mednafen_supergrafx https://github.com/libretro/beetle-supergrafx-libretro.git PROJECT NO GENERIC Makefile .
mednafen_vb libretro-mednafen_vb https://github.com/libretro/beetle-vb-libretro.git PROJECT NO GENERIC Makefile .
mednafen_wswan libretro-mednafen_wswan https://github.com/libretro/beetle-wswan-libretro.git PROJECT NO GENERIC Makefile .
meteor libretro-meteor https://github.com/libretro/meteor-libretro.git PROJECT NO GENERIC Makefile libretro
mupen64plus libretro-mupen64plus https://github.com/libretro/mupen64plus-libretro.git PROJECT NO GENERIC_GL Makefile . WITH_DYNAREC=x86_64
nestopia libretro-nestopia https://github.com/libretro/nestopia.git PROJECT NO GENERIC Makefile libretro
nxengine libretro-nxengine https://github.com/libretro/nxengine-libretro.git PROJECT NO GENERIC Makefile .
o2em libretro-o2em https://github.com/libretro/libretro-o2em.git PROJECT NO GENERIC Makefile .
pcsx_rearmed libretro-pcsx_rearmed https://github.com/libretro/pcsx_rearmed.git PROJECT NO GENERIC Makefile.libretro . USE_DYNAREC=0
picodrive libretro-picodrive https://github.com/libretro/picodrive.git SUBMODULE YES GENERIC Makefile.libretro .
picodrive libretro-picodrive https://github.com/libretro/picodrive.git SUBMODULE NO GENERIC Makefile.libretro .
prboom libretro-prboom https://github.com/libretro/libretro-prboom.git PROJECT NO GENERIC_ALT Makefile .
prosystem libretro-prosystem https://github.com/libretro/prosystem-libretro.git PROJECT NO GENERIC Makefile .
quicknes libretro-quicknes https://github.com/libretro/QuickNES_Core.git PROJECT NO GENERIC Makefile libretro
remotejoy libretro-remotejoy https://github.com/libretro/libretro-remotejoy.git PROJECT NO GENERIC Makefile .
scummvm libretro-scummvm https://github.com/libretro/scummvm.git PROJECT NO GENERIC Makefile backends/platform/libretro/build
snes9x libretro-snes9x https://github.com/libretro/snes9x.git PROJECT NO GENERIC Makefile libretro
snes9x_next libretro-snes9x_next https://github.com/libretro/snes9x-next.git PROJECT NO GENERIC_ALT Makefile.libretro .
stella libretro-stella https://github.com/libretro/stella-libretro.git PROJECT NO GENERIC Makefile .
tgbdual libretro-tgbdual https://github.com/libretro/tgbdual-libretro.git PROJECT NO GENERIC Makefile .
tyrquake libretro-tyrquake https://github.com/libretro/tyrquake.git PROJECT NO GENERIC Makefile.libretro .
vba_next libretro-vba_next https://github.com/libretro/vba-next.git PROJECT NO GENERIC_ALT Makefile.libretro .
vbam libretro-vbam https://github.com/libretro/vbam-libretro.git PROJECT NO GENERIC_ALT Makefile src/libretro
vecx libretro-vecx https://github.com/libretro/libretro-vecx.git PROJECT NO GENERIC Makefile.libretro .
virtualjaguar libretro-virtualjaguar https://github.com/libretro/virtualjaguar-libretro.git PROJECT NO GENERIC Makefile .
yabause libretro-yabause https://github.com/libretro/yabause.git PROJECT NO GENERIC Makefile libretro
@ -50,5 +71,3 @@ mame libretro-mame https://github.com/libretro/mame.git PROJECT YES GENERIC Make
The following are not working for Windows x64 at the moment
catsfc libretro-catsfc https://github.com/libretro/CATSFC-libretro.git PROJECT NO GENERIC Makefile . ===>BROKEN
desmume libretro-desmume https://github.com/libretro/desmume.git PROJECT NO GENERIC Makefile.libretro desmume ===>BROKEN
dosbox libretro-dosbox https://github.com/libretro/dosbox-libretro.git PROJECT NO GENERIC Makefile.libretro . ===>BROKEN

View File

@ -1,14 +1,25 @@
2048 libretro-2048 https://github.com/libretro/libretro-2048.git PROJECT NO GENERIC Makefile.libretro .
3dengine libretro-3dengine https://github.com/libretro/libretro-3dengine.git PROJECT NO GENERIC_GL Makefile .
4do libretro-4do https://github.com/libretro/4do-libretro.git PROJECT NO GENERIC Makefile .
bluemsx libretro-bluemsx https://github.com/libretro/blueMSX-libretro.git PROJECT NO GENERIC Makefile.libretro .
bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT NO BSNES Makefile .
catsfc libretro-catsfc https://github.com/libretro/CATSFC-libretro.git PROJECT NO GENERIC Makefile . ===>BROKEN
desmume libretro-desmume https://github.com/libretro/desmume.git PROJECT NO GENERIC Makefile.libretro desmume ===>BROKEN
bnes libretro-bnes https://github.com/libretro/bnes-libretro.git PROJECT YES BSNES Makefile . bnes
bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT YES BSNES Makefile . accuracy
bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT YES BSNES Makefile . balanced
bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT YES BSNES Makefile . performance
bsnes_cplusplus98 libretro-bsnes_cplusplus98 https://github.com/libretro/bsnes-libretro-cplusplus98.git PROJECT YES BSNES Makefile . cpp98
bsnes_mercury libretro-bsnes_mercury https://github.com/libretro/bsnes-mercury.git PROJECT YES BSNES Makefile . accuracy
bsnes_mercury libretro-bsnes_mercury https://github.com/libretro/bsnes-mercury.git PROJECT YES BSNES Makefile . balanced
bsnes_mercury libretro-bsnes_mercury https://github.com/libretro/bsnes-mercury.git PROJECT YES BSNES Makefile . performance
catsfc libretro-catsfc https://github.com/libretro/CATSFC-libretro.git PROJECT NO GENERIC Makefile .
desmume libretro-desmume https://github.com/libretro/desmume.git PROJECT NO GENERIC Makefile.libretro desmume
dinothawr libretro-dinothawr https://github.com/libretro/Dinothawr.git PROJECT NO GENERIC_ALT Makefile .
dosbox libretro-dosbox https://github.com/libretro/dosbox-libretro.git PROJECT NO GENERIC Makefile.libretro . ===>BROKEN
dosbox libretro-dosbox https://github.com/libretro/dosbox-libretro.git PROJECT NO GENERIC Makefile.libretro .
fb_alpha libretro-fba https://github.com/libretro/fba-libretro.git PROJECT NO GENERIC makefile.libretro svn-current/trunk
fba_cores_cps1 libretro-fba https://github.com/libretro/fba-libretro.git PROJECT NO GENERIC makefile.libretro svn-current/trunk/fbacores/cps1
fba_cores_cps2 libretro-fba https://github.com/libretro/fba-libretro.git PROJECT NO GENERIC makefile.libretro svn-current/trunk/fbacores/cps2
fba_cores_neo libretro-fba https://github.com/libretro/fba-libretro.git PROJECT NO GENERIC makefile.libretro svn-current/trunk/fbacores/neogeo
fceumm libretro-fceuumm https://github.com/libretro/libretro-fceumm.git PROJECT NO GENERIC Makefile.libretro .
ffmpeg libretro-ffmpeg https://github.com/libretro/FFmpeg.git PROJECT NO GENERIC_GL Makefile libretro
fmsx libretro-fmsx https://github.com/libretro/fmsx-libretro.git PROJECT NO GENERIC Makefile .
gambatte libretro-gambatte https://github.com/libretro/gambatte-libretro.git PROJECT NO GENERIC_ALT Makefile.libretro libgambatte
genesis_plus_gx libretro-genesis_plus_gx https://github.com/libretro/Genesis-Plus-GX.git PROJECT NO GENERIC Makefile.libretro .
@ -23,24 +34,25 @@ mednafen_snes libretro-mednafen_snes https://github.com/libretro/beetle-bsnes-li
mednafen_supergrafx libretro-mednafen_supergrafx https://github.com/libretro/beetle-supergrafx-libretro.git PROJECT NO GENERIC Makefile .
mednafen_vb libretro-mednafen_vb https://github.com/libretro/beetle-vb-libretro.git PROJECT NO GENERIC Makefile .
mednafen_wswan libretro-mednafen_wswan https://github.com/libretro/beetle-wswan-libretro.git PROJECT NO GENERIC Makefile .
meteor libretro-meteor https://github.com/libretro/meteor-libretro.git PROJECT NO GENERIC Makefile libretro
mupen64plus libretro-mupen64plus https://github.com/libretro/mupen64plus-libretro.git PROJECT NO GENERIC_GL Makefile . WITH_DYNAREC=x86_64
nestopia libretro-nestopia https://github.com/libretro/nestopia.git PROJECT NO GENERIC Makefile libretro
nxengine libretro-nxengine https://github.com/libretro/nxengine-libretro.git PROJECT NO GENERIC Makefile .
o2em libretro-o2em https://github.com/libretro/libretro-o2em.git PROJECT NO GENERIC Makefile .
pcsx_rearmed libretro-pcsx_rearmed https://github.com/libretro/pcsx_rearmed.git PROJECT NO GENERIC Makefile.libretro . USE_DYNAREC=0
picodrive libretro-picodrive https://github.com/libretro/picodrive.git SUBMODULE NO GENERIC Makefile.libretro .
prboom libretro-prboom https://github.com/libretro/libretro-prboom.git PROJECT NO GENERIC_ALT Makefile .
prosystem libretro-prosystem https://github.com/libretro/prosystem-libretro.git PROJECT NO GENERIC Makefile .
quicknes libretro-quicknes https://github.com/libretro/QuickNES_Core.git PROJECT NO GENERIC Makefile libretro
remotejoy libretro-remotejoy https://github.com/libretro/libretro-remotejoy.git PROJECT NO GENERIC Makefile .
scummvm libretro-scummvm https://github.com/libretro/scummvm.git PROJECT NO GENERIC Makefile backends/platform/libretro/build
snes9x libretro-snes9x https://github.com/libretro/snes9x.git PROJECT NO GENERIC Makefile libretro
snes9x_next libretro-snes9x_next https://github.com/libretro/snes9x-next.git PROJECT NO GENERIC_ALT Makefile.libretro .
stella libretro-stella https://github.com/libretro/stella-libretro.git PROJECT NO GENERIC Makefile .
tgbdual libretro-tgbdual https://github.com/libretro/tgbdual-libretro.git PROJECT NO GENERIC Makefile .
tyrquake libretro-tyrquake https://github.com/libretro/tyrquake.git PROJECT NO GENERIC Makefile.libretro .
vba_next libretro-vba_next https://github.com/libretro/vba-next.git PROJECT NO GENERIC_ALT Makefile.libretro .
vbam libretro-vbam https://github.com/libretro/vbam-libretro.git PROJECT NO GENERIC_ALT Makefile src/libretro
vecx libretro-vecx https://github.com/libretro/libretro-vecx.git PROJECT NO GENERIC Makefile.libretro .
virtualjaguar libretro-virtualjaguar https://github.com/libretro/virtualjaguar-libretro.git PROJECT NO GENERIC Makefile .
yabause libretro-yabause https://github.com/libretro/yabause.git PROJECT NO GENERIC Makefile libretro
meteor libretro-meteor https://github.com/libretro/meteor-libretro.git PROJECT YES GENERIC Makefile libretro ===>BROKEN
prboom libretro-prboom https://github.com/libretro/libretro-prboom.git PROJECT YES GENERIC_ALT Makefile .
stella libretro-stella https://github.com/libretro/stella-libretro.git PROJECT YES GENERIC Makefile .
vecx libretro-vecx https://github.com/libretro/libretro-vecx.git PROJECT YES GENERIC Makefile.libretro .