AbstractProcessStep: Use task tree for all subclasses

Introduce AbstractProcessStep::runRecipe() virtual method
with the default implementation.

Task-number: QTCREATORBUG-29168
Change-Id: Iac75f4c38f8ee91ad8ac9324bb27881a3722911f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-07-12 16:30:33 +02:00
parent 0b2565a3e7
commit 47ac604aea
16 changed files with 61 additions and 103 deletions

View File

@@ -40,7 +40,7 @@ public:
AutogenStep(BuildStepList *bsl, Id id);
private:
void doRun() final;
Tasking::GroupItem runRecipe() final;
bool m_runAutogen = false;
StringAspect m_arguments{this};
@@ -70,7 +70,7 @@ AutogenStep::AutogenStep(BuildStepList *bsl, Id id) : AbstractProcessStep(bsl, i
});
}
void AutogenStep::doRun()
Tasking::GroupItem AutogenStep::runRecipe()
{
using namespace Tasking;
@@ -96,7 +96,7 @@ void AutogenStep::doRun()
};
const auto onDone = [this] { m_runAutogen = false; };
runTaskTree({onGroupSetup(onSetup), onGroupDone(onDone), defaultProcessTask()});
return Group { onGroupSetup(onSetup), onGroupDone(onDone), defaultProcessTask() };
}
// AutogenStepFactory