Strip trailing whitespace from waf scripts.
[ardour.git] / libs / vamp-plugins / 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 LIBARDOURVAMPPLUGINS_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 LIBARDOURVAMPPLUGINS_LIB_VERSION = '0.0.0'
13
14 # Variables for 'waf dist'
15 APPNAME = 'libardourvampplugins'
16 VERSION = LIBARDOURVAMPPLUGINS_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         autowaf.check_tool(conf, '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
31 def build(bld):
32         # Library
33         obj = bld.new_task_gen('cxx', 'shlib')
34         obj.source = '''
35                 plugins.cpp
36                 AmplitudeFollower.cpp
37                 PercussionOnsetDetector.cpp
38                 SpectralCentroid.cpp
39                 ZeroCrossing.cpp
40         '''
41         obj.export_incdirs = ['.']
42         obj.includes     = ['.']
43         obj.name         = 'libardourvampplugins'
44         obj.target       = 'ardourvampplugins'
45         obj.uselib       = 'FFTW3F'
46         obj.uselib_local = 'libvampplugin'
47         if bld.env['HAVE_AUBIO']:
48                 obj.source += ' Onset.cpp '
49                 obj.uselib += ' AUBIO '
50         obj.vnum         = LIBARDOURVAMPPLUGINS_LIB_VERSION
51         obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
52
53 def shutdown():
54         autowaf.shutdown()
55