aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/windows.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-07-14 12:59:48 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-08-17 16:25:36 -0400
commit6843f56f6b8e71e75c287de31686913eea5e4a44 (patch)
treea92e933d88d48dd2bfd4a1fc2bb652296f053332 /mesonbuild/modules/windows.py
parent2801ead6d3a144f3cf7ae03f61bb463c7aeac0a9 (diff)
downloadmeson-6843f56f6b8e71e75c287de31686913eea5e4a44.zip
meson-6843f56f6b8e71e75c287de31686913eea5e4a44.tar.gz
meson-6843f56f6b8e71e75c287de31686913eea5e4a44.tar.bz2
modules: use module level information about new and deprecation
Instead of using FeatureNew/FeatureDeprecated in the module. The goal here is to be able to handle information about modules in a single place, instead of having to handle it separately. Each module simply defines some metadata, and then the interpreter handles the rest.
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r--mesonbuild/modules/windows.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py
index 58a08a7..17ee5f1 100644
--- a/mesonbuild/modules/windows.py
+++ b/mesonbuild/modules/windows.py
@@ -18,7 +18,7 @@ import re
import typing as T
-from . import ExtensionModule
+from . import ExtensionModule, ModuleInfo
from . import ModuleReturnValue
from .. import mesonlib, build
from .. import mlog
@@ -55,6 +55,9 @@ class ResourceCompilerType(enum.Enum):
wrc = 3
class WindowsModule(ExtensionModule):
+
+ INFO = ModuleInfo('windows')
+
def __init__(self, interpreter: 'Interpreter'):
super().__init__(interpreter)
self._rescomp: T.Optional[T.Tuple[ExternalProgram, ResourceCompilerType]] = None