diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-06 18:11:29 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-02-08 00:35:38 +0200 |
commit | 7bfcf68777f5bee3cab95685acf3c4177f6b6498 (patch) | |
tree | cd8bcc2ec6c0750434fc4f437744fcec6a59223c /mesonbuild/modules/gnome.py | |
parent | 2b0973acd90cd1ff7db7369d5118363a2eaea51e (diff) | |
download | meson-7bfcf68777f5bee3cab95685acf3c4177f6b6498.zip meson-7bfcf68777f5bee3cab95685acf3c4177f6b6498.tar.gz meson-7bfcf68777f5bee3cab95685acf3c4177f6b6498.tar.bz2 |
Add get_pkgconfig_variable(default:)
Also use that to squelch the warning for internal uses which handle the
variable missing case (just gnome at the moment)
A follow up to PR #2914
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r-- | mesonbuild/modules/gnome.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index db85420..218e3b3 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -362,7 +362,7 @@ class GnomeModule(ExtensionModule): ldflags.update([lib]) if isinstance(dep, PkgConfigDependency): - girdir = dep.get_pkgconfig_variable("girdir", {}) + girdir = dep.get_pkgconfig_variable("girdir", {'default': ''}) if girdir: gi_includes.update([girdir]) elif isinstance(dep, (build.StaticLibrary, build.SharedLibrary)): @@ -553,7 +553,7 @@ class GnomeModule(ExtensionModule): if subdir not in typelib_includes: typelib_includes.append(subdir) elif isinstance(dep, PkgConfigDependency): - girdir = dep.get_pkgconfig_variable("girdir", {}) + girdir = dep.get_pkgconfig_variable("girdir", {'default': ''}) if girdir and girdir not in typelib_includes: typelib_includes.append(girdir) # ldflags will be misinterpreted by gir scanner (showing |