rvsttd: model fetch mode, build from source, ~/.rvsttd convention
This commit is contained in:
+4
-3
@@ -1,9 +1,10 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn main() {
|
||||
let manifest_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
let lib_dir = manifest_dir.join("..").join("bench").join("moonshine-voice").join("lib");
|
||||
let include_dir = manifest_dir.join("..").join("bench").join("moonshine-voice").join("include");
|
||||
let home = std::env::var("HOME").unwrap_or_else(|_| "/root".to_string());
|
||||
let rvsttd_dir = PathBuf::from(&home).join(".rvsttd");
|
||||
let lib_dir = rvsttd_dir.join("lib");
|
||||
let include_dir = rvsttd_dir.join("include");
|
||||
let header = include_dir.join("moonshine-c-api.h");
|
||||
|
||||
println!("cargo:rerun-if-changed={}", header.display());
|
||||
|
||||
Reference in New Issue
Block a user