1.1 KiB
1.1 KiB
Compile on Windows with Visual Studio
- Install Visual Studio Community 2019 with the "Desktop development with C++" workload
- Install CMake
- Install NSIS
- Download and unzip SDL2-devel-2.x.x-VC.zip, SDL2_image-devel-2.x.x-VC.zip, SDL2_mixer-devel-2.x.x-VC.zip, SDL2_ttf-devel-2.x.x-VC.zip
- Open Developer Command Prompt for VS 2019 and run the following, substituting paths as appropriate:
SET SDL2DIR=C:\repos\breakhackBuild\SDL2-2.0.9
SET SDL2MIXERDIR=C:\repos\breakhackBuild\SDL2_mixer-2.0.4
SET SDL2_IMAGE=C:\repos\breakhackBuild\SDL2_image-2.0.4
SET SDLTTFDIR=C:\repos\breakhackBuild\SDL2_ttf-2.0.15
cmake -S C:\repos\breakhack -B C:\repos\breakhackBuild
cmake --build C:\repos\breakhackBuild --target package --config Release