Fix up supplied templates missing from last commit.
[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.is_defined('COREAUDIO_SUPPORT'):
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         dir_name = os.path.basename(t.srcpath()).replace('.template.in', '')
26         file_name = os.path.basename(t.srcpath()).replace('.in', '')
27         obj.target = [ os.path.join(dir_name, file_name) ]
28         obj.dict = subst_dict
29         obj.install_path = os.path.join(bld.env['DATADIR'], 'ardour3', os.path.join('templates', dir_name))
30
31 def options(opt):
32     pass