diff --git a/src/depcheck/common.rs b/src/depcheck/common.rs index c1ff762..7c5bf0b 100644 --- a/src/depcheck/common.rs +++ b/src/depcheck/common.rs @@ -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(), diff --git a/src/depcheck/wivrn_deps.rs b/src/depcheck/wivrn_deps.rs index 7310a58..f8b53ac 100644 --- a/src/depcheck/wivrn_deps.rs +++ b/src/depcheck/wivrn_deps.rs @@ -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 { @@ -22,6 +22,7 @@ fn wivrn_deps() -> Vec { dep_vulkan_headers(), dep_libxcb(), dep_libx11(), + dep_libxrandr(), Dependency { name: "patch".into(), dep_type: DepType::Executable,