Use pkg-config to find Jack

The hardcoded directories for jack are not always correct.
It is more flexible to use pkg-config to find Jack.
This commit is contained in:
Jos van den Oever 2020-03-25 23:00:47 +01:00 committed by GitHub
parent a0771542ec
commit 5634aa93bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,17 +113,12 @@ win32 {
nosoundoption = $$find(CONFIG, "nosound")
count(nosoundoption, 0) {
message(Jack Audio Interface Enabled.)
!exists(/usr/include/jack/jack.h) {
!exists(/usr/local/include/jack/jack.h) {
message("Warning: jack.h was not found at the usual place, maybe the jack dev packet is missing")
}
}
CONFIG += link_pkgconfig
PKGCONFIG += jack
HEADERS += linux/sound.h
SOURCES += linux/sound.cpp
DEFINES += WITH_SOUND
LIBS += -ljack
}
# Linux is our source distribution, include sources from other OSs