aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2024-01-19 15:45:55 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2024-01-31 17:07:41 +0000
commit3ac33cd6c3f4519336d5266418948b69a4be5657 (patch)
tree92eb1e61fd4f5982bc3d2e2abf2613bf368371fd /src/lib
parentd00991695ca1933116b51bdb44ab362224930ae0 (diff)
Loader: Deprecate the fallback provider
The fallback provider creates modules for all named dependencies that were not found and only later checks during validation whether such a pkg-config module exists. This breaks assumptions all over the place. Since we have a superior replacement in qbspkgconfig, we now deprecate the fallback provider. Change-Id: I3694515865d63e7308cfab7778068aa2e480fe23 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/corelib/language/builtindeclarations.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/corelib/language/builtindeclarations.cpp b/src/lib/corelib/language/builtindeclarations.cpp
index 2ad0e3ef4..4a83279a8 100644
--- a/src/lib/corelib/language/builtindeclarations.cpp
+++ b/src/lib/corelib/language/builtindeclarations.cpp
@@ -247,8 +247,14 @@ void BuiltinDeclarations::addDependsItem()
item << PropertyDeclaration(StringConstants::multiplexConfigurationIdsProperty(),
PropertyDeclaration::StringList, QString(),
PropertyDeclaration::ReadOnlyFlag);
- item << PropertyDeclaration(StringConstants::enableFallbackProperty(),
- PropertyDeclaration::Boolean, StringConstants::trueValue());
+ PropertyDeclaration fallbackProp(
+ StringConstants::enableFallbackProperty(),
+ PropertyDeclaration::Boolean,
+ StringConstants::falseValue());
+ fallbackProp.setDeprecationInfo(DeprecationInfo(
+ Version(2, 4),
+ Tr::tr("The fallback provider has been deprecated. Use qbspkgconfig instead.")));
+ item << fallbackProp;
insert(item);
}