summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-01-01 16:59:38 +0000
committerCarl Hetherington <carl@carlh.net>2011-01-01 16:59:38 +0000
commitce83dd0df1dc0cfba7829758d8d5c585e15282c0 (patch)
tree63508651353b2a247252772be4204a95ab24d6f9 /templates
parent6258f4e33bc9392d557ef167fcb606a3c7965d55 (diff)
Install templates.
git-svn-id: svn://localhost/ardour2/branches/3.0@8400 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'templates')
-rw-r--r--templates/wscript29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/wscript b/templates/wscript
new file mode 100644
index 0000000000..2c2a9efb44
--- /dev/null
+++ b/templates/wscript
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+
+import os
+import glob
+
+srcdir = '.'
+blddir = 'build'
+
+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