Skip to content

Commit d6acd63

Browse files
authored
Jamulus.pro jackonwindows support improvements (jamulussoftware#1718)
* adding win64 platform * modif win64 target to QT ARCH X86_64 version * i386 + hard coded path + cross compile * adding win64 platform * modif win64 target to QT ARCH X86_64 version * i386 + hard coded path + cross compile * libjack-name -> libjackname * indentation -> space/tab correction * x86 correction + message for JACK * cross compilation correction + add programfilesdir + indent * space + exists + quotes * using else + 1 check for jack.h * Changing not exists to exists logic
1 parent 427a61f commit d6acd63

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

Jamulus.pro

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,22 @@ win32 {
9393

9494
# replace ASIO with jack if requested
9595
contains(CONFIG, "jackonwindows") {
96-
message(Using Jack instead of ASIO.)
97-
98-
!exists("C:/Program Files (x86)/Jack/includes/jack/jack.h") {
99-
message(Warning: jack.h was not found at the usual place, maybe jack is not installed)
96+
contains(QT_ARCH, "i386") {
97+
exists("C:/Program Files (x86)") {
98+
message("Cross compilation build")
99+
programfilesdir = "C:/Program Files (x86)"
100+
} else {
101+
message("Native i386 build")
102+
programfilesdir = "C:/Program Files"
103+
}
104+
libjackname = "libjack.lib"
105+
} else {
106+
message("Native x86_64 build")
107+
programfilesdir = "C:/Program Files"
108+
libjackname = "libjack64.lib"
109+
}
110+
!exists("$${programfilesdir}/JACK2/include/jack/jack.h") {
111+
message("Warning: jack.h was not found in the expected location ($${programfilesdir}). Ensure that the right JACK2 variant is installed (32bit vs. 64bit).")
100112
}
101113

102114
HEADERS -= windows/sound.h
@@ -106,9 +118,10 @@ win32 {
106118
DEFINES += WITH_JACK
107119
DEFINES += JACK_REPLACES_ASIO
108120
DEFINES += _STDINT_H # supposed to solve compilation error in systemdeps.h
109-
INCLUDEPATH += "C:/Program Files (x86)/Jack/includes"
110-
LIBS += "C:/Program Files (x86)/Jack/lib/libjack64.lib"
121+
INCLUDEPATH += "$${programfilesdir}/JACK2/include"
122+
LIBS += "$${programfilesdir}/JACK2/lib/$${libjackname}"
111123
}
124+
112125
} else:macx {
113126
contains(CONFIG, "server_bundle") {
114127
message(The generated application bundle will run a server instance.)
@@ -151,7 +164,7 @@ win32 {
151164

152165
!exists(/usr/include/jack/jack.h) {
153166
!exists(/usr/local/include/jack/jack.h) {
154-
message(Warning: jack.h was not found at the usual place, maybe jack is not installed)
167+
message("Warning: jack.h was not found at the usual place, maybe jack is not installed")
155168
}
156169
}
157170

0 commit comments

Comments
 (0)