diff options
author | Christiaan Janssen <christiaan.janssen@qt.io> | 2022-02-22 13:36:55 +0100 |
---|---|---|
committer | Piotr Mućko <piotr.mucko@qt.io> | 2022-03-11 14:24:34 +0000 |
commit | e293aab725a36f1295bea050caed35a236c58c2a (patch) | |
tree | 0da437e5c43d69363c31e98539ec7d9ef6858879 /src/plugins/mcusupport/mcupackage.cpp | |
parent | cd8c4ced811a8d022d3e244a482a4a3bbc513d83 (diff) | |
download | qt-creator-e293aab725a36f1295bea050caed35a236c58c2a.tar.gz |
McuSupport: remove cmake mapper
Starting with Qt For MCUs 2.0, environment variables are not
used to track dependencies any more, but cmake variables are.
Due to time constraints, we implemented a env-to-cmake mapper
to cover that gap at the moment. This patch removes that hack
and implements tracking dependencies through cmake variables.
Task-number: QTCREATORBUG-26904
Change-Id: Id8553a764d212d9b12e4adc54fc56233bfeb9a5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/mcusupport/mcupackage.cpp')
-rw-r--r-- | src/plugins/mcusupport/mcupackage.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/mcusupport/mcupackage.cpp b/src/plugins/mcusupport/mcupackage.cpp index 171f326fa9..cd4d0f0661 100644 --- a/src/plugins/mcusupport/mcupackage.cpp +++ b/src/plugins/mcusupport/mcupackage.cpp @@ -53,6 +53,7 @@ McuPackage::McuPackage(const QString &label, const FilePath &defaultPath, const FilePath &detectionPath, const QString &settingsKey, + const QString &cmakeVarName, const QString &envVarName, const QString &downloadUrl, const McuPackageVersionDetector *versionDetector, @@ -64,6 +65,7 @@ McuPackage::McuPackage(const QString &label, , m_settingsKey(settingsKey) , m_versionDetector(versionDetector) , m_relativePathModifier(relativePathModifier) + , m_cmakeVariableName(cmakeVarName) , m_environmentVariableName(envVarName) , m_downloadUrl(downloadUrl) , m_addToSystemPath(addToSystemPath) @@ -81,6 +83,11 @@ QString McuPackage::settingsKey() const return m_settingsKey; } +const QString &McuPackage::cmakeVariableName() const +{ + return m_cmakeVariableName; +} + const QString &McuPackage::environmentVariableName() const { return m_environmentVariableName; @@ -278,9 +285,10 @@ McuToolChainPackage::McuToolChainPackage(const QString &label, const FilePath &detectionPath, const QString &settingsKey, McuToolChainPackage::ToolChainType type, + const QString &cmakeVarName, const QString &envVarName, const McuPackageVersionDetector *versionDetector) - : McuPackage(label, defaultPath, detectionPath, settingsKey, envVarName, {}, versionDetector) + : McuPackage(label, defaultPath, detectionPath, settingsKey, cmakeVarName, envVarName, {}, versionDetector) , m_type(type) {} |