diff options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -18,14 +18,12 @@ out = 'build' # Build directory def options(ctx): ctx.load('compiler_c') ctx.load('lv2') - autowaf.set_options(ctx) - opt = ctx.get_option_group('Configuration options') + opt = ctx.configuration_options() opt.add_option('--rate', type='int', default=48000, dest='rate', help='ideal sample rate for oscillator wave tables [Default: 48000]') def configure(conf): - autowaf.display_header('Blop.LV2 Configuration') conf.load('compiler_c', cache=True) conf.load('lv2', cache=True) conf.load('autowaf', cache=True) @@ -57,6 +55,7 @@ def configure(conf): conf.env.pluginlib_EXT = pat[pat.rfind('.'):] conf.define('BLOP_SHLIB_EXT', conf.env.pluginlib_EXT) + conf.run_env.append_unique('LV2_PATH', [conf.build_path('lv2')]) autowaf.display_summary(conf, {'LV2 bundle directory': conf.env.LV2DIR, @@ -71,7 +70,7 @@ def build_plugin(bld, lang, bundle, name, source, defines=None, lib=[]): source = source, includes = ['.', 'src/include'], name = name, - target = os.path.join(bundle, name), + target = os.path.join('lv2', bundle, name), uselib = ['LV2'], lib = ['m'] + lib, install_path = '${LV2DIR}/' + bundle) @@ -87,12 +86,12 @@ def build(bld): bld(features = 'subst', is_copy = True, source = i, - target = 'blop.lv2/%s' % i.name, + target = 'lv2/blop.lv2/%s' % i.name, install_path = '${LV2DIR}/blop.lv2') bld(features = 'subst', source = 'blop.lv2/manifest.ttl.in', - target = 'blop.lv2/manifest.ttl', + target = 'lv2/blop.lv2/manifest.ttl', LIB_EXT = bld.env.pluginlib_EXT, install_path = '${LV2DIR}/blop.lv2') @@ -172,7 +171,7 @@ def build(bld): bld(features = 'c cshlib', source = bld.path.get_bld().make_node('src/%s_data.c' % i), - target = 'blop.lv2/%s_data' % i, + target = 'lv2/blop.lv2/%s_data' % i, includes = ['.', 'src/include'], env = penv, install_path = '${LV2DIR}/blop.lv2', |