mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 11:35:48 +00:00
fix: add libxrandr dependency for wivrn
This commit is contained in:
parent
849f47a853
commit
f8a18e96f0
2 changed files with 16 additions and 1 deletions
|
@ -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(),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue