From 13d7c055c456d4b187e97b5909614939b87ff5c5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Jan 2021 20:29:03 +0100 Subject: Fix build with MinGW --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wscript') 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, -- cgit v1.2.1