Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.87 KB

console.md

File metadata and controls

52 lines (40 loc) · 1.87 KB

Windows - Terminal (CMake presets)

Native MSVC build from a Developer Command Prompt / Developer PowerShell for VS (so cl, CMake, and Ninja are on PATH), using the bundled presets.

See the build guide for shared concepts. To cross-compile the Windows client from Linux/WSL instead, see wsl.md.

Prerequisites

  • Visual Studio C++ build tools (CMake + Ninja).
  • The .NET 10 SDK.
  • vcpkg, with VCPKG_ROOT set to its installation directory. The presets select x64-windows or x86-windows and chainload the repository architecture toolchain automatically.
$env:VCPKG_ROOT = "C:\vcpkg"

Configure and build

# Configure (pick one)
cmake --preset windows-x64                # 64-bit player build
cmake --preset windows-x64-mueditor       # 64-bit + editor + control socket
cmake --preset windows-x86                # 32-bit player build
cmake --preset windows-x86-mueditor       # 32-bit + editor + control socket

# Build (pick the matching Debug/Release build preset)
cmake --build --preset windows-x64-mueditor-debug
cmake --build --preset windows-x64-mueditor-release

The configure presets are listed in CMakePresets.json; each has -debug/-release build presets. The plain presets are the player configuration (ENABLE_EDITOR=OFF, ENABLE_CONTROL_SOCKET=OFF); the -mueditor presets are the developer configuration with both on. The developer control socket (docs/control-socket.md) is only ever compiled when ENABLE_CONTROL_SOCKET=ON; add -DENABLE_CONTROL_SOCKET=ON to a plain preset to get it without the editor.

Run

cd out/build/windows-x64-mueditor/src/Debug
.\Main.exe

Run from the build output's src/<config> directory so the client finds its assets, config.ini, and MUnique.Client.Library.dll (all placed there by the post-build step).