mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-04 02:05:31 +00:00
ee50d22add
allows `cargo run -p storybook` to work on Windows Release Notes: - N/A
18 lines
757 B
Rust
18 lines
757 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");
|
|
|
|
if std::env::var("CARGO_CFG_TARGET_ENV").ok() == Some("msvc".to_string()) {
|
|
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());
|
|
println!("cargo:rustc-link-arg-bins=/MANIFEST:EMBED");
|
|
|
|
println!(
|
|
"cargo:rustc-link-arg-bins=/MANIFESTINPUT:{}",
|
|
manifest.canonicalize().unwrap().display()
|
|
);
|
|
}
|
|
}
|