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
49
build.sh
49
build.sh
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue