summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-03 20:29:03 +0100
committerDavid Robillard <d@drobilla.net>2021-01-03 21:18:16 +0100
commit13d7c055c456d4b187e97b5909614939b87ff5c5 (patch)
treed7c12c3c84717a545810dcddaed5073f7932c2f3 /wscript
parent32b00be75b5d1cf33d5c8b25b7c6448249943ce6 (diff)
downloadlilv-13d7c055c456d4b187e97b5909614939b87ff5c5.tar.gz
lilv-13d7c055c456d4b187e97b5909614939b87ff5c5.tar.bz2
lilv-13d7c055c456d4b187e97b5909614939b87ff5c5.zip
Fix build with MinGW
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/wscript b/wscript
index db4a1bd..dd4beb7 100644
--- a/wscript
+++ b/wscript
@@ -266,7 +266,11 @@ def configure(conf):
lv2_path = lilv_path_sep.join(['~/.lv2',
'/usr/%s/lv2' % libdirname,
'/usr/local/%s/lv2' % libdirname])
- conf.define('LILV_DEFAULT_LV2_PATH', lv2_path.replace('%', '%%'))
+
+ if sys.platform == 'win32':
+ lv2_path = lv2_path.replace('%', '%%')
+
+ conf.define('LILV_DEFAULT_LV2_PATH', lv2_path)
# Set up environment for building/using as a subproject
autowaf.set_lib_env(conf, 'lilv', LILV_VERSION,