Setup UI within feature UI

The feature is not enabled yet.
It will be enabled by default later when ui is ready.
This commit is contained in:
Philip Kristoffersen
2021-09-27 22:29:05 +02:00
parent dc90642e13
commit aeb1251b77
6 changed files with 125 additions and 6 deletions
+9
View File
@@ -0,0 +1,9 @@
use std::path::PathBuf;
use std::env;
fn main() {
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!");
}