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:
parent
a0771542ec
commit
5634aa93bf
1 changed files with 2 additions and 7 deletions
|
@ -113,17 +113,12 @@ win32 {
|
||||||
nosoundoption = $$find(CONFIG, "nosound")
|
nosoundoption = $$find(CONFIG, "nosound")
|
||||||
count(nosoundoption, 0) {
|
count(nosoundoption, 0) {
|
||||||
message(Jack Audio Interface Enabled.)
|
message(Jack Audio Interface Enabled.)
|
||||||
|
CONFIG += link_pkgconfig
|
||||||
!exists(/usr/include/jack/jack.h) {
|
PKGCONFIG += jack
|
||||||
!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")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HEADERS += linux/sound.h
|
HEADERS += linux/sound.h
|
||||||
SOURCES += linux/sound.cpp
|
SOURCES += linux/sound.cpp
|
||||||
DEFINES += WITH_SOUND
|
DEFINES += WITH_SOUND
|
||||||
LIBS += -ljack
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Linux is our source distribution, include sources from other OSs
|
# Linux is our source distribution, include sources from other OSs
|
||||||
|
|
Loading…
Add table
Reference in a new issue