mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-14 13:49:51 +00:00
bffde4fd5e
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5037 96395faa-99c1-11dd-bbfe-3dabce05a288
45 lines
874 B
Bash
Executable File
45 lines
874 B
Bash
Executable File
#!/bin/sh
|
|
|
|
flags=""
|
|
args="$@"
|
|
clean_build=false
|
|
|
|
for f in $args; do
|
|
if [ "$f" = "gsdx" ] ; then
|
|
flags="$flags -DFORCE_INTERNAL_SDL=TRUE"
|
|
fi
|
|
if [ "$f" = "dev" ] ; then
|
|
flags="$flags -DCMAKE_BUILD_TYPE=Devel"
|
|
fi
|
|
if [ "$f" = "debug" ] ; then
|
|
flags="$flags -DCMAKE_BUILD_TYPE=Debug"
|
|
fi
|
|
if [ "$f" = "release" ] ; then
|
|
flags="$flags -DCMAKE_BUILD_TYPE=Release"
|
|
fi
|
|
if [ "$f" = "clean" ] ; then
|
|
clean_build=true
|
|
fi
|
|
done
|
|
|
|
rm install_log.txt
|
|
|
|
if [ $flags ]; then
|
|
echo "Building pcsx2 with $flags"
|
|
echo "Building pcsx2 with $flags" > install_log.txt
|
|
fi
|
|
|
|
if [ ! -d "build" ]; then
|
|
mkdir build
|
|
fi
|
|
cd build
|
|
|
|
cmake $flags .. 2>&1 | tee -a ../install_log.txt
|
|
if [ $clean_build = true ]; then
|
|
echo "Doing a clean build."
|
|
make clean 2>&1 | tee -a ../install_log.txt
|
|
fi
|
|
make 2>&1 | tee -a ../install_log.txt
|
|
make install 2>&1 | tee -a ../install_log.txt
|
|
|
|
cd .. |