Rename the backend-gl feature to backend-gl-all

This commit is contained in:
Simon Hausmann 2022-02-08 13:03:53 +01:00 committed by Simon Hausmann
parent 48f3f47401
commit be5b8c1c46
8 changed files with 35 additions and 27 deletions

View file

@ -68,9 +68,9 @@ endfunction()
# defaults need to be kept in sync with the Rust bit.
define_cargo_feature(interpreter "Enable support for the Slint interpeter to load .slint files at run-time" ON)
define_cargo_feature(backend-gl "Enable OpenGL ES 2.0 based rendering backend" ON)
define_cargo_dependent_feature(backend-gl-x11 "Enable the OpenGL ES 2.0 backend with X11 support" ON SLINT_FEATURE_BACKEND_GL OFF)
define_cargo_dependent_feature(backend-gl-wayland "Enable the OpenGL ES 2.0 backend with wayland support" OFF SLINT_FEATURE_BACKEND_GL OFF)
define_cargo_feature(backend-gl-all "Enable OpenGL ES 2.0 based rendering backend with support for all windowing systems." ON)
define_cargo_feature(backend-gl-x11 "Enable the OpenGL ES 2.0 backend with only X11 support. Enable this option and turn off SLINT_FEATURE_BACKEND_GL_ALL for a smaller build with just X11 support." OFF)
define_cargo_feature(backend-gl-wayland "Enable the OpenGL ES 2.0 backend with wayland support. Enable this option and turn off SLINT_FEATURE_BACKEND_GL_ALL for a smaller build with just wayland support." OFF)
define_cargo_feature(backend-qt "Enable Qt based rendering backend" ON)

View file

@ -22,14 +22,14 @@ crate-type = ["lib", "cdylib"]
# Note, these features need to be kept in sync (along with their defaults) in
# the C++ crate's CMakeLists.txt
[features]
backend-gl = ["i-slint-backend-selector/i-slint-backend-gl"]
backend-qt = ["i-slint-backend-selector/i-slint-backend-qt"]
interpreter = ["slint-interpreter"]
testing = ["i-slint-backend-testing"] # Enable some function used by the integration tests
backend-gl-all = ["i-slint-backend-selector/backend-gl-all"]
backend-gl-wayland = ["i-slint-backend-selector/backend-gl-wayland"]
backend-gl-x11 = ["i-slint-backend-selector/backend-gl-x11"]
default = ["backend-gl", "backend-gl-x11", "backend-qt"]
default = ["backend-gl-all", "backend-qt"]
[dependencies]
i-slint-backend-selector = { version = "=0.2.0", path="../../internal/backends/selector" }