13
0
livetrax/templates/wscript
Carl Hetherington d6cd4796b8 Fix build. Disable template installation for a bit because I forgot that waf's subst builder doesn't like spaces in filenames.
git-svn-id: svn://localhost/ardour2/branches/3.0@8402 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-01-01 17:13:32 +00:00

33 lines
819 B
Python

#!/usr/bin/python
import os
import glob
srcdir = '.'
blddir = 'build'
def configure(conf):
pass
def build(bld):
subst_dict = {}
if bld.env['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 = glob.glob(os.path.join(bld.get_curdir(), '*.template.in'))
for t in templates:
b = os.path.basename(t)
obj = bld.new_task_gen('subst')
obj.source = b
obj.target = b.replace('.in', '')
obj.dict = subst_dict
obj.install_path = os.path.join(bld.env['DATADIR'], 'ardour3', 'templates')
def set_options(opt):
pass