fb25d6dbaf992e9dd2c19e962664b6fcfa043068
[ardour.git] / libs / qm-dsp / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 import os
4
5 # Version of this package (even if built as a child)
6 QM_DSP_VERSION = '0.0.0'
7
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 QM_DSP_LIB_VERSION = '0.0.0'
13
14 # Variables for 'waf dist'
15 APPNAME = 'qm-dsp'
16 VERSION = QM_DSP_VERSION
17
18 # Mandatory variables
19 top = '.'
20 out = 'build'
21
22 def options(opt):
23     autowaf.set_options(opt)
24
25 def configure(conf):
26     conf.load('compiler_cxx')
27     autowaf.configure(conf)
28
29 def build(bld):
30     # Host Library
31     obj = bld(features = 'cxx cxxshlib')
32     obj.source = '''
33             dsp/onsets/DetectionFunction.cpp
34             dsp/onsets/PeakPicking.cpp
35             dsp/phasevocoder/PhaseVocoder.cpp
36             dsp/rateconversion/Decimator.cpp
37             dsp/rhythm/BeatSpectrum.cpp
38             dsp/signalconditioning/DFProcess.cpp
39             dsp/signalconditioning/Filter.cpp
40             dsp/signalconditioning/FiltFilt.cpp
41             dsp/signalconditioning/Framer.cpp
42             dsp/transforms/FFT.cpp
43             dsp/wavelet/Wavelet.cpp
44             maths/Correlation.cpp
45             maths/CosineDistance.cpp
46             maths/KLDivergence.cpp
47             maths/MathUtilities.cpp
48             base/Pitch.cpp
49     '''
50     obj.export_includes = ['.']
51     obj.includes     = ['.']
52     obj.name         = 'libqmdsp'
53     obj.target       = 'qmdsp'
54     obj.vnum         = QM_DSP_VERSION
55     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
56
57 def shutdown():
58     autowaf.shutdown()