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
commit058f341053067b69a84d4081107fda5058290ff9 (patch)
tree00d80f8313da3ba40345d660dc007d7f002e6ab6 /wscript
parent97f67d8eabc1a3add7acec5f14a53f8cf788fd01 (diff)
parente2ba1ff035a1928869566ff62d07d61ce9647627 (diff)
Update autowaf and adapt to new APIHEADmaster
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 4 insertions, 5 deletions
diff --git a/wscript b/wscript
index 39f3905..e83daf5 100644
--- a/wscript
+++ b/wscript
@@ -20,10 +20,8 @@ out = 'build'
def options(opt):
opt.load('compiler_c')
opt.load('lv2')
- autowaf.set_options(opt)
def configure(conf):
- autowaf.display_header('Omins.LV2 Configuration')
conf.load('compiler_c', cache=True)
conf.load('lv2', cache=True)
conf.load('autowaf', cache=True)
@@ -44,6 +42,7 @@ def configure(conf):
conf.env.pluginlib_PATTERN = pat
conf.env.pluginlib_EXT = pat[pat.rfind('.'):]
+ conf.run_env.append_unique('LV2_PATH', [conf.build_path('lv2')])
autowaf.display_summary(conf, {'LV2 bundle directory': conf.env.LV2DIR})
def build_plugin(bld, lang, bundle, name, source, defines=None):
@@ -58,7 +57,7 @@ def build_plugin(bld, lang, bundle, name, source, defines=None):
source = source,
includes = ['.', 'src/include'],
name = name,
- target = os.path.join(bundle, name),
+ target = os.path.join('lv2', bundle, name),
uselib = ['LV2'],
install_path = '${LV2DIR}/' + bundle,
lib = lib)
@@ -80,12 +79,12 @@ def build(bld):
bld(features = 'subst',
is_copy = True,
source = i,
- target = 'omins.lv2/%s' % i.name,
+ target = 'lv2/omins.lv2/%s' % i.name,
install_path = '${LV2DIR}/omins.lv2')
bld(features = 'subst',
source = 'omins.lv2/manifest.ttl.in',
- target = bld.path.get_bld().make_node('omins.lv2/manifest.ttl'),
+ target = bld.path.get_bld().make_node('lv2/omins.lv2/manifest.ttl'),
LIB_EXT = bld.env.pluginlib_EXT,
install_path = '${LV2DIR}/omins.lv2')