Initial Commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
use std::{env, path::PathBuf};
|
||||
|
||||
fn main() {
|
||||
let root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
|
||||
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
root.join("vosk-linux-x86_64-0.3.45").display()
|
||||
);
|
||||
println!("cargo:rustc-link-lib=dylib=vosk");
|
||||
|
||||
println!("cargo:rerun-if-changed=vosk-linux-x86_64-0.3.45/vosk_api.h");
|
||||
}
|
||||
Reference in New Issue
Block a user