mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
545df08ecc
commit
9de050a51f
37
build.sh
37
build.sh
|
@ -4,22 +4,37 @@ flags=""
|
|||
args="$@"
|
||||
clean_build=false
|
||||
|
||||
for f in $args; do
|
||||
if [ "$f" = "gsdx" ] ; then
|
||||
for f in $*
|
||||
do
|
||||
case $f in
|
||||
--sdl13)
|
||||
flags="$flags -DFORCE_INTERNAL_SDL=TRUE"
|
||||
fi
|
||||
if [ "$f" = "dev" ] ; then
|
||||
;;
|
||||
--dev)
|
||||
flags="$flags -DCMAKE_BUILD_TYPE=Devel"
|
||||
fi
|
||||
if [ "$f" = "debug" ] ; then
|
||||
;;
|
||||
--devel)
|
||||
flags="$flags -DCMAKE_BUILD_TYPE=Devel"
|
||||
;;
|
||||
--debug)
|
||||
flags="$flags -DCMAKE_BUILD_TYPE=Debug"
|
||||
fi
|
||||
if [ "$f" = "release" ] ; then
|
||||
;;
|
||||
--release)
|
||||
flags="$flags -DCMAKE_BUILD_TYPE=Release"
|
||||
fi
|
||||
if [ "$f" = "clean" ] ; then
|
||||
;;
|
||||
--clean)
|
||||
clean_build=true
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue