noita_entangled_worlds/noita-proxy/build.rs

12 lines
311 B
Rust
Raw Normal View History

fn main() {
#[cfg(target_os = "linux")]
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
let mut res = winresource::WindowsResource::new();
res.set_icon("assets/icon.ico");
res.compile().unwrap();
}
}