gsdx-ogl: Revise build.sh script, redoing the command line options.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/gsdx-ogl@5055 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2012-01-07 22:20:50 +00:00
parent 545df08ecc
commit 9de050a51f
1 changed files with 32 additions and 17 deletions

View File

@ -4,23 +4,38 @@ flags=""
args="$@" args="$@"
clean_build=false clean_build=false
for f in $args; do for f in $*
if [ "$f" = "gsdx" ] ; then do
flags="$flags -DFORCE_INTERNAL_SDL=TRUE" case $f in
fi --sdl13)
if [ "$f" = "dev" ] ; then flags="$flags -DFORCE_INTERNAL_SDL=TRUE"
flags="$flags -DCMAKE_BUILD_TYPE=Devel" ;;
fi --dev)
if [ "$f" = "debug" ] ; then flags="$flags -DCMAKE_BUILD_TYPE=Devel"
flags="$flags -DCMAKE_BUILD_TYPE=Debug" ;;
fi --devel)
if [ "$f" = "release" ] ; then flags="$flags -DCMAKE_BUILD_TYPE=Devel"
flags="$flags -DCMAKE_BUILD_TYPE=Release" ;;
fi --debug)
if [ "$f" = "clean" ] ; then flags="$flags -DCMAKE_BUILD_TYPE=Debug"
clean_build=true ;;
fi --release)
done flags="$flags -DCMAKE_BUILD_TYPE=Release"
;;
--clean)
clean_build=true
;;
*)
# unknown option
echo "Valid options are:"
echo "--dev / --devel - Build pcsx2 as a Development build."
echo "--debug - Build pcsx2 as a Debug build."
echo "--release - Build pcsx2 as a Release build."
echo "--clean - Do a clean build."
echo "--sdl13 - Use the internal copy of sdl (needed for gsdx to use sdl)."
exit 1;;
esac
done
rm install_log.txt rm install_log.txt