Saxum/build.sh
2014-11-24 01:53:29 +01:00

30 lines
463 B
Bash
Executable File

#!/bin/bash
if [[ $1 == "clean" ]]
then
rm -rf build
rm -rf binaries
rm -rf extern/bullet/build
exit
fi
currentDir=$(pwd)
threads=$(($(nproc)+1))
#building bullet
cd extern/bullet/
mkdir -p build
cd build
cmake -DBUILD_DEMOS=0 -DBUILD_EXTRAS=0 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=0 ..
make -j$threads
cd $currentDir
#Building app
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=0 ..
make -j$threads