aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript39
1 files changed, 18 insertions, 21 deletions
diff --git a/wscript b/wscript
index 481663b..fce3c2e 100644
--- a/wscript
+++ b/wscript
@@ -2,18 +2,15 @@
import os
import shutil
import subprocess
-from waflib.extras import autowaf as autowaf
+import waflib.extras.autowaf as autowaf
-# Version of this package (even if built as a child)
BLOP_VERSION = '0.0.0'
-# Variables for 'waf dist'
-APPNAME = 'blop.lv2'
-VERSION = BLOP_VERSION
-
-# Mandatory variables
-top = '.'
-out = 'build'
+# Mandatory waf variables
+APPNAME = 'blop' # Package name for waf dist
+VERSION = BLOP_VERSION # Package version for waf dist
+top = '.' # Source directory
+out = 'build' # Build directory
def options(opt):
opt.load('compiler_c')
@@ -44,7 +41,7 @@ def configure(conf):
conf.define('BLOP_SHLIB_EXT', conf.env.pluginlib_EXT)
- autowaf.display_msg(conf, "LV2 bundle directory",
+ autowaf.display_msg(conf, 'LV2 bundle directory',
conf.env.LV2DIR)
print('')
@@ -147,21 +144,21 @@ def build(bld):
# Waveform data source
for i in ['parabola', 'sawtooth', 'square']:
- obj = bld(rule = '${SRC} -r 48000 -f 12 -s 1 -m 128 -g 1.0 -w %s -p %s -o ${TGT}' % (i, i),
- source = wavegen.link_task.outputs[0],
- target = 'src/%s_data.c' % i,
- name = i)
+ bld(rule = '${SRC} -r 48000 -f 12 -s 1 -m 128 -g 1.0 -w %s -p %s -o ${TGT}' % (i, i),
+ source = wavegen.link_task.outputs[0],
+ target = 'src/%s_data.c' % i,
+ name = i)
penv = bld.env.derive()
penv.cshlib_PATTERN = bld.env.pluginlib_PATTERN
- obj = bld(features = 'c cshlib',
- source = bld.path.get_bld().make_node('src/%s_data.c' % i),
- target = 'blop.lv2/%s_data' % i,
- includes = ['.', 'src/include'],
- env = penv,
- install_path = '${LV2DIR}/blop.lv2',
- uselib = ['LV2'])
+ bld(features = 'c cshlib',
+ source = bld.path.get_bld().make_node('src/%s_data.c' % i),
+ target = 'blop.lv2/%s_data' % i,
+ includes = ['.', 'src/include'],
+ env = penv,
+ install_path = '${LV2DIR}/blop.lv2',
+ uselib = ['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)