diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2020-01-14 11:11:52 +0100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-01-22 15:42:13 -0500 |
commit | 958df63dac810246e84c2b8eaa32d22d19ace0ef (patch) | |
tree | 3ca9044222feb643f62dabdf061992e70c68018a /mesonbuild/envconfig.py | |
parent | c5c0c467fedb909c1cfe7547abe477fdabb5526c (diff) | |
download | meson-958df63dac810246e84c2b8eaa32d22d19ace0ef.zip meson-958df63dac810246e84c2b8eaa32d22d19ace0ef.tar.gz meson-958df63dac810246e84c2b8eaa32d22d19ace0ef.tar.bz2 |
envconfig: add pkg_config_libdir property
In order to unify the use of sysroot in the cross-file,
the pkg_config_libdir can now be passed directly in the file.
Diffstat (limited to 'mesonbuild/envconfig.py')
-rw-r--r-- | mesonbuild/envconfig.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index 9b88b66..c275ef2 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -142,6 +142,12 @@ class Properties(HasEnvVarFallback): def get_sys_root(self) -> T.Optional[T.Union[str, T.List[str]]]: return self.properties.get('sys_root', None) + def get_pkg_config_libdir(self) -> T.Optional[T.List[str]]: + p = self.properties.get('pkg_config_libdir', None) + if p is None: + return p + return mesonlib.listify(p) + def __eq__(self, other: T.Any) -> 'T.Union[bool, NotImplemented]': if isinstance(other, type(self)): return self.properties == other.properties |