Unverified Commit 3ce9b659 authored by cchafe's avatar cchafe Committed by GitHub
Browse files

Merge pull request #68 from jacktrip/meson

Meson build support
parents 69196d0b 8e66b26d
# Build and Installation Instructions with Meson
## Install Dependencies
Fedora:
dnf install meson qt5-qtbase-devel rtaudio-devel jack-audio-connection-kit-devel
Debian/Ubuntu:
apt install meson build-essential qtbase5-dev librtaudio-dev libjack-jackd2-dev
MacOS with brew (not tested):
brew install meson qt rt-audio jack
## Build
Prepare your build directory (by default debug and nonoptimized):
meson builddir
Now build with:
ninja -C builddir
Install with:
ninja -C builddir install
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 )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment