-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
51 lines (42 loc) · 1.25 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
project ('everb', ['c', 'cpp'],
version : '1.0.2',
default_options : [
'cpp_std=c++17',
'default_library=static',
'b_ndebug=if-release',
'buildtype=release',
'c_std=c99',
])
# Add objective-c if on mac
if host_machine.system() == 'darwin'
add_languages(['objc', 'objcpp'], native : false, required : true)
objcc = meson.get_compiler ('objc')
objcpp = meson.get_compiler ('objcpp')
endif
nodelete_cpp_link_args = meson.get_compiler('cpp').get_supported_link_arguments(['-Wl,-z,nodelete'])
if not meson.is_subproject()
add_project_arguments (['-DLVTK_STATIC=1', '-DPUGL_STATIC=1'],
language : [ 'c', 'cpp' ])
endif
lvtk_opts = [
'doc=disabled',
'test=disabled',
'demo=disabled',
'default_library=static'
]
lvtk_dep = dependency ('lvtk-3',
fallback : [ 'lvtk', 'lvtk_dep' ],
version : '>= 3.0.0',
default_options : lvtk_opts,
required : true
)
lvtk_cairo_dep = dependency ('lvtk-cairo-3',
fallback : [ 'lvtk', 'lvtk_cairo_dep' ],
version : '>= 3.0.0',
default_options : lvtk_opts,
required : true
)
juce_proj = subproject ('juce')
juce_dep = juce_proj.get_variable ('juce_dep')
subdir ('src')
summary ('Install', lv2_install_dir, section : 'LV2')