feat: dri_interface and libudev dependency for monado

This commit is contained in:
Gabriele Musco 2024-06-14 07:34:20 +02:00
commit d2c1f5b4a5
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
3 changed files with 28 additions and 13 deletions

View file

@ -194,3 +194,17 @@ pub fn dep_opencv() -> Dependency {
]),
}
}
pub fn dep_libudev() -> Dependency {
Dependency {
name: "libudev".into(),
dep_type: DepType::Include,
filename: "libudev.h".into(),
packages: HashMap::from([
(LinuxDistro::Arch, "systemd-libs".into()),
(LinuxDistro::Debian, "libudev-dev".into()),
(LinuxDistro::Fedora, "systemd-devel".into()),
(LinuxDistro::Gentoo, "virtual/libudev".into()),
]),
}
}

View file

@ -2,7 +2,7 @@ use crate::{
depcheck::{DepType, Dependency, DependencyCheckResult},
dependencies::common::{
dep_cmake, dep_eigen, dep_gcc, dep_git, dep_glslang_validator, dep_gpp, dep_libdrm,
dep_ninja, dep_openxr, dep_vulkan_headers, dep_vulkan_icd_loader,
dep_libudev, dep_ninja, dep_openxr, dep_vulkan_headers, dep_vulkan_icd_loader,
},
linux_distro::LinuxDistro,
};
@ -55,6 +55,17 @@ fn monado_deps() -> Vec<Dependency> {
(LinuxDistro::Gentoo, "media-libs/libsdl2".into()),
]),
},
dep_libudev(),
Dependency {
name: "mesa-common-dev".into(),
dep_type: DepType::Include,
filename: "GL/internal/dri_interface.h".into(),
packages: HashMap::from([
(LinuxDistro::Arch, "mesa".into()),
(LinuxDistro::Debian, "mesa-common-dev".into()),
(LinuxDistro::Fedora, "mesa-libGL-devel".into()),
]),
},
]
}

View file

@ -2,7 +2,7 @@ use crate::{
depcheck::{DepType, Dependency, DependencyCheckResult},
dependencies::common::{
dep_cmake, dep_eigen, dep_gcc, dep_git, dep_glslang_validator, dep_gpp, dep_libdrm,
dep_ninja, dep_openxr, dep_vulkan_headers, dep_vulkan_icd_loader,
dep_libudev, dep_ninja, dep_openxr, dep_vulkan_headers, dep_vulkan_icd_loader,
},
linux_distro::LinuxDistro,
};
@ -120,17 +120,7 @@ fn wivrn_deps() -> Vec<Dependency> {
]),
},
dep_glslang_validator(),
Dependency {
name: "libudev".into(),
dep_type: DepType::Include,
filename: "libudev.h".into(),
packages: HashMap::from([
(LinuxDistro::Arch, "systemd-libs".into()),
(LinuxDistro::Debian, "libudev-dev".into()),
(LinuxDistro::Fedora, "systemd-devel".into()),
(LinuxDistro::Gentoo, "virtual/libudev".into()),
]),
},
dep_libudev(),
Dependency {
name: "gstreamer".into(),
dep_type: DepType::SharedObject,