Fix importing to a fixed-point format with resampling
[ardour.git] / libs / zita-resampler / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 from waflib import Options
4 from waflib import TaskGen
5 import os
6
7 # Version of this package (even if built as a child)
8 MAJOR = '1'
9 MINOR = '6'
10 MICRO = '0'
11 ZRESAMPLER_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
12
13 # Library version (UNIX style major, minor, micro)
14 # major increment <=> incompatible changes
15 # minor increment <=> compatible changes (additions)
16 # micro increment <=> no interface changes
17 ZRESAMPLER_LIB_VERSION = '1.6.0'
18
19 # Variables for 'waf dist'
20 APPNAME = 'zita-resampler'
21 VERSION = ZRESAMPLER_VERSION
22 I18N_PACKAGE = 'libzita-resampler'
23
24 # Mandatory variables
25 top = '.'
26 out = 'build'
27
28 zresampler_sources = [
29         'resampler.cc',
30         'resampler-table.cc',
31         'cresampler.cc',
32         'vresampler.cc',
33         'vmresampler.cc'
34 ]
35
36 def options(opt):
37     autowaf.set_options(opt)
38
39 def configure(conf):
40     conf.load ('compiler_cxx')
41     autowaf.configure(conf)
42
43 def build(bld):
44     obj = bld.stlib(features = 'cxx cxxstlib', source = zresampler_sources)
45     obj.cxxflags        = [ bld.env['compiler_flags_dict']['pic'], '-O3', '-ffast-math' ]
46     obj.export_includes = ['.']
47     obj.includes        = ['.']
48     obj.name            = 'zita-resampler'
49     obj.target          = 'zita-resampler'
50     obj.vnum            = ZRESAMPLER_LIB_VERSION
51     obj.install_path    = bld.env['LIBDIR']
52     obj.defines         = [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
53
54 def shutdown():
55     autowaf.shutdown()