mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 08:41:39 -05:00

This fixes local builds (re-generates version.hxx if it gets removed), ninja dist now works correctly too. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
42 lines
799 B
Meson
42 lines
799 B
Meson
project( 'openav_luppp', ['c','cpp'],
|
|
default_options : [
|
|
'cpp_std=c++11',
|
|
])
|
|
|
|
conf_data = configuration_data()
|
|
conf_data.set('version', '1.1.1')
|
|
|
|
|
|
if(get_option('tests') == true)
|
|
add_project_arguments('-DBUILD_TESTS', language : 'cpp')
|
|
endif
|
|
|
|
add_project_arguments('-Wno-unused-variable', language : 'cpp')
|
|
add_project_arguments('-Wno-reorder', language : 'cpp')
|
|
add_project_arguments('-Wno-sign-compare', language : 'cpp')
|
|
|
|
cc = meson.get_compiler('c')
|
|
cpp = meson.get_compiler('cpp')
|
|
|
|
luppp_src = []
|
|
subdir('src')
|
|
|
|
|
|
dep_names = [
|
|
'ntk',
|
|
'cairo',
|
|
'liblo',
|
|
'jack',
|
|
'sndfile',
|
|
'samplerate',
|
|
'x11'
|
|
]
|
|
deps = []
|
|
|
|
foreach dep : dep_names
|
|
deps += dependency(dep)
|
|
endforeach
|
|
|
|
# compile the main project
|
|
executable('luppp', luppp_src + [version_hxx],
|
|
dependencies: deps)
|