forked from jacktrip/jacktrip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
45 lines (41 loc) · 1.22 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
project('jacktrip', 'cpp', version: '1.2')
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Core', 'Network'])
jack_dep = dependency('jack')
rtaudio_dep = dependency('rtaudio')
thread_dep = dependency('threads')
defines = []
if host_machine.system() == 'linux'
defines += '-D__LINUX__'
elif host_machine.system() == 'osx'
defines += '-D__MAC_OSX__'
elif host_machine.system() == 'windows'
defines += '-D__WIN_32__'
endif
moc_h = ['src/DataProtocol.h',
'src/JackTrip.h',
'src/JackTripWorker.h',
'src/JackTripWorkerMessages.h',
'src/NetKS.h',
'src/PacketHeader.h',
'src/Settings.h',
'src/UdpDataProtocol.h',
'src/UdpMasterListener.h']
moc_files = qt5.preprocess(moc_headers : moc_h)
src = ['src/DataProtocol.cpp',
'src/JMess.cpp',
'src/JackTrip.cpp',
'src/jacktrip_globals.cpp',
'src/jacktrip_main.cpp',
'src/JackTripThread.cpp',
'src/JackTripWorker.cpp',
'src/LoopBack.cpp',
'src/PacketHeader.cpp',
'src/ProcessPlugin.cpp',
'src/RingBuffer.cpp',
'src/Settings.cpp',
'src/UdpDataProtocol.cpp',
'src/UdpMasterListener.cpp',
'src/AudioInterface.cpp',
'src/JackAudioInterface.cpp']
executable('jacktrip', src, moc_files, dependencies: [qt5_dep, jack_dep, rtaudio_dep, thread_dep], cpp_args: defines, install: true )