fn main() {
println!("cargo:rerun-if-changed=build.rs");
#[cfg(feature = "native")]
{
require_library("gtk4", "4.0.1");
require_library("vte-2.91-gtk4", "0.70");
}
}
#[cfg(feature = "native")]
fn require_library(package: &str, minimum: &str) {
pkg_config::Config::new()
.atleast_version(minimum)
.cargo_metadata(false)
.probe(package)
.unwrap_or_else(|error| {
panic!(
"Lios native requires {package} >= {minimum} development files for the target. \
Install your distribution's GTK4/VTE GTK4 development packages, or run \
`cargo install lios && lios install`. GTK3 VTE is not interchangeable.\n{error}"
)
});
}