Skip to content

Commit

Permalink
Try something
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetthardwick committed Mar 6, 2024
1 parent 21df683 commit 93fdf85
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions obs-sys/build_mac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ pub fn find_mac_obs_lib() {
if let Ok(meta) = fs::metadata(c.join("libobs.framework")) {
if meta.is_dir() {
println!("cargo:rustc-link-search=framework={}", c.display());
println!("cargo:rustc-link-lib=framework=libobs");
println!(
"cargo:rustc-link-lib=framework={}",
c.join("libobs.framework").display()
);
found_obs = true;
}
}
Expand All @@ -49,14 +52,6 @@ pub fn find_mac_obs_lib() {
found_obs_frontend = true;
}
}

if let Ok(meta) = fs::metadata(c.join("libobs-frontend-api.framework")) {
if meta.is_dir() {
println!("cargo:rustc-link-search=framework={}", c.display());
println!("cargo:rustc-link-lib=framework=libobs-frontend-api");
found_obs_frontend = true;
}
}
}
}

Expand Down

0 comments on commit 93fdf85

Please sign in to comment.