This commit is contained in:
2022-03-19 19:33:41 +08:00
parent 672066a909
commit 372888cae4
2 changed files with 5 additions and 1 deletions

View File

@@ -35,7 +35,6 @@ fn main() {
let mut f = File::open(dep_path).unwrap();
let mut s = String::from("");
f.read_to_string(&mut s).unwrap();
println!("cargo:rustc-link-lib=utils");
let l: Vec<&str> = s.split(";").collect();
for i in l.iter() {
let mut p = PathBuf::from(i);
@@ -194,4 +193,8 @@ fn main() {
.write_to_file(out_path.join("ugoira.rs"))
.expect("Couldn't write bindings!");
}
#[cfg(any(feature = "exif", feature = "ugoira"))]
{
println!("cargo:rustc-link-lib=utils");
}
}