forked from qt-creator/qt-creator
Move mcu deploy step into the mcusupport plugin
This deploy step will run the qmlprojectexporter commandline tool on the currently active qmlproject if qtForMCUs is set to true. The output of the tool is shown in the "Compile Output" panel. Possible configuration issues are shown in the "Issues" panel. Note that the step is not removed from the list but disabled when setting qtForMCUs to false in order to retain possible changes made by the user. Change-Id: I03b0d6fbe420b49400d48e7365d4395491b9aa2d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
36936196bf
commit
5bf1b598c1
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "mcusupportplugin.h"
|
||||
|
||||
#include "mcubuildstep.h"
|
||||
#include "mcukitinformation.h"
|
||||
#include "mcukitmanager.h"
|
||||
#include "mcuqmlprojectnode.h"
|
||||
@@ -98,6 +99,7 @@ public:
|
||||
McuSupportOptions m_options{m_settingsHandler};
|
||||
McuSupportOptionsPage optionsPage{m_options, m_settingsHandler};
|
||||
McuDependenciesKitAspect environmentPathsKitAspect;
|
||||
MCUBuildStepFactory mcuBuildStepFactory;
|
||||
}; // class McuSupportPluginPrivate
|
||||
|
||||
static McuSupportPluginPrivate *dd{nullptr};
|
||||
@@ -219,4 +221,9 @@ void McuSupportPlugin::askUserAboutRemovingUninstalledTargetsKits()
|
||||
ICore::infoBar()->addInfo(info);
|
||||
}
|
||||
|
||||
void McuSupportPlugin::updateDeployStep(ProjectExplorer::Target *target, bool enabled)
|
||||
{
|
||||
MCUBuildStepFactory::updateDeployStep(target, enabled);
|
||||
}
|
||||
|
||||
} // namespace McuSupport::Internal
|
||||
|
||||
Reference in New Issue
Block a user