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
24 autowaf.set_options(opt)
27 autowaf.configure(conf)
28 autowaf.check_tool(conf, 'compiler_cxx')
29 autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
30 autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
31 autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
33 conf.check(function_name='getmntent', header_name='mntent.h', define_name='HAVE_GETMNTENT')
35 # This must be defined for librubberband only, it breaks ardour
36 conf.check(header_name='execinfo.h', define_name='PBD_HAVE_EXECINFO')
38 conf.env.append_value('CXXFLAGS', '-DHAVE_WAFCONFIG_H')
39 conf.write_config_header('wafconfig.h')
42 autowaf.check_header(conf, 'boost/shared_ptr.hpp')
43 autowaf.check_header(conf, 'boost/weak_ptr.hpp')
47 obj = bld.new_task_gen('cxx', 'shlib')
48 prefix = 'libs/rubberband/'
49 sources = glob.glob(prefix + 'src/*.cpp')
52 obj.source += [ i.replace(prefix, '') ]
53 obj.export_incdirs = ['.']
54 obj.includes = ['.', 'rubberband']
55 obj.name = 'librubberband'
56 obj.target = 'rubberband'
57 obj.uselib = 'FFTW3 FFTW3F SAMPLERATE SNDFILE'
58 obj.uselib_local = 'libvamphost'
59 obj.vnum = LIBRUBBERBAND_LIB_VERSION
60 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
61 obj.cxxflags = '-DPACKAGE="librubberband"'