diff options
author | David Robillard <d@drobilla.net> | 2012-07-29 16:56:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-07-29 16:56:26 +0000 |
commit | fad5bc6aab40cd4a03dbd0934061fd1182ca2b6d (patch) | |
tree | 6de381372c0b8361dcec6f04ea56642d9418f4ec /wscript | |
parent | 7523578d6ef36eb72717d3ff52cb45c8c2a0b6ea (diff) | |
download | blop.lv2-fad5bc6aab40cd4a03dbd0934061fd1182ca2b6d.tar.gz blop.lv2-fad5bc6aab40cd4a03dbd0934061fd1182ca2b6d.tar.bz2 blop.lv2-fad5bc6aab40cd4a03dbd0934061fd1182ca2b6d.zip |
Use modern waf build syntax everywhere.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blop.lv2@4571 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -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) |