This commit is contained in:
Philip Kristoffersen
2022-04-09 21:49:11 +02:00
committed by GitHub
parent 2a1523470f
commit a0c6fe0c8f
22 changed files with 2349 additions and 572 deletions
-18
View File
@@ -1,18 +0,0 @@
#[cfg(feature = "ui")]
use std::env;
#[cfg(feature = "ui")]
use std::path::PathBuf;
fn main() {
#[cfg(feature = "ui")]
{
println!("cargo:rerun-if-changed=gui/mainview.fl");
let g = fl2rust::Generator::default();
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
g.in_out(
"gui/mainview.fl",
out_path.join("mainview.rs").to_str().unwrap(),
)
.expect("Failed to generate rust from fl file!");
}
}