mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
![]() Even if SIXTYFPS_BACKEND_GL is set to OFF, we would default to enabling X11, which translates to enabling the x11 feature, which in turn implicitly activates the GL backend. In addition, the interpreter Rust API crate also enables the GL backend in its defeaults. In order to make it possible to turn off the GL backend, three changes are necessary: * The default backend no more selects a default :-). Instead the Rust API crate, Rust interpreter API crate and the CMake project define the same features and defaults. * The C++ crate depends on the interpreter without its defaults (which enable GL) * In CMake the X11 and Wayland features become dependent options, that are only show in the CMake configure UI if the GL backend is enabled. This way a GL-disabled build won't also pass --features x11. |
||
---|---|---|
.. | ||
build.rs | ||
Cargo.toml | ||
lib.rs |