Add icon to Windows build when cross-compiling
This commit is contained in:
parent
24e020be36
commit
b56c15fbe0
1 changed files with 3 additions and 3 deletions
6
build.rs
6
build.rs
|
@ -1,12 +1,12 @@
|
||||||
#[cfg(windows)]
|
#[cfg(target_os = "windows")]
|
||||||
extern crate winres;
|
extern crate winres;
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(target_os = "windows")]
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut res = winres::WindowsResource::new();
|
let mut res = winres::WindowsResource::new();
|
||||||
res.set_icon("icon.ico");
|
res.set_icon("icon.ico");
|
||||||
res.compile().unwrap();
|
res.compile().unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(not(target_os = "windows"))]
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue