mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
Merge pull request #195 from openAVproductions/meson
Add Meson build system integration
This commit is contained in:
commit
01a6fded5f
11 changed files with 100 additions and 0 deletions
42
meson.build
Normal file
42
meson.build
Normal file
|
@ -0,0 +1,42 @@
|
|||
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)
|
1
meson_options.txt
Normal file
1
meson_options.txt
Normal file
|
@ -0,0 +1 @@
|
|||
option('tests', type : 'boolean', value : true, description : 'Build tests')
|
1
src/avtk/meson.build
Normal file
1
src/avtk/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
luppp_src += files( 'bindings.cxx', 'volume.cxx', 'clipselector.cxx')
|
1
src/cjson/meson.build
Normal file
1
src/cjson/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
luppp_src += files('cJSON.c')
|
6
src/controller/meson.build
Normal file
6
src/controller/meson.build
Normal file
|
@ -0,0 +1,6 @@
|
|||
luppp_src += files(
|
||||
'controller.cxx',
|
||||
'genericmidi.cxx',
|
||||
'guicontroller.cxx',
|
||||
'nonseq.cxx'
|
||||
)
|
1
src/dsp/meson.build
Normal file
1
src/dsp/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
luppp_src += files('dsp_sidechain_gain.cxx')
|
40
src/meson.build
Normal file
40
src/meson.build
Normal file
|
@ -0,0 +1,40 @@
|
|||
version_hxx = vcs_tag(
|
||||
input : 'version.hxx.in',
|
||||
output : 'version.hxx')
|
||||
|
||||
luppp_src = files(
|
||||
'audiobuffer.cxx',
|
||||
'controllerupdater.cxx',
|
||||
'debug.cxx',
|
||||
'diskreader.cxx',
|
||||
'diskwriter.cxx',
|
||||
'event.cxx',
|
||||
'eventhandlerdsp.cxx',
|
||||
'eventhandlergui.cxx',
|
||||
'gaudioeditor.cxx',
|
||||
'gmastertrack.cxx',
|
||||
'goptions.cxx',
|
||||
'gridlogic.cxx',
|
||||
'gtrack.cxx',
|
||||
'gui.cxx',
|
||||
'jack.cxx',
|
||||
'jacksendreturn.cxx',
|
||||
'logic.cxx',
|
||||
'looperclip.cxx',
|
||||
'looper.cxx',
|
||||
'main.cxx',
|
||||
'metronome.cxx',
|
||||
'timemanager.cxx',
|
||||
'trackoutput.cxx'
|
||||
)
|
||||
|
||||
subdir('cjson')
|
||||
subdir('dsp')
|
||||
subdir('controller')
|
||||
subdir('observer')
|
||||
subdir('state')
|
||||
subdir('avtk')
|
||||
|
||||
if(get_option('tests') == true)
|
||||
subdir('tests')
|
||||
endif
|
1
src/observer/meson.build
Normal file
1
src/observer/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
luppp_src += files('midi.cxx', 'time.cxx')
|
1
src/state/meson.build
Normal file
1
src/state/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
luppp_src += files('state.cxx', 'stately.cxx')
|
5
src/tests/meson.build
Normal file
5
src/tests/meson.build
Normal file
|
@ -0,0 +1,5 @@
|
|||
luppp_src += files(
|
||||
'diskreadertest.cxx',
|
||||
'diskwritertest.cxx',
|
||||
'goptionstest.cxx',
|
||||
'gridlogictests.cxx')
|
1
src/version.hxx.in
Normal file
1
src/version.hxx.in
Normal file
|
@ -0,0 +1 @@
|
|||
#define GIT_VERSION "@VCS_TAG@"
|
Loading…
Add table
Reference in a new issue