Skip to content

Commit

Permalink
use webrtc-d5afc4b (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom authored Nov 13, 2023
1 parent 86d007e commit 8ea07d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions webrtc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ fn main() {
println!("cargo:rustc-link-lib=framework=CoreVideo");
println!("cargo:rustc-link-lib=framework=OpenGL");
println!("cargo:rustc-link-lib=framework=Metal");
println!("cargo:rustc-link-lib=framework=MetalKit");
println!("cargo:rustc-link-lib=framework=QuartzCore");
println!("cargo:rustc-link-lib=framework=IOKit");
println!("cargo:rustc-link-lib=framework=IOSurface");
Expand All @@ -174,6 +175,7 @@ fn main() {
println!("cargo:rustc-link-lib=framework=OpenGLES");
println!("cargo:rustc-link-lib=framework=GLKit");
println!("cargo:rustc-link-lib=framework=Metal");
println!("cargo:rustc-link-lib=framework=MetalKit");
println!("cargo:rustc-link-lib=framework=Network");
println!("cargo:rustc-link-lib=framework=QuartzCore");

Expand Down
8 changes: 4 additions & 4 deletions webrtc-sys/build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use regex::Regex;
use reqwest::StatusCode;

pub const SCRATH_PATH: &str = "livekit_webrtc";
pub const WEBRTC_TAG: &str = "webrtc-0649214";
pub const WEBRTC_TAG: &str = "webrtc-d5afc4b";
pub const IGNORE_DEFINES: [&str; 2] = ["CR_CLANG_REVISION", "CR_XCODE_VERSION"];

pub fn target_os() -> String {
Expand Down Expand Up @@ -60,10 +60,10 @@ pub fn target_arch() -> String {
}

/// The full name of the webrtc library
/// e.g. webrtc-mac-x64-release (Same name on GH releases)
/// e.g. mac-x64-release (Same name on GH releases)
pub fn webrtc_triple() -> String {
let profile = if use_debug() { "debug" } else { "release" };
format!("webrtc-{}-{}-{}", target_os(), target_arch(), profile)
format!("{}-{}-{}", target_os(), target_arch(), profile)
}

/// Using debug builds of webrtc is still experimental for now
Expand Down Expand Up @@ -100,7 +100,7 @@ pub fn download_url() -> String {
format!(
"https://github.com/livekit/client-sdk-rust/releases/download/{}/{}.zip",
WEBRTC_TAG,
webrtc_triple()
format!("webrtc-{}", webrtc_triple())
)
}

Expand Down

0 comments on commit 8ea07d4

Please sign in to comment.