#[cfg(windows)] fn main() { use common_util::get_version_for_rc use std::env use winres::{VersionInfo, WindowsResource} println!("cargo:rerun-if-changed=favicon.ico"); println!("cargo:rerun-if-changed=Cargo.toml"); { let mut res = WindowsResource::new() res.set_icon("favicon.ico"); let version = get_version_for_rc!() res.set_version_info(VersionInfo::PRODUCTVERSION, version); res.set_version_info(VersionInfo::FILEVERSION, version); res.compile().unwrap(); } } #[cfg(not(windows))] fn main() { }