mirror of
https://github.com/storytold/k4a-sys-temp.git
synced 2026-10-09 00:09:45 +00:00
Remove vendor/lib/linux contents because they are dynamic libraries and not static libraries.
This means they won't be linked against and the user still needs to have libk4a installed on their computer. I'm not sure about the windows side yet, if it's an import library or a static library so I will check that later.
This commit is contained in:
@@ -7,12 +7,12 @@ use std::path::PathBuf;
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=wrapper.h");
|
||||
if cfg!(target_os = "linux") {
|
||||
println!("cargo:rustc-link-search=native=./vendor/lib/linux");
|
||||
println!("cargo:rustc-link-lib=cdylib=k4a");
|
||||
}
|
||||
if cfg!(target_os = "windows") {
|
||||
println!("cargo:rustc-link-search=native=./vendor/lib/windows/{}", consts::ARCH);
|
||||
println!("cargo:rustc-link-lib=native=k4a");
|
||||
}
|
||||
println!("cargo:rustc-link-lib=static=k4a");
|
||||
|
||||
let bindings = bindgen::Builder::default()
|
||||
.header("wrapper.h")
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user