()
| 128 | } |
| 129 | |
| 130 | fn main() { |
| 131 | #[cfg(feature = "generate_binding")] |
| 132 | generate_binding(); |
| 133 | |
| 134 | let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); |
| 135 | let lib_out_path = Path::new(&out_path); |
| 136 | |
| 137 | let lib_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); |
| 138 | let lib_path = Path::new(&lib_path).join("lib"); |
| 139 | |
| 140 | let mut options = fs_extra::dir::CopyOptions::new(); |
| 141 | options.overwrite = true; |
| 142 | options.copy_inside = true; |
| 143 | fs_extra::dir::copy(lib_path, lib_out_path, &options).unwrap(); |
| 144 | |
| 145 | println!("cargo:rustc-link-search=native={}/lib", out_path.display()); |
| 146 | println!("cargo:rustc-link-lib=dylib=BoardController"); |
| 147 | println!("cargo:rustc-link-lib=dylib=DataHandler"); |
| 148 | println!("cargo:rustc-link-lib=dylib=MLModule"); |
| 149 | } |
nothing calls this directly
no test coverage detected