diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-12-27 17:36:44 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-12-31 12:03:57 +0200 |
commit | 688b4bac767f0a02af125febd49a0e0c5a2fe01e (patch) | |
tree | 2157df2e666ed31065528640ca1d95febbef1744 /mesonbuild/modules | |
parent | 9f8df3529fa9026134d8fc01ab6daa21f36dcfbf (diff) | |
download | meson-688b4bac767f0a02af125febd49a0e0c5a2fe01e.zip meson-688b4bac767f0a02af125febd49a0e0c5a2fe01e.tar.gz meson-688b4bac767f0a02af125febd49a0e0c5a2fe01e.tar.bz2 |
add FeatureNew decorators for various modules that were lacking them
Going back to 0.38, though some of them are far older. The original
implementation of FeatureNew only added backdated feature checks that
far, anyway.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/cmake.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/dlang.py | 2 | ||||
-rw-r--r-- | mesonbuild/modules/fs.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/python3.py | 3 | ||||
-rw-r--r-- | mesonbuild/modules/qt6.py | 2 |
5 files changed, 8 insertions, 1 deletions
diff --git a/mesonbuild/modules/cmake.py b/mesonbuild/modules/cmake.py index fd831e6..0c61b47 100644 --- a/mesonbuild/modules/cmake.py +++ b/mesonbuild/modules/cmake.py @@ -212,6 +212,7 @@ class CmakeModule(ExtensionModule): cmake_detected = False cmake_root = None + @FeatureNew('CMake Module', '0.50.0') def __init__(self, interpreter): super().__init__(interpreter) self.methods.update({ diff --git a/mesonbuild/modules/dlang.py b/mesonbuild/modules/dlang.py index ddb780b..558ca81 100644 --- a/mesonbuild/modules/dlang.py +++ b/mesonbuild/modules/dlang.py @@ -21,12 +21,14 @@ import os from . import ExtensionModule from .. import dependencies from .. import mlog +from ..interpreterbase import FeatureNew from ..mesonlib import Popen_safe, MesonException class DlangModule(ExtensionModule): class_dubbin = None init_dub = False + @FeatureNew('Dlang Module', '0.48.0') def __init__(self, interpreter): super().__init__(interpreter) self.methods.update({ diff --git a/mesonbuild/modules/fs.py b/mesonbuild/modules/fs.py index ab3aae2..5faee83 100644 --- a/mesonbuild/modules/fs.py +++ b/mesonbuild/modules/fs.py @@ -41,6 +41,7 @@ if T.TYPE_CHECKING: class FSModule(ExtensionModule): + @FeatureNew('Fs Module', '0.53.0') def __init__(self, interpreter: 'Interpreter') -> None: super().__init__(interpreter) self.methods.update({ diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index dc1f7c7..f7600e2 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.py @@ -16,12 +16,13 @@ import sysconfig from .. import mesonlib from . import ExtensionModule -from ..interpreterbase import noKwargs, permittedKwargs, FeatureDeprecated +from ..interpreterbase import noKwargs, permittedKwargs, FeatureDeprecated, FeatureNew from ..build import known_shmod_kwargs from ..programs import ExternalProgram class Python3Module(ExtensionModule): + @FeatureNew('python3 module', '0.38.0') @FeatureDeprecated('python3 module', '0.48.0') def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) diff --git a/mesonbuild/modules/qt6.py b/mesonbuild/modules/qt6.py index d9cd651..3cfe243 100644 --- a/mesonbuild/modules/qt6.py +++ b/mesonbuild/modules/qt6.py @@ -13,10 +13,12 @@ # limitations under the License. from .qt import QtBaseModule +from ..interpreterbase import FeatureNew class Qt6Module(QtBaseModule): + @FeatureNew('Qt6 Module', '0.57.0') def __init__(self, interpreter): QtBaseModule.__init__(self, interpreter, qt_version=6) |