diff options
author | David Robillard <d@drobilla.net> | 2019-04-20 19:14:02 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-21 13:49:25 +0200 |
commit | e103a630847a401523074ce1023134f09668519b (patch) | |
tree | 49536f4d7a2bcfcae131a131fa3dd9b59724373a /plugins/eg-metro.lv2/wscript | |
parent | b51e78a095c116214f257153af3a7c7bc6555e33 (diff) | |
download | lv2-e103a630847a401523074ce1023134f09668519b.tar.xz |
Fix building within a recursive project
Diffstat (limited to 'plugins/eg-metro.lv2/wscript')
-rw-r--r-- | plugins/eg-metro.lv2/wscript | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/eg-metro.lv2/wscript b/plugins/eg-metro.lv2/wscript index e91e21f..13b09aa 100644 --- a/plugins/eg-metro.lv2/wscript +++ b/plugins/eg-metro.lv2/wscript @@ -20,8 +20,7 @@ def configure(conf): conf.load('lv2', cache=True) conf.load('autowaf', cache=True) - if not autowaf.is_child(): - autowaf.check_pkg(conf, 'lv2', atleast_version='0.2.0', uselib_store='LV2') + autowaf.check_pkg(conf, 'lv2', atleast_version='0.2.0', uselib_store='LV2') conf.check(features='c cshlib', lib='m', uselib_store='M', mandatory=False) @@ -46,17 +45,11 @@ def build(bld): target = '%s/metro.ttl' % bundle, install_path = '${LV2DIR}/%s' % bundle) - # Use LV2 headers from parent directory if building as a sub-project - includes = ['.'] - if autowaf.is_child: - includes += ['../..'] - # Build plugin library obj = bld(features = 'c cshlib', source = 'metro.c', name = 'metro', target = '%s/metro' % bundle, install_path = '${LV2DIR}/%s' % bundle, - use = ['M', 'LV2'], - includes = includes) + use = ['M', 'LV2']) obj.env.cshlib_PATTERN = module_pat |