aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript20
1 files changed, 9 insertions, 11 deletions
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)