From 8ce117f0b3fd4ceeb1d7058dde8793e4421ec076 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:44:50 +1000 Subject: trying to get rust bindgen working --- bindgen/rust/celeritas-sys/build.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bindgen/rust/celeritas-sys/build.rs') diff --git a/bindgen/rust/celeritas-sys/build.rs b/bindgen/rust/celeritas-sys/build.rs index 24b1d85..e8c54bd 100644 --- a/bindgen/rust/celeritas-sys/build.rs +++ b/bindgen/rust/celeritas-sys/build.rs @@ -46,15 +46,14 @@ fn main() { // TODO: we need to look based on OS // Tell cargo to look for shared libraries in the specified directory - let static_lib_path = "/home/joshua/repos/cel-core3/build".to_string(); + let static_lib_path = "/Users/josh/code/CodenameVentus/deps/cel-core/build".to_string(); // let static_lib_path = std::env::var("CELERITAS_CORE_LIB") // .unwrap_or("../../../build/macosx/arm64/debug".to_string()); println!("cargo:rustc-link-search={static_lib_path}"); - // Tell cargo to tell rustc to link the system bzip2 - // shared library. - println!("cargo:rustc-link-lib=dylib=celeritas"); + // Tell cargo to tell rustc to link the necc. libraries + println!("cargo:rustc-link-lib=celeritas"); println!("cargo:rustc-link-lib=glfw"); // The bindgen::Builder is the main entry point -- cgit v1.2.3-70-g09d2