aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
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')