Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 2.04 KB

File metadata and controls

69 lines (50 loc) · 2.04 KB

Building from Source

Linux

Prerequisites

Arch Linux (other distros need equivalent packages):

rust cmake ninja bun libx11 libxtst lib32-gcc-libs lib32-openssl lib32-libidn2 lib32-xz lib32-zstd lib32-brotli lib32-libnghttp2 lib32-libpsl

Build

$ cmake --preset linux-debug
# We also ship `linux-release`, run
# cmake --list-presets to list all presets

# You can also provide -j$(nproc) to build multithreaded.
$ cmake --build build

Dev Environment Setup

After building, run the setup script to symlink the build outputs into Steam's runtime directories. This only needs to be run once — the symlinks point into the build tree, so rebuilding automatically picks up changes without re-running the script. Just restart Steam after rebuilding.

# insert Millennium into your Steam installation
$ ./scripts/linux/setup_devenv.sh

# remove Millennium and restore Steam to its stock state
$ ./scripts/linux/destroy_devenv.sh

Windows

Prerequisites

Build

Open a Developer PowerShell for VS, then:

cmake --preset windows-debug -DMILLENNIUM_BUILD_TO_STEAM_PATH # build into Steam directory  
# We also ship `windows-release`, run
# cmake --list-presets to list all presets

# You can also provide -j<SOME_VALUE> to build multithreaded.
cmake --build build

On Windows, CMake automatically detects your Steam installation from the registry and outputs binaries directly into Steam's directory. No additional setup is needed — just restart Steam after building.