use legalize_for_path() on filenames for export presets and formats
[ardour2.git] / templates / wscript
blobc6312c84113749eafab1698a9db5235537d1e290
1 #!/usr/bin/python
3 import os
4 import glob
6 srcdir = '.'
7 blddir = 'build'
9 def configure(conf):
10 pass
12 def build(bld):
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_'
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')
31 def set_options(opt):
32 pass