逻辑修改
This commit is contained in:
9
build.rs
Normal file
9
build.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
fn main(){
|
||||
use std::path::PathBuf;
|
||||
use std::env;
|
||||
|
||||
println!("cargo:rerun-if-changed=src/ui/main.fl");
|
||||
let g = fl2rust::Generator::default();
|
||||
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
|
||||
g.in_out("src/ui/main.fl", out_path.join("main_ui.rs").to_str().unwrap()).expect("Failed to generate ui code");
|
||||
}
|
||||
Reference in New Issue
Block a user