Note
A small game project, which lived in printfdebugging/engine in it's initial days. The whole engine-project arcitecture was a bad idea as I realized it with the editor, it complicates things unnecessarily, makes refactors/pivoting hard. HENCE ARCHIVED!
- Windows
- Install MSYS2 with
winget install MSYS2.MSYS2 - Add
C:\msys64\clang64\binto PATH- You can do that from the Edit the system environment variables dialog
- Or run this command (from the codeblock below) in Powershell
- Install Git with
winget install Git.Git - Install VSCode with
winget install Microsoft.VisualStudioCode
- Install MSYS2 with
if ($env:Path -notlike "*C:\msys64\clang64\bin*") { [Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";C:\msys64\clang64\bin", "User") }- On Windows, open the
MSYS2 CLANG64shell - On Linux, use "THE BASH"
- Run
./external/scripts/dependencies.sh, this installs compilers, build tools etc
Note
dependencies.sh only installs packages for Archlinux and MSYS2. If you
use some other distribution, feel free to find the equivalent package
names and add them to the script, thanks!
# downloads half the internet, sorry!
git submodule update --init --recursive
# build and install (locally) the external libraries
make -C external install
# build the project itself
cmake -B build
cmake --build build
# run the game
./build/game