diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-04-09 15:15:07 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-05-28 15:17:10 -0400 |
commit | 2e02ef6592fa6634eadbe388c2a5ee957ce20e59 (patch) | |
tree | 2083b14523bc246507a5d91dee7113e9ac66d5ee /mesonbuild/modules/pkgconfig.py | |
parent | a734bcfc83a67788f71b5b84a46a4d9727b5ec09 (diff) | |
download | meson-2e02ef6592fa6634eadbe388c2a5ee957ce20e59.zip meson-2e02ef6592fa6634eadbe388c2a5ee957ce20e59.tar.gz meson-2e02ef6592fa6634eadbe388c2a5ee957ce20e59.tar.bz2 |
modules: Add methods dict everywhere
This fix calling random internal methods from meson.build as long as
they were not prefixed by underscore.
Diffstat (limited to 'mesonbuild/modules/pkgconfig.py')
-rw-r--r-- | mesonbuild/modules/pkgconfig.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index c9d5361..c2f713c 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -280,6 +280,11 @@ class DependenciesHelper: self.cflags = _fn(self.cflags) class PkgConfigModule(ExtensionModule): + def __init__(self, interpreter): + super().__init__(interpreter) + self.methods.update({ + 'generate': self.generate, + }) def _get_lname(self, l, msg, pcfile, is_custom_target): if is_custom_target: |