forked from olegkapitonov/Kapitonov-Plugins-Pack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
59 lines (50 loc) · 1.47 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
47
48
49
50
51
52
53
54
55
56
57
58
59
project('kpp', 'cpp', 'c', license: 'GPL-3.0-or-later', version: '1.2',
default_options : ['buildtype=release'])
cc = meson.get_compiler('cpp')
m_dep = cc.find_library('m', required : false)
cxx = meson.get_compiler('cpp')
boost = cxx.has_header('boost/circular_buffer.hpp', required: true)
xcb = dependency('xcb', required: get_option('gui'))
xcb_aux = dependency('xcb-aux', required: xcb.found())
xcb_icccm = dependency('xcb-icccm', required: xcb.found())
cairo = dependency('cairo', required: get_option('gui'))
faust = find_program('faust', required: true)
faustarch = run_command(faust, '-archdir', check: true).stdout().strip()
ladspa = cxx.has_header('ladspa.h', required: get_option('ladspa'))
lv2 = dependency('lv2', required: get_option('lv2'))
if not lv2.found() and not ladspa
error('must enable either ladspa or lv2')
endif
plugins = {
'bluedream': {
'gui': true,
'ladspa': true
}, 'deadgate': {
'ladspa': true
}, 'distruction': {
'gui': true,
'ladspa': true
}, 'fuzz': {
'gui': true,
'ladspa': true
}, 'octaver': {
'ladspa': true
}, 'single2humbucker': {
'ladspa': true
}, 'tubeamp': {
'gui': true,
'lv2src': ['kpp_tubeamp.cpp'],
'libs': ['zita-convolver', 'zita-resampler']
},
}
add_project_arguments(
'-DFAUST_META=1',
'-DFAUST_MIDICC=1',
'-DFAUST_MTS=1',
'-DVOICE_CTRLS=1', language: ['c', 'cpp'])
if lv2.found()
subdir('LV2')
endif
if ladspa
subdir('LADSPA')
endif