rework lib
This commit is contained in:
@@ -2,4 +2,7 @@
|
||||
name = "open_wrapper"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
build = "build.rs"
|
||||
|
||||
|
||||
[dependencies]
|
||||
libloading = "0.9.0"
|
||||
@@ -1,20 +0,0 @@
|
||||
use std::{env, path::PathBuf};
|
||||
|
||||
fn main() {
|
||||
let manifest_dir =
|
||||
PathBuf::from(env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR must be set"));
|
||||
let lib_dir = manifest_dir.join("lib");
|
||||
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir.display());
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
|
||||
let open_lib = lib_dir.join("open.lib");
|
||||
if open_lib.exists() {
|
||||
println!("cargo:rerun-if-changed={}", open_lib.display());
|
||||
} else {
|
||||
println!(
|
||||
"cargo:warning=Expected to find open.lib in '{}'. Copy the vendor import library there.",
|
||||
lib_dir.display()
|
||||
);
|
||||
}
|
||||
}
|
||||
+803
-168
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user