#![allow(clippy::disallowed_methods, reason = "build scripts are exempt")]
#[cfg(windows)]
fn main() {
let resource_dir = std::path::Path::new("resources/windows");
let rc_file = resource_dir.join("gpui_interop.rc");
println!("cargo:rerun-if-changed={}", rc_file.display());
println!(
"cargo:rerun-if-changed={}",
resource_dir.join("gpui_interop.manifest.xml").display()
);
embed_resource::compile_for_everything(
rc_file,
embed_resource::ParamsIncludeDirs([resource_dir]),
)
.manifest_required()
.unwrap();
}
#[cfg(not(windows))]
fn main() {}