Fix up the C++ docs explaining how to create a wayland-only build

This commit is contained in:
Simon Hausmann 2022-02-08 13:31:13 +01:00 committed by Simon Hausmann
parent 90d67be1a4
commit fcd1faa336

View file

@ -59,10 +59,10 @@ not enabled by default but that is revelant for you, or you may want to disable
therefore reduce the size of the resulting library.
The CMake configure step offers CMake options for various feature that are all prefixed with `SLINT_FEATURE_`. For example
you can enable support for the Wayland windowing system on Linux by enabling the `SLINT_FEATURE_BACKEND_GL_WAYLAND` feature. There are
different ways of toggling CMake options. For example on the command line using the `-D` parameter:
you can make a build that exclusively supports Wayland on Linux by enabling the `SLINT_FEATURE_BACKEND_GL_WAYLAND` feature and turning
off `SLINT_FEATURE_BACKEND_GL_ALL`. There are different ways of toggling CMake options. For example on the command line using the `-D` parameter:
`cmake -DSLINT_FEATURE_BACKEND_GL_WAYLAND=ON ...`
`cmake -DSLINT_FEATURE_BACKEND_GL_ALL=OFF -DSLINT_FEATURE_BACKEND_GL_WAYLAND=ON ...`
Alternatively, after the configure step you can use `cmake-gui` or `ccmake` on the build directory for a list of all features
and their description.