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
commita065b13b94e2f08eddbec9a64d97c653618e7207 (patch)
treef3727071015b4c8034c756d466d6f1d37d0b3683 /wscript
parentd4a49fff9bbc610705b6292a069ae8fa72bb6e03 (diff)
parent06b859ac10d84580a21a912c75c37c73b9d65d2f (diff)
downloadmda.lv2-master.tar.gz
mda.lv2-master.tar.bz2
mda.lv2-master.zip
Update autowaf and adapt to new APIHEADmaster
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 4 insertions, 7 deletions
diff --git a/wscript b/wscript
index fb6d6d8..cecafcc 100644
--- a/wscript
+++ b/wscript
@@ -17,17 +17,14 @@ out = 'build' # Build directory
def options(opt):
opt.load('compiler_cxx')
opt.load('lv2')
- autowaf.set_options(opt)
def configure(conf):
- autowaf.display_header('MDA.lv2 Configuration')
conf.load('compiler_cxx', cache=True)
conf.load('lv2', cache=True)
conf.load('autowaf', cache=True)
autowaf.set_c_lang(conf, 'c99')
-
autowaf.check_pkg(conf, 'lv2', atleast_version='1.2.0', uselib_store='LV2')
-
+ conf.run_env.append_unique('LV2_PATH', [conf.build_path('lv2')])
autowaf.display_summary(conf, {'LV2 bundle directory': conf.env.LV2DIR})
def build(bld):
@@ -37,7 +34,7 @@ def build(bld):
bld(features = 'subst',
is_copy = True,
source = i,
- target = 'mda.lv2/%s' % i.name,
+ target = 'lv2/mda.lv2/%s' % i.name,
install_path = '${LV2DIR}/mda.lv2')
# Make a pattern for shared objects without the 'lib' prefix
@@ -47,7 +44,7 @@ def build(bld):
# Build manifest by substitution
bld(features = 'subst',
source = 'mda.lv2/manifest.ttl.in',
- target = bld.path.get_bld().make_node('mda.lv2/manifest.ttl'),
+ target = 'lv2/mda.lv2/manifest.ttl',
LIB_EXT = module_ext,
install_path = '${LV2DIR}/mda.lv2')
@@ -96,7 +93,7 @@ def build(bld):
source = ['src/mda%s.cpp' % p, 'lvz/wrapper.cpp'],
includes = ['.', './lvz', './src'],
name = p,
- target = os.path.join(bundle, p),
+ target = os.path.join('lv2', bundle, p),
install_path = '${LV2DIR}/' + bundle,
uselib = ['LV2'],
defines = ['PLUGIN_CLASS=mda%s' % p,