Add NI Maschine ctrl-surface HID/udev permissions config
[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 ]
34
35 def options(opt):
36     autowaf.set_options(opt)
37
38 def configure(conf):
39     if conf.is_defined('USE_EXTERNAL_LIBS'):
40         autowaf.check_pkg(conf, 'zita-reampler', uselib_store='LIBZRESAMPLER', atleast_version=ZRESAMPLER_LIB_VERSION, mandatory=True)
41     else:
42         conf.load ('compiler_cxx')
43         autowaf.configure(conf)
44
45 def build(bld):
46     if bld.is_defined('USE_EXTERNAL_LIBS'):
47         return
48
49     obj = bld.stlib(features = 'cxx cxxstlib', source = zresampler_sources)
50     obj.cxxflags        = [ '-fPIC' ]
51     obj.cflags          = [ '-fPIC' ]
52     obj.export_includes = ['.']
53     obj.includes        = ['.']
54     obj.name            = 'zita-resampler'
55     obj.target          = 'zita-resampler'
56     obj.vnum            = ZRESAMPLER_LIB_VERSION
57     obj.install_path    = bld.env['LIBDIR']
58     obj.defines         = [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
59
60 def shutdown():
61     autowaf.shutdown()
62