lots of stuff related to capture alignment. things appear to be working now, but...
[ardour2.git] / libs / vamp-sdk / wscript
blobf1b5a3fa9270b4384d63009df8373d82c65c05c1
1 #!/usr/bin/env python
2 import autowaf
3 import os
5 # Version of this package (even if built as a child)
6 LIBVAMP_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 LIBVAMP_LIB_VERSION = '0.0.0'
14 # Variables for 'waf dist'
15 APPNAME = 'libvamp'
16 VERSION = LIBVAMP_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, 'fftw3', uselib_store='FFTW3', mandatory=True)
29 autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
30 conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3')
32 def build(bld):
33 # Host Library
34 obj = bld.new_task_gen('cxx', 'shlib')
35 obj.source = '''
36 src/vamp-hostsdk/PluginHostAdapter.cpp
37 src/vamp-hostsdk/PluginBufferingAdapter.cpp
38 src/vamp-hostsdk/PluginChannelAdapter.cpp
39 src/vamp-hostsdk/PluginInputDomainAdapter.cpp
40 src/vamp-hostsdk/PluginLoader.cpp
41 src/vamp-hostsdk/PluginWrapper.cpp
42 src/vamp-hostsdk/RealTime.cpp
43 '''
44 obj.export_incdirs = ['.']
45 obj.includes = ['.']
46 obj.name = 'libvamphost'
47 obj.target = 'vamphost'
48 obj.uselib = 'FFTW3 FFTW3F'
49 obj.vnum = LIBVAMP_LIB_VERSION
50 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
52 # Plugin Library
53 obj = bld.new_task_gen('cxx', 'shlib')
54 obj.source = '''
55 src/vamp-sdk/PluginAdapter.cpp
56 src/vamp-sdk/RealTime.cpp
57 '''
58 obj.export_incdirs = ['.']
59 obj.includes = ['.']
60 obj.name = 'libvampplugin'
61 obj.target = 'vampplugin'
62 obj.uselib = 'FFTW3 FFTW3F'
63 obj.vnum = LIBVAMP_LIB_VERSION
64 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
66 def shutdown():
67 autowaf.shutdown()