diff options
author | Iikka Eklund <iikka.eklund@qt.io> | 2022-01-26 11:35:09 +0200 |
---|---|---|
committer | Iikka Eklund <iikka.eklund@qt.io> | 2022-05-12 12:04:52 +0000 |
commit | e2458e213e267bf931667d7fa23a8ed98f9addc9 (patch) | |
tree | cd603ef68561543bac076c92ef06aa65061ef19b /conanfile.py | |
parent | 2ce50224191d3420cd98fb333bc97734350bffd8 (diff) |
Conan: Enable recipe exclude options passed to qt-configure-module
Current implementation allows only to enable a leaf module feature
and when setting the option/feature to 'no' it gets translated to not
being passed at all to qt-configure-module.
This change calls 'convert_qt_features_to_conan_options()' from
qt-conan-common module which can correctly translate the given recipe
options so that:
-o option1=True
-> qt-configure-module -feature-option1
-o option1=False
-> qt-configure-module -no-feature-option1
Task-number: QTBUG-100073
Pick-to: 6.3
Change-Id: Id32f451ec029ced1ad17a6e4258d885baa5d3661
Reviewed-by: Toni Saario <toni.saario@qt.io>
Diffstat (limited to 'conanfile.py')
-rw-r--r-- | conanfile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/conanfile.py b/conanfile.py index 1fe8debe40..405aa87850 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,6 +1,6 @@ ############################################################################# ## -## Copyright (C) 2021 The Qt Company Ltd. +## Copyright (C) 2022 The Qt Company Ltd. ## Contact: https://www.qt.io/licensing/ ## ## This file is part of the release tools of the Qt Toolkit. @@ -96,8 +96,8 @@ class QtDeclarative(ConanFile): def get_qt_leaf_module_options(self) -> Dict[str, Any]: """Implements abstractmethod from qt-conan-common.QtLeafModule""" - return {item.replace("-", "_"): ["yes", "no", None] for item in _qtdeclarative_features} + return self._shared.convert_qt_features_to_conan_options(_qtdeclarative_features) def get_qt_leaf_module_default_options(self) -> Dict[str, Any]: """Implements abstractmethod from qt-conan-common.QtLeafModule""" - return {item.replace("-", "_"): None for item in _qtdeclarative_features} + return self._shared.convert_qt_features_to_default_conan_options(_qtdeclarative_features) |