feat: can build opencomposite

This commit is contained in:
Gabriele Musco 2023-06-15 17:18:02 +02:00
commit f373b725b4
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
5 changed files with 30 additions and 5 deletions

View 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

View file

@ -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,

View 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
}

View file

@ -1,4 +1,3 @@
pub mod build_monado;
pub mod build_libsurvive;
pub mod build_opencomposite;

View file

@ -1,4 +1,2 @@
pub mod monado_deps;
pub mod libsurvive_deps;