diff --git a/src/depcheck/mod.rs b/src/depcheck/mod.rs index 54da91d..002a8c8 100644 --- a/src/depcheck/mod.rs +++ b/src/depcheck/mod.rs @@ -16,6 +16,7 @@ pub enum DepType { Executable, Include, UdevRule, + Share, } #[derive(Debug, Clone, PartialEq, Eq)] @@ -49,6 +50,7 @@ impl Dependency { .collect(), DepType::Include => include_paths(), DepType::UdevRule => udev_rules_paths(), + DepType::Share => share_paths(), } { let path_s = &format!("{dir}/{fname}", dir = dir, fname = self.filename); let path = Path::new(&path_s); @@ -145,6 +147,10 @@ fn udev_rules_paths() -> Vec { vec!["/usr/lib/udev/rules.d".into()] } +fn share_paths() -> Vec { + vec!["/usr/share".into()] +} + #[cfg(test)] mod tests { use super::{DepType, Dependency}; diff --git a/src/depcheck/monado_deps.rs b/src/depcheck/monado_deps.rs index 8b8b217..fce59f7 100644 --- a/src/depcheck/monado_deps.rs +++ b/src/depcheck/monado_deps.rs @@ -32,8 +32,8 @@ fn monado_deps() -> Vec { }, Dependency { name: "wayland-protocols".into(), - dep_type: DepType::Include, - filename: "wayland-protocols/drm-lease-v1-enum.h".into(), + dep_type: DepType::Share, + filename: "wayland-protocols/staging/drm-lease/drm-lease-v1.xml".into(), packages: HashMap::from([ (LinuxDistro::Arch, "wayland-protocols".into()), (LinuxDistro::Debian, "wayland-protocols".into()),