Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jack-sys: search for jack library with pkg-config #154

Merged
merged 2 commits into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jack-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ authors = ["Patrick Reisert"]
description = "Low-level binding to the JACK audio API."
repository = "https://github.com/RustAudio/rust-jack/tree/main/jack-sys"
license = "MIT OR Apache-2.0"
links = "jack"

[dependencies]
libc = "0.2"
libloading = "0.6"
lazy_static = "1.4"

[build-dependencies]
pkg-config = "0.3"
7 changes: 7 additions & 0 deletions jack-sys/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fn main() {
// pkg-config is required to find PipeWire's implementation of libjack
// Refer to https://github.com/RustAudio/rust-jack/issues/142 for details.
// Do not unwrap this because linking might still work if pkg-config is
// not installed, for example on Windows.
let _ = pkg_config::probe_library("jack");
}