mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-26 00:19:46 +00:00
9e88155a48
use winresource for crates/zed and crates/storybook. tested on `x86_64-pc-windows-gnu`. on `x86_64-pc-windows-msvc` I receive a error message, that looks like a problem with my machine Release Notes: - N/A
25 lines
807 B
Rust
25 lines
807 B
Rust
fn main() {
|
|
// Find WebRTC.framework as a sibling of the executable when running outside of an application bundle.
|
|
// TODO: We shouldn't depend on WebRTC in editor
|
|
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");
|
|
|
|
#[cfg(target_os = "windows")]
|
|
{
|
|
#[cfg(target_env = "msvc")]
|
|
{
|
|
println!("cargo:rustc-link-arg=/stack:{}", 8 * 1024 * 1024);
|
|
}
|
|
|
|
let manifest = std::path::Path::new("../zed/resources/windows/manifest.xml");
|
|
println!("cargo:rerun-if-changed={}", manifest.display());
|
|
|
|
let mut res = winresource::WindowsResource::new();
|
|
res.set_manifest_file(manifest.to_str().unwrap());
|
|
|
|
if let Err(e) = res.compile() {
|
|
eprintln!("{}", e);
|
|
std::process::exit(1);
|
|
}
|
|
}
|
|
}
|