Debian Codegraph @

third_party/rust/libdbus-sys/build.rs

raw
1 extern crate pkg_config;
2
3 fn main() {
4 // See https://github.com/joshtriplett/metadeps/issues/9 for why we don't use
5 // metadeps here, but instead keep this manually in sync with Cargo.toml.
6 if let Err(e) = pkg_config::Config::new().atleast_version("1.6").probe("dbus-1") {
7 eprintln!("pkg_config failed: {}", e);
8 eprintln!(
9 "One possible solution is to check whether packages\n\
10 'libdbus-1-dev' and 'pkg-config' are installed:\n\
11 On Ubuntu:\n\
12 sudo apt install libdbus-1-dev pkg-config\n\
13 On Fedora:\n\
14 sudo dnf install dbus-devel pkgconf-pkg-config\n"
15 );
16 panic!();
17 }
18 }