mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-07-28 11:48:53 +00:00
feat: check for monado dependencies
This commit is contained in:
parent
15f4548999
commit
e46e13197f
3 changed files with 74 additions and 0 deletions
3
src/dependencies/mod.rs
Normal file
3
src/dependencies/mod.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
pub mod monado_deps;
|
||||
|
70
src/dependencies/monado_deps.rs
Normal file
70
src/dependencies/monado_deps.rs
Normal file
|
@ -0,0 +1,70 @@
|
|||
use crate::depcheck::{check_dependency, DepType, Dependency, DependencyCheckResult, check_dependencies};
|
||||
|
||||
pub fn monado_deps() -> Vec<Dependency> {
|
||||
vec![
|
||||
Dependency {
|
||||
name: "libdrm".into(),
|
||||
dep_type: DepType::SharedObject,
|
||||
filename: "libdrm.so".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "libgl".into(),
|
||||
dep_type: DepType::SharedObject,
|
||||
filename: "libdrm.so".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "openxr".into(),
|
||||
dep_type: DepType::SharedObject,
|
||||
filename: "libopenxr_loader.so".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "vulkan-icd-loader".into(),
|
||||
dep_type: DepType::SharedObject,
|
||||
filename: "libvulkan.so".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "wayland".into(),
|
||||
dep_type: DepType::SharedObject,
|
||||
filename: "libwayland-client.so".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "cmake".into(),
|
||||
dep_type: DepType::Executable,
|
||||
filename: "cmake".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "eigen".into(),
|
||||
dep_type: DepType::Include,
|
||||
filename: "eigen3/Eigen/src/Core/EigenBase.h".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "git".into(),
|
||||
dep_type: DepType::Executable,
|
||||
filename: "git".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "ninja".into(),
|
||||
dep_type: DepType::Executable,
|
||||
filename: "ninja".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "shaderc".into(),
|
||||
dep_type: DepType::Executable,
|
||||
filename: "glslc".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "vulkan-headers".into(),
|
||||
dep_type: DepType::Include,
|
||||
filename: "vulkan/vulkan.h".into(),
|
||||
},
|
||||
Dependency {
|
||||
name: "vulkan-headers".into(),
|
||||
dep_type: DepType::Include,
|
||||
filename: "vulkan/vulkan.h".into(),
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
pub fn check_monado_deps() -> Vec<DependencyCheckResult> {
|
||||
check_dependencies(monado_deps())
|
||||
}
|
|
@ -9,6 +9,7 @@ pub mod constants;
|
|||
pub mod file_utils;
|
||||
pub mod profiles;
|
||||
pub mod depcheck;
|
||||
pub mod dependencies;
|
||||
|
||||
fn main() {
|
||||
MainWin::run(Settings::default());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue