feat: build libsurvive rust function

This commit is contained in:
Gabriele Musco 2023-06-11 12:42:55 +02:00
parent bc17f2a7f7
commit 0106168146
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,13 @@
use crate::{profile::Profile, runner::Runner};
use expect_dialog::ExpectDialog;
pub fn get_build_libsurvive_runner(profile: Profile) -> Runner {
let runner = Runner::new(
None,
"./scripts/build_libsurvive.sh".into(),
vec![profile
.libsurvive_path
.expect_dialog("Missing libsurvive path for given profile")],
);
runner
}

View file

@ -1,5 +1,6 @@
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

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