Rename the backend feature flags

This commit is contained in:
Olivier Goffart 2022-09-07 15:08:06 +02:00 committed by Olivier Goffart
parent 865d663352
commit 8850959a2c
19 changed files with 139 additions and 149 deletions

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 make a build that exclusively supports Wayland on Linux by enabling the `SLINT_FEATURE_EVENTLOOP_WINIT_WAYLAND` feature and turning
off `SLINT_FEATURE_EVENTLOOP_WINIT`. 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_WINIT_WAYLAND` feature and turning
off `SLINT_FEATURE_BACKEND_WINIT`. There are different ways of toggling CMake options. For example on the command line using the `-D` parameter:
`cmake -DSLINT_FEATURE_EVENTLOOP_WINIT=OFF -DSLINT_FEATURE_EVENTLOOP_WINIT_WAYLAND=ON ...`
`cmake -DSLINT_FEATURE_BACKEND_WINIT=OFF -DSLINT_FEATURE_BACKEND_WINIT_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.