1fn main() {
2 if cfg!(target_os = "macos") {
3 println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15.7");
4
5 println!("cargo:rerun-if-env-changed=ZED_BUNDLE");
6 if std::env::var("ZED_BUNDLE").ok().as_deref() == Some("true") {
7 // Find WebRTC.framework in the Frameworks folder when running as part of an application bundle.
8 println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../Frameworks");
9 } else {
10 // Find WebRTC.framework as a sibling of the executable when running outside of an application bundle.
11 println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");
12 }
13 }
14}