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