diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-07-14 12:59:48 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-08-17 16:25:36 -0400 |
commit | 6843f56f6b8e71e75c287de31686913eea5e4a44 (patch) | |
tree | a92e933d88d48dd2bfd4a1fc2bb652296f053332 /mesonbuild/modules/qt6.py | |
parent | 2801ead6d3a144f3cf7ae03f61bb463c7aeac0a9 (diff) | |
download | meson-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/qt6.py')
-rw-r--r-- | mesonbuild/modules/qt6.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/modules/qt6.py b/mesonbuild/modules/qt6.py index 3cfe243..66fc43f 100644 --- a/mesonbuild/modules/qt6.py +++ b/mesonbuild/modules/qt6.py @@ -13,12 +13,13 @@ # limitations under the License. from .qt import QtBaseModule -from ..interpreterbase import FeatureNew +from . import ModuleInfo class Qt6Module(QtBaseModule): - @FeatureNew('Qt6 Module', '0.57.0') + INFO = ModuleInfo('qt6', '0.57.0') + def __init__(self, interpreter): QtBaseModule.__init__(self, interpreter, qt_version=6) |