rog-control-center: Disable slint KMS backend

The slint KMS backend is meant to run an application without a display
server and with direct, exclusive display and input control, which is a
very specific use-case for e.g. embedded applications.

Disable the KMS backend and avoid a bunch of dependencies.
This commit is contained in:
Kenny Levinsen
2024-11-02 13:17:42 +01:00
parent f0ebda9ecd
commit a672a86cc4
5 changed files with 5 additions and 31 deletions

View File

@@ -17,7 +17,7 @@ image: rust:latest
- target/release/.cargo-lock - target/release/.cargo-lock
before_script: before_script:
- apt-get update -qq && apt-get install -y -qq libinput-dev libseat-dev libudev-dev libgtk-3-dev grep llvm clang libclang-dev libsdl2-dev libsdl2-gfx-dev - apt-get update -qq && apt-get install -y -qq libudev-dev libgtk-3-dev grep llvm clang libclang-dev libsdl2-dev libsdl2-gfx-dev
stages: stages:
- format - format

23
Cargo.lock generated
View File

@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 4
[[package]] [[package]]
name = "ab_glyph" name = "ab_glyph"
@@ -2146,7 +2146,6 @@ dependencies = [
"i-slint-core", "i-slint-core",
"i-slint-renderer-femtovg", "i-slint-renderer-femtovg",
"input", "input",
"libseat",
"nix 0.27.1", "nix 0.27.1",
"raw-window-handle", "raw-window-handle",
"xkbcommon", "xkbcommon",
@@ -2692,26 +2691,6 @@ dependencies = [
"redox_syscall 0.5.3", "redox_syscall 0.5.3",
] ]
[[package]]
name = "libseat"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54a0adf8d8607a73a5b74cbe4132f57cb349e4bf860103cd089461bbcbc9907e"
dependencies = [
"errno",
"libseat-sys",
"log",
]
[[package]]
name = "libseat-sys"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3671cb5e03871f1d6bf0b3b5daa9275549e348fa6359e0f9adb910ca163d4c34"
dependencies = [
"pkg-config",
]
[[package]] [[package]]
name = "libudev-sys" name = "libudev-sys"
version = "0.1.4" version = "0.1.4"

View File

@@ -84,7 +84,7 @@ Rust and cargo are required, they can be installed from [rustup.rs](https://rust
**fedora:** **fedora:**
dnf install cmake clang-devel libinput-devel libseat-devel libgbm-devel libxkbcommon-devel systemd-devel libdrm-devel expat-devel pcre2-devel libzstd-devel gtk3-devel dnf install cmake clang-devel libxkbcommon-devel systemd-devel expat-devel pcre2-devel libzstd-devel gtk3-devel
make make
sudo make install sudo make install
@@ -93,7 +93,7 @@ Rust and cargo are required, they can be installed from [rustup.rs](https://rust
Works with KDE Plasma (without GTK packages) Works with KDE Plasma (without GTK packages)
zypper in -t pattern devel_basis zypper in -t pattern devel_basis
zypper in rustup make cmake clang-devel libinput-devel libseat-devel libgbm-devel libxkbcommon-devel systemd-devel libdrm-devel expat-devel pcre2-devel libzstd-devel gtk3-devel zypper in rustup make cmake clang-devel libxkbcommon-devel systemd-devel expat-devel pcre2-devel libzstd-devel gtk3-devel
make make
sudo make install sudo make install
@@ -101,7 +101,7 @@ Works with KDE Plasma (without GTK packages)
officially unsuported,but you can still try and test it by yourself(some features may not be available). officially unsuported,but you can still try and test it by yourself(some features may not be available).
sudo apt install libclang-dev libudev-dev libfontconfig-dev build-essential cmake libseat-dev libxkbcommon-dev libinput-dev libgbm-dev sudo apt install libclang-dev libudev-dev libfontconfig-dev build-essential cmake libxkbcommon-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
make make
sudo make install sudo make install

View File

@@ -46,11 +46,7 @@ BuildRequires: cmake
BuildRequires: rust BuildRequires: rust
BuildRequires: rust-std-static BuildRequires: rust-std-static
BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libinput)
BuildRequires: pkgconfig(libseat)
BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(libzstd)

View File

@@ -51,7 +51,6 @@ default-features = false
features = [ features = [
"gettext", "gettext",
"compat-1-2", "compat-1-2",
"backend-linuxkms",
"backend-winit-wayland", "backend-winit-wayland",
"renderer-winit-femtovg", "renderer-winit-femtovg",
# "renderer-skia-opengl", # "renderer-skia-opengl",