X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=templates%2Fwscript;h=7d01a73bb8b0ad19f577c3657ed65bc5872a9d0c;hb=8c98c2c12c970f4f9a93e21c91c7c04ad302af42;hp=62ed37e5a2df8f452a50c6f6323e9c57b31ff9f9;hpb=4769db412dffcee699116a63fc714f88513fa0c6;p=ardour.git diff --git a/templates/wscript b/templates/wscript index 62ed37e5a2..7d01a73bb8 100644 --- a/templates/wscript +++ b/templates/wscript @@ -1,10 +1,9 @@ #!/usr/bin/python import os -import glob -srcdir = '.' -blddir = 'build' +top = '.' +out = 'build' def configure(conf): pass @@ -12,21 +11,20 @@ def configure(conf): def build(bld): subst_dict = {} - if bld.env['COREAUDIO']: + 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 = glob.glob(os.path.join(bld.get_curdir(), '*.template.in')) + templates = bld.path.ant_glob('*.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 = 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 set_options(opt): +def options(opt): pass