ad4713a216
session templates (#4918). git-svn-id: svn://localhost/ardour2/branches/3.0@12607 d708f5d6-7413-0410-9779-e7cbd77b26cf
31 lines
942 B
Python
31 lines
942 B
Python
#!/usr/bin/python
|
|
|
|
import os
|
|
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
def configure(conf):
|
|
pass
|
|
|
|
def build(bld):
|
|
|
|
if bld.is_defined('COREAUDIO_SUPPORT'):
|
|
subst_dict = {'JACK_INPUT': 'coreaudio:Built-in Audio:in', 'JACK_OUTPUT': 'coreaudio:Built-in Audio:out'}
|
|
else:
|
|
subst_dict = {'JACK_INPUT': 'system:playback_','JACK_OUTPUT': 'system:capture_'}
|
|
|
|
templates = bld.path.ant_glob('*/*.template.in')
|
|
for t in templates:
|
|
dir_name = os.path.basename(t.srcpath()).replace('.template.in', '')
|
|
file_name = os.path.basename(t.srcpath()).replace('.in', '')
|
|
obj = bld(features = 'subst',
|
|
name = 'template',
|
|
source = [ t ],
|
|
target = [ os.path.join(dir_name, file_name) ],
|
|
install_path = os.path.join(bld.env['DATADIR'], 'ardour3', os.path.join('templates', dir_name)))
|
|
obj.__dict__.update(subst_dict)
|
|
|
|
def options(opt):
|
|
pass
|