Skip to content

Commit

Permalink
Last time?
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetthardwick committed Mar 6, 2024
1 parent 4e9a282 commit 21df683
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions obs-sys/build_mac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ pub fn find_mac_obs_lib() {

for c in candidates.iter() {
if !found_obs {
if let Ok(meta) = fs::metadata(c.join("obs.dylib")) {
if let Ok(meta) = fs::metadata(c.join("libobs.0.dylib")) {
if meta.is_file() {
println!("cargo:rustc-link-search=dylib={}", c.display());
println!("cargo:rustc-link-lib=dylib=obs");
println!("cargo:rustc-link-lib=dylib=obs.0");
found_obs = true;
}
}
Expand All @@ -42,10 +42,10 @@ pub fn find_mac_obs_lib() {
}

if !found_obs_frontend {
if let Ok(meta) = fs::metadata(c.join("obs-frontend-api.dylib")) {
if let Ok(meta) = fs::metadata(c.join("libobs-frontend-api.1.dylib")) {
if meta.is_file() {
println!("cargo:rustc-link-search=native={}", c.display());
println!("cargo:rustc-link-lib=dylib=obs-frontend-api");
println!("cargo:rustc-link-lib=dylib=obs-frontend-api.1");
found_obs_frontend = true;
}
}
Expand Down

0 comments on commit 21df683

Please sign in to comment.