slint/sixtyfps_runtime/rendering_backends/default
Simon Hausmann 1fd8c7236a Make it possible to disable the GL backend in the CMake build
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.
2021-09-08 17:13:10 +02:00
..
build.rs Make fluent the new default style 2021-08-10 15:56:38 +02:00
Cargo.toml Make it possible to disable the GL backend in the CMake build 2021-09-08 17:13:10 +02:00
lib.rs Add a warning on the internal crates documentation that we don't follow semver 2021-08-16 18:26:33 +02:00