| 6 | |
| 7 | #[cfg(all(target_os = "linux", feature = "linux-pkg-config"))] |
| 8 | fn link_pkg_config(name: &str) -> Vec<PathBuf> { |
| 9 | // sometimes an override is needed |
| 10 | let pc_name = match name { |
| 11 | "libvpx" => "vpx", |
| 12 | _ => name, |
| 13 | }; |
| 14 | let lib = pkg_config::probe_library(pc_name) |
| 15 | .expect(format!( |
| 16 | "unable to find '{pc_name}' development headers with pkg-config (feature linux-pkg-config is enabled). |
| 17 | try installing '{pc_name}-dev' from your system package manager.").as_str()); |
| 18 | |
| 19 | lib.include_paths |
| 20 | } |
| 21 | #[cfg(not(all(target_os = "linux", feature = "linux-pkg-config")))] |
| 22 | fn link_pkg_config(_name: &str) -> Vec<PathBuf> { |
| 23 | unimplemented!() |