fix: add libxrandr dependency for wivrn
Some checks failed
/ cargo-clippy (push) Has been cancelled
/ appimage (push) Has been cancelled
/ cargo-test (push) Has been cancelled
/ cargo-fmtcheck (push) Has been cancelled

This commit is contained in:
Gabriele Musco 2024-09-09 07:14:58 +02:00
parent 849f47a853
commit f8a18e96f0
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
2 changed files with 16 additions and 1 deletions

View file

@ -255,6 +255,20 @@ pub fn dep_libx11() -> Dependency {
}
}
pub fn dep_libxrandr() -> Dependency {
Dependency {
name: "libxrandr".into(),
dep_type: DepType::Include,
filename: "X11/extensions/Xrandr.h".into(),
packages: HashMap::from([
(LinuxDistro::Arch, "libxrandr".into()),
(LinuxDistro::Debian, "libxrandr-dev".into()),
(LinuxDistro::Fedora, "libXrandr-devel".into()),
(LinuxDistro::Alpine, "libxrandr-dev".into()),
]),
}
}
pub fn dep_adb() -> Dependency {
Dependency {
name: "adb".into(),

View file

@ -6,7 +6,7 @@ use super::{
},
DepType, Dependency, DependencyCheckResult,
};
use crate::linux_distro::LinuxDistro;
use crate::{depcheck::common::dep_libxrandr, linux_distro::LinuxDistro};
use std::collections::HashMap;
fn wivrn_deps() -> Vec<Dependency> {
@ -22,6 +22,7 @@ fn wivrn_deps() -> Vec<Dependency> {
dep_vulkan_headers(),
dep_libxcb(),
dep_libx11(),
dep_libxrandr(),
Dependency {
name: "patch".into(),
dep_type: DepType::Executable,