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/windows.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/windows.py')
-rw-r--r-- | mesonbuild/modules/windows.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index c4fdc19..441fb9f 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -30,6 +30,11 @@ class ResourceCompilerType(enum.Enum): rc = 2 class WindowsModule(ExtensionModule): + def __init__(self, interpreter): + super().__init__(interpreter) + self.methods.update({ + 'compile_resources': self.compile_resources, + }) def detect_compiler(self, compilers): for l in ('c', 'cpp'): |