an awful lot of tweaks to drawing details
[ardour.git] / libs / rubberband / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 import os
4 import glob
5
6 # Version of this package (even if built as a child)
7 LIBRUBBERBAND_VERSION = '0.0.0'
8
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'
14
15 # Variables for 'waf dist'
16 APPNAME = 'librubberband'
17 VERSION = LIBRUBBERBAND_VERSION
18
19 # Mandatory variables
20 top = '.'
21 out = 'build'
22
23 def options(opt):
24     autowaf.set_options(opt)
25
26 def configure(conf):
27     conf.load('compiler_cxx')
28     autowaf.configure(conf)
29
30 def build(bld):
31     # Library
32     obj = bld(features = 'cxx cxxshlib')
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_includes = ['.']
39     obj.includes     = ['.', 'rubberband']
40     obj.name         = 'librubberband'
41     obj.target       = 'rubberband'
42     obj.uselib       = 'FFTW3 FFTW3F SAMPLERATE SNDFILE'
43     obj.use          = 'libvamphost'
44     obj.vnum         = LIBRUBBERBAND_LIB_VERSION
45     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
46     obj.cxxflags     = '-DPACKAGE="librubberband"'
47
48 def shutdown():
49     autowaf.shutdown()