Skip to content

Compiling the Project

Use the Nix shell for local Windows builds. It provides MinGW, project dependencies, and the expected build tools.

Windows Builds

On Windows, use WSL with the Nix flow below.

Nix Flake

Enter the development shell, then build the debug distribution:

nix develop
just build
# Output: build/dist/debug/

To configure the default local build, run:

just setup-build

# Equivalent CMake preset:
cmake --preset mingw32-nix

Both commands configure build/ with Ninja Multi-Config. The default is DTTR_MODS_ENABLED=OFF.

To build with modding enabled, set DTTR_MODS_ENABLED=ON and run the same just command:

DTTR_MODS_ENABLED=ON just build
# Output: build/dist/debug-modding/

Container Build

Use the project container when you need a clean toolchain:

just build-container
# Output: build-container/dist/debug/

Before sharing a build, run the local tests:

just test-all

Create archives with:

just package-debug
just package-release