Skip to content
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Most modern Linux distros provide a way to install them via the native package
manager. Ubuntu 18.04+ is known to ship recent enough versions, older distros do not
and installing from source may be necessary.

On Windows, just double-click on `build.bat`. It will manage everything automatically.

Dependencies on Windows are best managed using [vcpkg](https://github.com/Microsoft/vcpkg), you can
find instructions on how to build it on the official repository. Once vcpkg is installed, you should
install the following packages `physfs glm libsquish` by running
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, do we actually still depend on glm? That was a dependency of REGoth, but I got rid of it in ZenLib, or so I thought.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh really? Then we might not need it anymore... I should probably update the ZenLib cmake

Expand Down
11 changes: 11 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set CURRENT_DIR=%~dp0
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
call bootstrap-vcpkg.bat
set VCPKG_ROOT=%CURRENT_DIR%\vcpkg
vcpkg.exe install --triplet x64-windows-static glm physfs libsquish
cd ..
mkdir build
cd build
cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static "-DCMAKE_TOOLCHAIN_FILE=%CURRENT_DIR%\vcpkg\scripts\buildsystems\vcpkg.cmake" -DBSZENLIB_DOWNLOAD_BSF_BINARIES=ON -G "Visual Studio 15 2017 Win64" ..
cmake --build . -j 8