various fixes to MidiRegionView selection handling, key handling, drawing of ghost...
[ardour2.git] / libs / rubberband / wscript
blob011a858aca9b272a435391e77b415cab2659a2ee
1 #!/usr/bin/env python
2 import autowaf
3 import glob
4 import os
6 # Version of this package (even if built as a child)
7 LIBRUBBERBAND_VERSION = '0.0.0'
9 # Library version (UNIX style major, minor, micro)
10 # major increment <=> incompatible changes
11 # minor increment <=> compatible changes (additions)
12 # micro increment <=> no interface changes
13 LIBRUBBERBAND_LIB_VERSION = '4.1.0'
15 # Variables for 'waf dist'
16 APPNAME = 'librubberband'
17 VERSION = LIBRUBBERBAND_VERSION
19 # Mandatory variables
20 srcdir = '.'
21 blddir = 'build'
23 def set_options(opt):
24 autowaf.set_options(opt)
26 def configure(conf):
27 autowaf.configure(conf)
28 conf.check_tool('compiler_cxx')
30 def build(bld):
31 # Library
32 obj = bld.new_task_gen('cxx', 'shlib')
33 prefix = 'libs/rubberband/'
34 sources = glob.glob(prefix + 'src/*.cpp')
35 obj.source = [ ]
36 for i in sources:
37 obj.source += [ i.replace(prefix, '') ]
38 obj.export_incdirs = ['.']
39 obj.includes = ['.', 'rubberband']
40 obj.name = 'librubberband'
41 obj.target = 'rubberband'
42 obj.uselib = 'FFTW3 FFTW3F SAMPLERATE SNDFILE'
43 obj.uselib_local = 'libvamphost'
44 obj.vnum = LIBRUBBERBAND_LIB_VERSION
45 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
46 obj.cxxflags = '-DPACKAGE="librubberband"'
48 def shutdown():
49 autowaf.shutdown()