mirror of
https://github.com/GuillemCastro/spotify-dl.git
synced 2024-11-10 05:20:25 +01:00
12 lines
414 B
Rust
12 lines
414 B
Rust
use std::env;
|
|
use std::fs;
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
let library = pkg_config::Config::new().probe("flac").unwrap();
|
|
let profile = env::var_os("PROFILE").unwrap();
|
|
let from = library.link_paths.get(0).unwrap().join("libFLAC.so");
|
|
let to = Path::new("target").join(profile).join("deps").join("libflac.so");
|
|
fs::copy(from, to).unwrap();
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
}
|