Work on macro binding generation, some cleanup needed, rename runner to plugin

This commit is contained in:
Isaac Clayton 2022-06-03 10:33:11 +02:00
parent dda6dcb3b8
commit f6a9558c5c
22 changed files with 330 additions and 59 deletions

View file

@ -0,0 +1,24 @@
use std::env;
use std::process::Command;
fn main() {
let cwd = std::env::current_dir().unwrap();
let plugin_workspace = cwd.join("plugin").join("Cargo.toml");
Command::new("cargo")
.args(&["clean", "--manifest-path"])
.arg(&plugin_workspace)
.status()
.unwrap();
Command::new("cargo")
.args(&[
"build",
"--release",
"--target",
"wasm32-unknown-unknown",
"--manifest-path",
])
.arg(&plugin_workspace)
.status()
.unwrap();
println!("cargo:warning=recompiling plugins")
}