-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmeson.build
46 lines (35 loc) · 1.64 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
46
project('recidia', ['c', 'cpp'], default_options : ['cpp_std=c++17'])
cc = meson.get_compiler('cpp')
gsl = dependency('gsl')
fftw = dependency('fftw3')
threads = dependency('threads')
curses = dependency('ncursesw')
libconfig = dependency('libconfig++')
shaderc = dependency('shaderc')
audio_check = false
pipewire = dependency('libpipewire-0.3', required : false)
if pipewire.found()
add_project_arguments('-D PIPEWIRE', language : 'c')
audio_check = true
endif
pulse = dependency('libpulse', required : false)
pulse_simple = dependency('libpulse-simple', required : false)
if not pipewire.found()
if pulse.found() and pulse_simple.found()
add_project_arguments('-D PULSEAUDIO', language : 'c')
audio_check = true
endif
endif
portaudio = dependency('portaudio-2.0', required : false)
if portaudio.found()
add_project_arguments('-D PORTAUDIO', language : 'c')
audio_check = true
endif
assert(audio_check, 'You need PulseAudio and/or PortAudio')
qt6 = dependency('qt6', modules: ['Core', 'Gui', 'Widgets'])
# add_project_arguments('-march=native', '-mtune=generic', '-O1', '-pipe', '-fno-plt', '-fexceptions', '-Wp,-D_FORTIFY_SOURCE=2', '-Wformat', '-Werror=format-security', '-fstack-clash-protection', '-fcf-protection', language : 'cpp')
executable(meson.project_name(), ['src/main.cpp', 'src/audio.c', 'src/processing.cpp',
'src/curses.cpp', 'src/config.cpp', 'src/window.cpp', 'src/vulkan.cpp',
'src/widgets/devices.cpp', 'src/widgets/settings.cpp', 'src/widgets/stats.cpp'],
include_directories : ['inc'],
dependencies: [gsl, fftw, threads, curses, libconfig, pipewire, pulse_simple, portaudio, qt6, shaderc], install: true)