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
dnf install meson qt5-qtbase-devel rtaudio-devel jack-audio-connection-kit-devel
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__'
moc_h = ['src/DataProtocol.h',
moc_files = qt5.preprocess(moc_headers : moc_h)
src = ['src/DataProtocol.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