pub fn embed_resource_unless_host_provides_it() {
if cfg!(feature = "windows-manifest-provided-by-host") {
return;
}
let resource_dir = std::path::Path::new("resources/windows");
let manifest = resource_dir.join("gpui.manifest.xml");
let rc_file = resource_dir.join("gpui.rc");
println!("cargo:rerun-if-changed={}", manifest.display());
println!("cargo:rerun-if-changed={}", rc_file.display());
embed_resource::compile(rc_file, embed_resource::ParamsIncludeDirs([resource_dir]))
.manifest_required()
.unwrap();
}