2026-05-10 23:23:40 +02:00
|
|
|
# Vendor dependencies
|
|
|
|
|
|
|
|
|
|
TODO: This should be automated with shuriken at some point. For now, manual instructions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## System dependencies
|
|
|
|
|
|
|
|
|
|
For now, SDL3 and SDL3_image need to be installed on the system. They should be vendored at some point.
|
|
|
|
|
|
|
|
|
|
Same for freetype, which is required by RmlUi.
|
|
|
|
|
|
|
|
|
|
|
2026-05-24 22:54:27 +02:00
|
|
|
## nlohmann::json
|
|
|
|
|
|
|
|
|
|
[JSON for Modern C++](https://github.com/nlohmann/json).
|
|
|
|
|
|
|
|
|
|
Within the `vendor` directory, run:
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
# We're using the default branch (develop) here because the latest release does not support C++20 modules yet.
|
|
|
|
|
# (Last commit known working: 484483aca)
|
|
|
|
|
git clone git@github.com:nlohmann/json.git nlohmann_json
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
2026-05-10 23:23:40 +02:00
|
|
|
## RmlUi
|
|
|
|
|
|
|
|
|
|
[RmlUi](https://github.com/mikke89/RmlUi) is a UI library.
|
|
|
|
|
|
|
|
|
|
Within the `vendor` directory, run:
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
# Either clone git repository or download and unpack archive (version 6.2)
|
|
|
|
|
git clone git@github.com:mikke89/RmlUi.git RmlUi --branch 6.2
|
|
|
|
|
cd RmlUi
|
|
|
|
|
|
|
|
|
|
# Configure and build with cmake (use samples or standalone preset)
|
|
|
|
|
cmake -G Ninja -B Build --preset samples -DBUILD_SHARED_LIBS=false -DRMLUI_BACKEND=SDL_SDLrenderer
|
|
|
|
|
cmake --build Build
|
|
|
|
|
|
|
|
|
|
# Optionally test by running a sample
|
|
|
|
|
./Build/rmlui_sample_demo
|
|
|
|
|
```
|