gpui-component/crates/wef/examples/wef-winit/build.rs
2025-06-18 10:46:55 +08:00

13 lines
382 B
Rust

use embed_manifest::{embed_manifest, new_manifest};
fn main() {
if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
embed_manifest(new_manifest("Wef.Example.Winit")).expect("unable to embed manifest file");
}
if cfg!(target_os = "linux") {
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
}
println!("cargo:rerun-if-changed=build.rs");
}