13
0
livetrax/templates/wscript
Carl Hetherington 5c1e4e1c79 Un bit-rot the docbook manual build, just for kicks.
git-svn-id: svn://localhost/ardour2/branches/3.0@11039 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-21 00:55:57 +00:00

34 lines
971 B
Python

#!/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.name = 'template'
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