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 82279b4..35d4f09 100644
--- a/wscript
+++ b/wscript
@@ -17,10 +17,8 @@ out = 'build' # Build directory
def options(opt):
opt.load('compiler_cxx')
opt.load('lv2')
- autowaf.set_options(opt)
def configure(conf):
- autowaf.display_header('Fomp.LV2 Configuration')
conf.load('compiler_cxx', cache=True)
conf.load('lv2', cache=True)
conf.load('autowaf', cache=True)
@@ -35,6 +33,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):
@@ -46,7 +45,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)
if defines != None:
@@ -63,12 +62,12 @@ def build(bld):
bld(features = 'subst',
is_copy = True,
source = i,
- target = 'fomp.lv2/%s' % i.name,
+ target = 'lv2/fomp.lv2/%s' % i.name,
install_path = '${LV2DIR}/fomp.lv2')
bld(features = 'subst',
source = 'fomp.lv2/manifest.ttl.in',
- target = 'fomp.lv2/manifest.ttl',
+ target = 'lv2/fomp.lv2/manifest.ttl',
LIB_EXT = bld.env.pluginlib_EXT,
install_path = '${LV2DIR}/fomp.lv2')