Merge branch 'feat/RiQuY-check-opensuse-libs' into 'main'

feat: Add dependency warning when dri_interface.h file is not found and name_matcher distro detection for openSUSE

See merge request gabmus/envision!49
This commit is contained in:
GabMus 2024-06-25 04:05:38 +00:00
commit b594f75778
2 changed files with 5 additions and 1 deletions

View file

@ -64,6 +64,7 @@ fn monado_deps() -> Vec<Dependency> {
(LinuxDistro::Arch, "mesa".into()), (LinuxDistro::Arch, "mesa".into()),
(LinuxDistro::Debian, "mesa-common-dev".into()), (LinuxDistro::Debian, "mesa-common-dev".into()),
(LinuxDistro::Fedora, "mesa-libGL-devel".into()), (LinuxDistro::Fedora, "mesa-libGL-devel".into()),
(LinuxDistro::Suse, "Mesa-dri-devel".into()),
]), ]),
}, },
] ]

View file

@ -84,7 +84,10 @@ impl LinuxDistro {
if s.contains("alpine") || s.contains("postmarket") { if s.contains("alpine") || s.contains("postmarket") {
return Some(Self::Alpine); return Some(Self::Alpine);
} }
// TODO: detect suse, sles, rhel, nix if s.contains("suse") {
return Some(Self::Suse);
}
// TODO: detect sles, rhel, nix
None None
} }