mirror of
https://github.com/wez/wezterm.git
synced 2024-12-19 11:21:39 +03:00
22 lines
439 B
Rust
22 lines
439 B
Rust
use pkg_config;
|
|
use std::env;
|
|
|
|
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");
|
|
}
|