xmpd/xmpd-core/build.rs

12 lines
320 B
Rust
Raw Permalink Normal View History

2024-11-21 03:02:30 +00:00
use winresource::WindowsResource;
fn main() -> std::io::Result<()> {
if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
WindowsResource::new()
// This path can be absolute, or relative to your crate root.
.set_icon("../assets/icon.ico")
.compile()?;
}
Ok(())
}