Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

CMake Options

Hanover edited this page Jun 28, 2024 · 16 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
-DUSE_KISAK_PHYSICS=1 Use the open source Physics rebuild.
-DUSE_BULLET_PHYSICS=1 Use the open source and free-as-in-freedom Bullet Physics Library.
  • -DUSE_BULLET_PHYSICS_THREADED=1
    • (For Bullet Physics) - Use experimental threading option. Use convar bt_threadcount to control the amount of threads.

No Physics Options/Flags will use a Closed-Source Binary "vphysics_client.so" from Valve (734 repo).

UI

Options / Flags Description
-DUSE_ROCKETUI=1 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
-DUSE_VALVE_HRTF=1 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

  • -DDEDICATED=1
    • Change the build to dedicated server mode.
      • Note that the builds are not in-tree compatible, some things will have to be rebuilt.
        Make sure to use -DDEDICATED=0 once you want to go back to the client 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