Now you can specify environment variables from a config file per recipe to allow building with different toolchains or crosscompiling, etc

This commit is contained in:
AndresSM 2014-11-08 12:28:26 -08:00
parent e5f193ced3
commit b0aa103d59
2 changed files with 25 additions and 2 deletions

View File

@ -8,7 +8,29 @@
# eg: FORCE=YES MAKE=mingw32-make ./libretro-fetch-and-build.sh buildbot.conf
####environment configuration:
echo configuring build environment
echo "Setting up Environment for $1"
echo ============================================
ORIGPATH=$PATH
echo Original PATH: $PATH
while read line; do
KEY=`echo $line | cut --fields=1 --delimiter=" "`
VALUE=`echo $line | cut --fields=2 --delimiter=" "`
if [ "${KEY}" == "PATH" ];
then
export PATH=${ORIGPATH}:${VALUE}
echo New PATH: $PATH
else
export ${KEY}=${VALUE}
echo $KEY: $VALUE
fi
done < $1.conf
. ./libretro-config.sh
echo
@ -446,3 +468,4 @@ while read line; do
done < $1
PATH=$ORIGPATH

View File

@ -1,4 +1,4 @@
2048 libretro-2048 https://github.com/libretro/libretro-2048.git PROJECT NO GENERIC Makefile.libretro .
2048 libretro-2048 https://github.com/libretro/libretro-2048.git PROJECT YES 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 .