summaryrefslogtreecommitdiff
path: root/mesonbuild/modules/pkgconfig.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/pkgconfig.py
parent2801ead6d3a144f3cf7ae03f61bb463c7aeac0a9 (diff)
downloadmeson-6843f56f6b8e71e75c287de31686913eea5e4a44.tar.gz
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/pkgconfig.py')
-rw-r--r--mesonbuild/modules/pkgconfig.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
index 830341cc1..394b4805d 100644
--- a/mesonbuild/modules/pkgconfig.py
+++ b/mesonbuild/modules/pkgconfig.py
@@ -16,7 +16,7 @@ from pathlib import PurePath
import os
import typing as T
-from . import ExtensionModule
+from . import ExtensionModule, ModuleInfo
from . import ModuleReturnValue
from .. import build
from .. import dependencies
@@ -276,6 +276,9 @@ class DependenciesHelper:
self.cflags = _fn(self.cflags)
class PkgConfigModule(ExtensionModule):
+
+ INFO = ModuleInfo('pkgconfig')
+
def __init__(self, interpreter):
super().__init__(interpreter)
self.methods.update({