Hacky auto build for rust yunq.
This commit is contained in:
parent
2cbf871d09
commit
370ba9ae40
3 changed files with 22 additions and 105 deletions
18
rust/lib/yellowstone/build.rs
Normal file
18
rust/lib/yellowstone/build.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
use std::process::Command;
|
||||
|
||||
fn main() {
|
||||
let out = std::env::var("OUT_DIR").unwrap() + "/yunq.rs";
|
||||
|
||||
let status = Command::new("cargo")
|
||||
.current_dir("../../../yunq/rust")
|
||||
.arg("run")
|
||||
.arg("--")
|
||||
.arg("--input-path")
|
||||
.arg("../../sys/yellowstone/lib/yellowstone/yellowstone.yunq")
|
||||
.arg("--output-path")
|
||||
.arg(out)
|
||||
.status()
|
||||
.expect("Failed to start execution");
|
||||
|
||||
assert!(status.success());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue