From b95ba0ffb1dd2b609ee4f4e6307f4a4a007e1ff5 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Thu, 22 Mar 2018 20:48:54 +0000 Subject: [PATCH] support native Jack support under Windows using the CONFIG switch "jackonwindows" --- Jamulus.pro | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Jamulus.pro b/Jamulus.pro index 2627ab0a..839c8486 100755 --- a/Jamulus.pro +++ b/Jamulus.pro @@ -44,6 +44,25 @@ win32 { advapi32.lib \ winmm.lib \ ws2_32.lib + + # replace ASIO with jack if requested + contains(CONFIG, "jackonwindows") { + message(Using Jack instead of ASIO.) + + !exists("C:/Program Files (x86)/Jack/includes/jack/jack.h") { + message(Warning: jack.h was not found at the usual place, maybe jack is not installed) + } + + HEADERS -= windows/sound.h + SOURCES -= windows/sound.cpp + HEADERS += linux/sound.h + SOURCES += linux/sound.cpp + DEFINES += WITH_SOUND + DEFINES += JACK_REPLACES_ASIO + DEFINES += _STDINT_H # supposed to solve compilation error in systemdeps.h + INCLUDEPATH += "C:/Program Files (x86)/Jack/includes" + LIBS += "C:/Program Files (x86)/Jack/lib/libjack64.lib" + } } else:macx { QT += macextras HEADERS += mac/sound.h