Debian Codegraph @

third_party/rust/alsa-sys/build.rs

raw
1 extern crate pkg_config;
2
3 fn main() {
4 if let Err(e) = pkg_config::probe_library("alsa") {
5 match e {
6 pkg_config::Error::Failure { .. } => panic! (
7 "Pkg-config failed - usually this is because alsa development headers are not installed.\n\n\
8 For Fedora users:\n# dnf install alsa-lib-devel\n\n\
9 For Debian/Ubuntu users:\n# apt-get install libasound2-dev\n\n\
10 pkg_config details:\n{}",
11 e
12 ),
13 _ => panic!("{}", e)
14 }
15 }
16 }