From cb046d7b5eb0f8bc3937a29a1ba8957bb5574912 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Nov 2019 15:34:28 +0100 Subject: Simplify plugin building and set up source tree run environment This sets up LV2_PATH in waf tests so that tests can use specifications and plugins from the source tree without installing. --- wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 3bda14d..01f0256 100644 --- a/wscript +++ b/wscript @@ -97,6 +97,9 @@ def configure(conf): autowaf.set_lib_env(conf, 'lv2', VERSION, has_objects=False) autowaf.set_local_lib(conf, 'lv2', has_objects=False) + conf.run_env.append_unique('LV2_PATH', + [os.path.join(conf.path.abspath(), 'lv2')]) + if conf.env.BUILD_PLUGINS: for i in ['eg-amp.lv2', 'eg-fifths.lv2', @@ -109,6 +112,8 @@ def configure(conf): path = os.path.join('plugins', i) conf.recurse(path) conf.env.LV2_BUILD += [path] + conf.run_env.append_unique( + 'LV2_PATH', [conf.build_path('plugins/%s/lv2' % i)]) except Exception as e: Logs.warn('Configuration failed, not building %s (%s)' % (i, e)) -- cgit v1.2.1