8 lines
349 B
Rust
8 lines
349 B
Rust
// Tells the build scripts of apps that depend on sf-ui where its Slint
|
|
// library is: they read it as DEP_SF_UI_UI_DIR and map it to "@sf-ui".
|
|
fn main() {
|
|
let dir = std::path::Path::new(&std::env::var("CARGO_MANIFEST_DIR").unwrap()).join("ui");
|
|
println!("cargo:ui_dir={}", dir.display());
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
}
|