mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-11 10:38:52 +00:00
feat: can build opencomposite
This commit is contained in:
parent
5314c7a89f
commit
f373b725b4
5 changed files with 30 additions and 5 deletions
17
scripts/build_opencomposite.sh
Normal file
17
scripts/build_opencomposite.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
# exit on error
|
||||
# echo commands
|
||||
set -ev
|
||||
|
||||
REPO_DIR=$1
|
||||
|
||||
"$(dirname -- "$0")/_clone_or_pull.sh" "https://gitlab.com/znixian/OpenOVR.git" "$REPO_DIR"
|
||||
|
||||
cd "$REPO_DIR"
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||
make clean
|
||||
make -j$(nproc)
|
||||
make install
|
|
@ -1,6 +1,5 @@
|
|||
use crate::{runner::Runner, profile::Profile};
|
||||
|
||||
// TODO: link non-system libsurvive
|
||||
pub fn get_build_monado_runner(profile: Profile) -> Runner {
|
||||
let runner = Runner::new(
|
||||
None,
|
||||
|
|
12
src/builders/build_opencomposite.rs
Normal file
12
src/builders/build_opencomposite.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
use crate::{profile::Profile, runner::Runner};
|
||||
|
||||
pub fn get_build_opencomposite_runner(profile: Profile) -> Runner {
|
||||
let runner = Runner::new(
|
||||
None,
|
||||
"./scripts/build_opencomposite.sh".into(),
|
||||
vec![
|
||||
profile.opencomposite_path,
|
||||
]
|
||||
);
|
||||
runner
|
||||
}
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
pub mod build_monado;
|
||||
pub mod build_libsurvive;
|
||||
|
||||
pub mod build_opencomposite;
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
|
||||
pub mod monado_deps;
|
||||
pub mod libsurvive_deps;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue