1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-19 11:21:39 +03:00
wezterm/deps/fontconfig/build.rs
2019-03-23 10:51:09 -07:00

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");
}