use std::path::PathBuf; use std::{env, fs}; fn main() { let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); fs::copy("bin/libmipsmcu.a", out_dir.join("libmipsmcu.a")).unwrap(); println!("cargo:rustc-link-search={}", out_dir.display()); println!("cargo:rustc-link-lib=static=mipsmcu"); }