ignore unpaired noteoff's when writing part of a MidiModel to a new source. in realit...
[ardour2.git] / libs / vamp-plugins / wscript
blob4fde44ea3421c932ed45319a1170c201d6403973
1 #!/usr/bin/env python
2 import autowaf
3 import os
5 # Version of this package (even if built as a child)
6 LIBARDOURVAMPPLUGINS_VERSION = '0.0.0'
8 # Library version (UNIX style major, minor, micro)
9 # major increment <=> incompatible changes
10 # minor increment <=> compatible changes (additions)
11 # micro increment <=> no interface changes
12 LIBARDOURVAMPPLUGINS_LIB_VERSION = '0.0.0'
14 # Variables for 'waf dist'
15 APPNAME = 'libardourvampplugins'
16 VERSION = LIBARDOURVAMPPLUGINS_VERSION
18 # Mandatory variables
19 srcdir = '.'
20 blddir = 'build'
22 def set_options(opt):
23 autowaf.set_options(opt)
25 def configure(conf):
26 autowaf.configure(conf)
27 conf.check_tool('compiler_cxx')
28 autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
29 autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', mandatory=False)
30 conf.write_config_header('libvampplugins-config.h')
32 def build(bld):
33 # Library
34 obj = bld.new_task_gen('cxx', 'shlib')
35 obj.source = '''
36 plugins.cpp
37 AmplitudeFollower.cpp
38 OnsetDetect.cpp
39 PercussionOnsetDetector.cpp
40 SpectralCentroid.cpp
41 ZeroCrossing.cpp
42 '''
43 obj.export_incdirs = ['.']
44 obj.includes = ['.']
45 obj.name = 'libardourvampplugins'
46 obj.target = 'ardourvampplugins'
47 obj.uselib = 'FFTW3F'
48 obj.uselib_local = 'libvampplugin libqmdsp'
49 if bld.env['HAVE_AUBIO']:
50 obj.source += ' Onset.cpp '
51 obj.uselib += ' AUBIO '
52 obj.vnum = LIBARDOURVAMPPLUGINS_LIB_VERSION
53 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'vamp')
55 def shutdown():
56 autowaf.shutdown()