forked from qt-creator/qt-creator
ProjectExplorer: Provide the option to build only the app to be run
... instead of the entire project. This can speed up the development cycle by ignoring irrelevant changes in the project, potentially at the cost of missing parts that actually should be re-built (in particular with build systems where a product does not have full knowledge of its dependencies). Supported by qmake and qbs for now. Change-Id: Ic7101aa243e92ba139798d13366d256c1919dcc3 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -320,7 +320,8 @@ void TestRunner::prepareToRunTests(TestRunMode mode)
|
||||
m_runMode = mode;
|
||||
ProjectExplorer::Internal::ProjectExplorerSettings projectExplorerSettings =
|
||||
ProjectExplorerPlugin::projectExplorerSettings();
|
||||
if (mode != TestRunMode::RunAfterBuild && projectExplorerSettings.buildBeforeDeploy
|
||||
if (mode != TestRunMode::RunAfterBuild
|
||||
&& projectExplorerSettings.buildBeforeDeploy != ProjectExplorer::Internal::BuildBeforeRunMode::Off
|
||||
&& !projectExplorerSettings.saveBeforeBuild) {
|
||||
if (!ProjectExplorerPlugin::saveModifiedFiles())
|
||||
return;
|
||||
@@ -352,7 +353,8 @@ void TestRunner::prepareToRunTests(TestRunMode mode)
|
||||
m_targetConnect = connect(project, &Project::activeTargetChanged,
|
||||
[this]() { cancelCurrent(KitChanged); });
|
||||
|
||||
if (!projectExplorerSettings.buildBeforeDeploy || mode == TestRunMode::DebugWithoutDeploy
|
||||
if (projectExplorerSettings.buildBeforeDeploy == ProjectExplorer::Internal::BuildBeforeRunMode::Off
|
||||
|| mode == TestRunMode::DebugWithoutDeploy
|
||||
|| mode == TestRunMode::RunWithoutDeploy || mode == TestRunMode::RunAfterBuild) {
|
||||
runOrDebugTests();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user