Upgrade to waf 1.6.7 and autowaf r52.
[ardour.git] / templates / wscript
1 #!/usr/bin/python
2
3 import os
4
5 top = '.'
6 out = 'build'
7
8 def configure(conf):
9     pass
10
11 def build(bld):
12
13     subst_dict = {}
14     if bld.env['COREAUDIO']:
15         subst_dict['%JACK_INPUT%'] = 'coreaudio:Built-in Audio:in'
16         subst_dict['%JACK_OUTPUT%'] = 'coreaudio:Built-in Audio:out'
17     else:
18         subst_dict['%JACK_INPUT%'] = 'alsa_pcm:playback_'
19         subst_dict['%JACK_OUTPUT%'] = 'alsa_pcm:capture_'
20
21     templates = bld.path.ant_glob('*.template.in')
22     for t in templates:
23         obj = bld(features = 'subst')
24         obj.source = [ t ]
25         obj.target = [ os.path.basename(t.srcpath()).replace('.in', '') ]
26         obj.dict = subst_dict
27         obj.install_path = os.path.join(bld.env['DATADIR'], 'ardour3', 'templates')
28
29 def options(opt):
30     pass