Skip to content

CMake Options

Stuart edited this page Feb 17, 2025 · 38 revisions

How to build

You will want to do your builds in the cmake-build folder.

Specify various options with the -D flag (example below)

cmake .. -DOPTION1=0 -DOPTION2=1

CMake Configuration

All Options

See this file for up-to-date options choices - (in case the wiki is not updated).

Physics

Options / Flags Description
USE_IPHYS Use the open source Physics rebuild.
USE_BULLET_PHYSICS Use Open Source Bullet3 Physics Engine(zlib)
USE_BULLET_PHYSICS_THREADED Use Multi-Threading for the Bullet Physics Engine. Use convar 'bt_threadcount' to set.

No Physics Options will use the original Closed-Source vphysics.

UI

Options / Flags Description
USE_ROCKETUI Use Custom RocketUI. Without this, the UI will be a broken mess of VGUI.

No UI Options will leave the game's built-in VGUI UI. Note that it is unfinished and broken!

Audio

Options / Flags Description
USE_VALVE_HRTF By default the HRTF is disabled because it requires a proprietary blob(libphonon3d.so), set this flag to re-enable it.

No Audio Options will use Open Source Audio System.

Other

Options / Flags Description
DEDICATED Change the build to dedicated server mode. Note that the builds are not in-tree compatible, some things will have to be rebuilt.
USE_ASAN Enable the Address Sanitizer GCC plugin, used for finding memory errors/bugs.
USE_TRACY Enable Tracy Profiler support.
TRACY_STORE_LOGS Turn off Tracy's On-Demand mode, the profiler will store logs and send them later when the UI connects.
RELEASE_ASSERTS Enable asserts in release build.

Building

After cmake, simply do a make -jXXX where XXX is the number of threads you wish to build with.

Clone this wiki locally