mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-07-28 11:48:53 +00:00
feat: build libsurvive rust function
This commit is contained in:
parent
bc17f2a7f7
commit
0106168146
3 changed files with 15 additions and 0 deletions
13
src/builders/build_libsurvive.rs
Normal file
13
src/builders/build_libsurvive.rs
Normal 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
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
use crate::{runner::Runner, profile::Profile};
|
use crate::{runner::Runner, profile::Profile};
|
||||||
|
|
||||||
|
// TODO: link non-system libsurvive
|
||||||
pub fn get_build_monado_runner(profile: Profile) -> Runner {
|
pub fn get_build_monado_runner(profile: Profile) -> Runner {
|
||||||
let runner = Runner::new(
|
let runner = Runner::new(
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
pub mod build_monado;
|
pub mod build_monado;
|
||||||
|
pub mod build_libsurvive;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue