diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 17:31:04 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 18:14:27 +0100 |
commit | a065b13b94e2f08eddbec9a64d97c653618e7207 (patch) | |
tree | f3727071015b4c8034c756d466d6f1d37d0b3683 /wscript | |
parent | d4a49fff9bbc610705b6292a069ae8fa72bb6e03 (diff) | |
parent | 06b859ac10d84580a21a912c75c37c73b9d65d2f (diff) | |
download | mda.lv2-master.tar.gz mda.lv2-master.tar.bz2 mda.lv2-master.zip |
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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, |