aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 17:31:04 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 18:14:27 +0100
commite76724d58c39a52e3f47dbff40c011c54d9a0fdb (patch)
tree62c22e362068f8ab6e7e3a4597c65a7e55841943 /wscript
parent4044751b2b7c59b9f6943a0e951aa1fd7c3a2616 (diff)
parentc7034f97a9a966bb6c04e296fdae714e80237986 (diff)
downloadblop.lv2-master.tar.gz
blop.lv2-master.tar.bz2
blop.lv2-master.zip
Update autowaf and adapt to new APIHEADmaster
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 6 insertions, 7 deletions
diff --git a/wscript b/wscript
index c854f5a..2b69029 100644
--- a/wscript
+++ b/wscript
@@ -18,14 +18,12 @@ out = 'build' # Build directory
def options(ctx):
ctx.load('compiler_c')
ctx.load('lv2')
- autowaf.set_options(ctx)
- opt = ctx.get_option_group('Configuration options')
+ opt = ctx.configuration_options()
opt.add_option('--rate', type='int', default=48000,
dest='rate',
help='ideal sample rate for oscillator wave tables [Default: 48000]')
def configure(conf):
- autowaf.display_header('Blop.LV2 Configuration')
conf.load('compiler_c', cache=True)
conf.load('lv2', cache=True)
conf.load('autowaf', cache=True)
@@ -57,6 +55,7 @@ def configure(conf):
conf.env.pluginlib_EXT = pat[pat.rfind('.'):]
conf.define('BLOP_SHLIB_EXT', conf.env.pluginlib_EXT)
+ conf.run_env.append_unique('LV2_PATH', [conf.build_path('lv2')])
autowaf.display_summary(conf,
{'LV2 bundle directory': conf.env.LV2DIR,
@@ -71,7 +70,7 @@ def build_plugin(bld, lang, bundle, name, source, defines=None, lib=[]):
source = source,
includes = ['.', 'src/include'],
name = name,
- target = os.path.join(bundle, name),
+ target = os.path.join('lv2', bundle, name),
uselib = ['LV2'],
lib = ['m'] + lib,
install_path = '${LV2DIR}/' + bundle)
@@ -87,12 +86,12 @@ def build(bld):
bld(features = 'subst',
is_copy = True,
source = i,
- target = 'blop.lv2/%s' % i.name,
+ target = 'lv2/blop.lv2/%s' % i.name,
install_path = '${LV2DIR}/blop.lv2')
bld(features = 'subst',
source = 'blop.lv2/manifest.ttl.in',
- target = 'blop.lv2/manifest.ttl',
+ target = 'lv2/blop.lv2/manifest.ttl',
LIB_EXT = bld.env.pluginlib_EXT,
install_path = '${LV2DIR}/blop.lv2')
@@ -172,7 +171,7 @@ def build(bld):
bld(features = 'c cshlib',
source = bld.path.get_bld().make_node('src/%s_data.c' % i),
- target = 'blop.lv2/%s_data' % i,
+ target = 'lv2/blop.lv2/%s_data' % i,
includes = ['.', 'src/include'],
env = penv,
install_path = '${LV2DIR}/blop.lv2',