diff options
author | David Robillard <d@drobilla.net> | 2019-11-10 15:34:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-11-10 17:50:02 +0100 |
commit | cb046d7b5eb0f8bc3937a29a1ba8957bb5574912 (patch) | |
tree | 7a19f7f6ed0d16c952dd923c7ea29082a112c9f2 /wscript | |
parent | 49777ffd4a2e5e508d52aa336c3e4599c42215c8 (diff) | |
download | lv2-cb046d7b5eb0f8bc3937a29a1ba8957bb5574912.tar.xz |
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.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)) |