Skip to content

Commit

Permalink
fix: fucking lib
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 8, 2024
1 parent ac5a15a commit 8b9b051
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions screenpipe-vision/build.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
use std::env;

#[cfg(target_os = "macos")]
fn main() {
println!("cargo:rustc-link-lib=dylib=screenpipe");

// let destination = env::var("DESTINATION").unwrap_or_default();
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../lib");
// Add the library search path
println!("cargo:rustc-link-search=native=screenpipe-vision/lib");

// if destination == "brew" {
// println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../lib");
// } else if destination == "tauri" {
// println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../Frameworks");
// } else {
// println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../../screenpipe-vision/lib");
// }
// Set the rpath
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../lib");
}

#[cfg(not(target_os = "macos"))]
Expand Down

0 comments on commit 8b9b051

Please sign in to comment.