2024-11-30 18:20:23 +00:00
|
|
|
--- ./ringrtc/src/rust/build.rs.orig
|
|
|
|
+++ ./ringrtc/src/rust/build.rs
|
2024-06-03 14:26:59 +00:00
|
|
|
@@ -79,6 +79,7 @@
|
|
|
|
|
2023-07-19 18:27:37 +00:00
|
|
|
if cfg!(feature = "native") {
|
2024-06-03 14:26:59 +00:00
|
|
|
let webrtc_dir = if cfg!(feature = "prebuilt_webrtc") {
|
|
|
|
+ panic!("trying to download prebuild webrtc");
|
|
|
|
if let Err(e) = fs::create_dir_all(&out_dir) {
|
|
|
|
panic!("Failed to create webrtc out directory: {:?}", e);
|
|
|
|
}
|
|
|
|
@@ -86,12 +87,12 @@
|
|
|
|
// Ignore build type since we only have release prebuilts
|
|
|
|
format!("{}/release/obj/", out_dir)
|
2023-07-19 18:27:37 +00:00
|
|
|
} else {
|
2024-06-03 14:26:59 +00:00
|
|
|
- format!("{}/{}/obj", out_dir, build_type)
|
|
|
|
+ format!("{}/{}", out_dir, build_type)
|
|
|
|
};
|
|
|
|
println!("cargo:rerun-if-changed={}", webrtc_dir);
|
|
|
|
println!("cargo:rerun-if-changed={}", config_dir());
|
|
|
|
println!("cargo:rustc-link-search=native={}", webrtc_dir);
|
2023-07-19 18:27:37 +00:00
|
|
|
- println!("cargo:rustc-link-lib=webrtc");
|
|
|
|
+ println!("cargo:rustc-link-lib=dylib=signaldeswebrtc");
|
|
|
|
|
|
|
|
if cfg!(target_os = "macos") {
|
|
|
|
println!("cargo:rustc-link-lib=dylib=c++");
|