break out ALSA related functions into libardouralsautil
[ardour.git] / libs / backends / alsa / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 import os
4 import sys
5 import re
6
7 # Library version (UNIX style major, minor, micro)
8 # major increment <=> incompatible changes
9 # minor increment <=> compatible changes (additions)
10 # micro increment <=> no interface changes
11 ALSABACKEND_VERSION = '0.0.1'
12 I18N_PACKAGE = 'alsa-backend'
13
14 # Mandatory variables
15 top = '.'
16 out = 'build'
17
18 def options(opt):
19     autowaf.set_options(opt)
20
21 def configure(conf):
22     autowaf.configure(conf)
23
24 def build(bld):
25     obj = bld(features = 'cxx cxxshlib')
26     obj.source = [
27             'alsa_audiobackend.cc',
28             'alsa_rawmidi.cc',
29             'zita-alsa-pcmi.cc',
30             ]
31     obj.includes = ['.']
32     obj.name     = 'alsa_audiobackend'
33     obj.target   = 'alsa_audiobackend'
34     obj.use      = 'libardour libpbd ardouralsautil'
35     obj.uselib   = 'ALSA'
36     obj.vnum     = ALSABACKEND_VERSION
37     obj.install_path  = os.path.join(bld.env['LIBDIR'], 'backends')
38     obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"',
39                    'ARDOURBACKEND_DLL_EXPORTS'
40                   ]