mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
19 lines
490 B
Rust
19 lines
490 B
Rust
#[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!");
|
|
}
|
|
}
|