13
0
livetrax/templates/wscript
Paul Davis a6d7098797 more changes to wscript files to catch up with waf 1.6 and fix OS X issues
git-svn-id: svn://localhost/ardour2/branches/3.0@10176 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-09-30 16:22:04 +00:00

31 lines
778 B
Python

#!/usr/bin/python
import os
top = '.'
out = 'build'
def configure(conf):
pass
def build(bld):
subst_dict = {}
if bld.is_defined('COREAUDIO'):
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 ]
obj.target = [ os.path.basename(t.srcpath()).replace('.in', '') ]
obj.dict = subst_dict
obj.install_path = os.path.join(bld.env['DATADIR'], 'ardour3', 'templates')
def options(opt):
pass