232f01023507211b09ee7af47295d08f3fd1f393
[ardour.git] / libs / qm-dsp / wscript
1 #!/usr/bin/env python
2 import 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 srcdir = '.'
20 blddir = 'build'
21
22 def set_options(opt):
23         autowaf.set_options(opt)
24
25 def configure(conf):
26         autowaf.configure(conf)
27         conf.check_tool('compiler_cxx')
28
29 def build(bld):
30         # Host Library
31         obj = bld.new_task_gen('cxx', 'shlib')
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_incdirs = ['.']
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()
59