Fix build. Disable template installation for a bit because I forgot that waf's subst...
[ardour.git] / templates / wscript
1 #!/usr/bin/python
2
3 import os
4 import glob
5
6 srcdir = '.'
7 blddir = 'build'
8
9 def configure(conf):
10     pass
11
12 def build(bld):
13     
14     subst_dict = {}
15     if bld.env['COREAUDIO']:
16         subst_dict['%JACK_INPUT%'] = 'coreaudio:Built-in Audio:in'
17         subst_dict['%JACK_OUTPUT%'] = 'coreaudio:Built-in Audio:out'
18     else:
19         subst_dict['%JACK_INPUT%'] = 'alsa_pcm:playback_'
20         subst_dict['%JACK_OUTPUT%'] = 'alsa_pcm:capture_'
21
22     templates = glob.glob(os.path.join(bld.get_curdir(), '*.template.in'))
23     for t in templates:
24         b = os.path.basename(t)
25         obj = bld.new_task_gen('subst')
26         obj.source = b
27         obj.target = b.replace('.in', '')
28         obj.dict = subst_dict
29         obj.install_path = os.path.join(bld.env['DATADIR'], 'ardour3', 'templates')
30
31 def set_options(opt):
32     pass