aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-04-14 22:45:55 +0200
committerDavid Robillard <d@drobilla.net>2019-04-14 22:45:55 +0200
commite12717942cf5295d2a10bf1fd8330ef10eabc345 (patch)
tree5b51db1ebaf3eadffd639b7fb8fe6f4d99f29f7d
parent370c6f4d2a04b818adda89f2342f7c42b3782201 (diff)
downloadlv2-e12717942cf5295d2a10bf1fd8330ef10eabc345.tar.xz
Support building in a recursive project
-rw-r--r--wscript10
1 files changed, 6 insertions, 4 deletions
diff --git a/wscript b/wscript
index cb97c54..c86a5cd 100644
--- a/wscript
+++ b/wscript
@@ -99,10 +99,12 @@ def configure(conf):
if conf.env.BUILD_PLUGINS:
for i in conf.path.ant_glob('plugins/*.lv2', src=False, dir=True):
try:
- conf.recurse(i.srcpath())
- conf.env.LV2_BUILD += [i.srcpath()]
- except:
- Logs.warn('Configuration failed, %s will not be built\n' % i)
+ conf.recurse(i.bldpath())
+ conf.env.LV2_BUILD += [i.bldpath()]
+ except Exception as e:
+ Logs.warn('Configuration failed, not building %s (%s)' % (i, e))
+
+ autowaf.set_lib_env(conf, 'lv2', VERSION, has_objects=False)
autowaf.display_summary(
conf,