aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/ui.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-06-14 04:48:15 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2017-06-17 12:33:06 +0300
commit1441cb981259dfbfd13797157eee25ce9f94169f (patch)
tree96d76685878dd199c0f747e02a5b9eebe1fcaa99 /mesonbuild/dependencies/ui.py
parentea3e28dbb97cefac717445ec22bbec9b31234991 (diff)
downloadmeson-1441cb981259dfbfd13797157eee25ce9f94169f.zip
meson-1441cb981259dfbfd13797157eee25ce9f94169f.tar.gz
meson-1441cb981259dfbfd13797157eee25ce9f94169f.tar.bz2
wxwidgets: Fix usage of multiple dependency() calls
This was broken because the class property will say True but the object property will not be set. Store the value on the class property and transfer to object in __init__. Just like PkgConfigDependency.
Diffstat (limited to 'mesonbuild/dependencies/ui.py')
-rw-r--r--mesonbuild/dependencies/ui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py
index 8537a7e..b46b3d5 100644
--- a/mesonbuild/dependencies/ui.py
+++ b/mesonbuild/dependencies/ui.py
@@ -426,6 +426,8 @@ class WxDependency(ExternalDependency):
self.version = 'none'
if WxDependency.wx_found is None:
self.check_wxconfig()
+ else:
+ self.wxc = WxDependency.wx_found
if not WxDependency.wx_found:
mlog.log("Neither wx-config-3.0 nor wx-config found; can't detect dependency")
return
@@ -480,7 +482,7 @@ class WxDependency(ExternalDependency):
mlog.log('Found wx-config:', mlog.bold(shutil.which(wxc)),
'(%s)' % out.strip())
self.wxc = wxc
- WxDependency.wx_found = True
+ WxDependency.wx_found = wxc
return
except (FileNotFoundError, PermissionError):
pass