From fad5bc6aab40cd4a03dbd0934061fd1182ca2b6d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Jul 2012 16:56:26 +0000 Subject: Use modern waf build syntax everywhere. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blop.lv2@4571 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 0c656c5..1f7200e 100644 --- a/wscript +++ b/wscript @@ -52,19 +52,19 @@ def configure(conf): def build_plugin(bld, lang, bundle, name, source, cflags=[], libs=[]): # Build plugin library penv = bld.env.derive() - penv['cshlib_PATTERN'] = bld.env['pluginlib_PATTERN'] - obj = bld(features = '%s %sshlib' % (lang,lang)) - obj.env = penv - obj.source = source - obj.includes = [ '.', 'src/include' ] - obj.name = name - obj.target = os.path.join(bundle, name) - obj.uselib = ['LV2'] + penv['cshlib_PATTERN'] = bld.env['pluginlib_PATTERN'] + obj = bld(features = '%s %sshlib' % (lang,lang), + env = penv, + source = source, + includes = [ '.', 'src/include' ], + name = name, + target = os.path.join(bundle, name), + uselib = ['LV2'], + install_path = '${LV2DIR}/' + bundle) if cflags != []: obj.cflags = cflags if libs != []: autowaf.use_lib(bld, obj, libs) - obj.install_path = '${LV2DIR}/' + bundle # Install data file data_file = '%s.ttl' % name @@ -167,8 +167,6 @@ def build(bld): includes = ['.', 'src/include'], env = penv, install_path = '${LV2DIR}/blop.lv2') - - def lint(ctx): subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include src/* serd/*', shell=True) -- cgit v1.2.1