@echo off
REM Go into the SFML source folder and get the latest version of master
REM These commands will discard any commits and delete none tracked files!!!
cd SFML
git checkout master
git reset --hard HEAD
git clean -f
git pull
REM Create a build directory if it does not exist
IF NOT EXIST Build mkdir Build
SET /p input="Build(y/n): "
IF /i "%input%" == "n" GOTO end
REM Build Release/Debug in both, static and dynamic versions, for MinGW
cd Build
cmake -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=false ../
mingw32-make
cmake -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=true ../
mingw32-make
cmake -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=false ../
mingw32-make
cmake -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=true ../
mingw32-make
cd ..
:end
echo "Finished!"
cd ..