File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Possible names/install locations of libjack, according to:
4
4
# https://github.com/x42/weakjack/blob/master/weak_libjack.c#L108
5
- proc getJackLibName : string =
6
- when system.hostOS == " windows" :
7
- when sizeof (int ) == 4 :
8
- result = " libjack.dll"
9
- else :
10
- result = " libjack64.dll"
11
- elif system.hostOS == " macosx" :
12
- result = " (|/usr/local/lib/|/opt/homebrew/lib/|/opt/homebrew/opt/jack/lib/|/opt/local/lib/)libjack.dylib"
5
+ when defined (windows):
6
+ when sizeof (int ) == 4 :
7
+ const soname = " (|lib)jack.dll"
13
8
else :
14
- result = " libjack.so.0"
9
+ const soname = " (|lib)jack64.dll"
10
+ elif defined (macosx):
11
+ const soname = " libjack.dylib"
12
+ else :
13
+ const soname = " libjack.so.0"
15
14
16
- {.push dynlib : getJackLibName () .}
15
+ {.push dynlib : soname .}
17
16
18
17
# ------------------------------ Constants --------------------------------
19
18
You can’t perform that action at this time.
0 commit comments