mirror of
https://github.com/wez/wezterm.git
synced 2024-12-19 11:21:39 +03:00
21 lines
425 B
Rust
21 lines
425 B
Rust
use pkg_config;
|
|
|
|
fn main() {
|
|
if let Ok(lib) = pkg_config::Config::new()
|
|
.atleast_version("2.11.1")
|
|
.find("fontconfig")
|
|
{
|
|
println!(
|
|
"cargo:incdir={}",
|
|
lib.include_paths[0]
|
|
.clone()
|
|
.into_os_string()
|
|
.into_string()
|
|
.unwrap()
|
|
);
|
|
return;
|
|
}
|
|
|
|
panic!("You need to install fontconfig");
|
|
}
|