MCPcopy Create free account
hub / github.com/Recordscript/recordscript / link_pkg_config

Function link_pkg_config

libs/scrap/build.rs:8–20  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

6
7#[cfg(all(target_os = "linux", feature = "linux-pkg-config"))]
8fn 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")))]
22fn link_pkg_config(_name: &str) -> Vec<PathBuf> {
23 unimplemented!()

Callers 1

find_packageFunction · 0.85

Calls 1

as_strMethod · 0.80

Tested by

no test coverage detected