From 4c49688ad0fc29e951abc0a63cc24fff31140155 Mon Sep 17 00:00:00 2001 From: Daniel Brondani Date: Mon, 9 Oct 2023 15:59:56 +0200 Subject: [PATCH] [projmgr] External Generator PoC - Update --- tools/projmgr/src/ProjMgrExtGenerator.cpp | 2 +- tools/projmgr/src/ProjMgrWorker.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/projmgr/src/ProjMgrExtGenerator.cpp b/tools/projmgr/src/ProjMgrExtGenerator.cpp index 3b5e3bb0b..deecccc21 100644 --- a/tools/projmgr/src/ProjMgrExtGenerator.cpp +++ b/tools/projmgr/src/ProjMgrExtGenerator.cpp @@ -95,5 +95,5 @@ bool ProjMgrExtGenerator::GetCgen(const string& contextId, ClayerItem& cgen) { } } } - return false; + return true; } \ No newline at end of file diff --git a/tools/projmgr/src/ProjMgrWorker.cpp b/tools/projmgr/src/ProjMgrWorker.cpp index a3874b796..69516be62 100644 --- a/tools/projmgr/src/ProjMgrWorker.cpp +++ b/tools/projmgr/src/ProjMgrWorker.cpp @@ -4098,7 +4098,10 @@ bool ProjMgrWorker::ExecuteExtGenerator(std::string& generatorId) { bool ProjMgrWorker::ProcessGeneratedLayers(ContextItem& context) { ClayerItem cgen; - if (m_extGenerator->GetCgen(context.name, cgen)) { + if (!m_extGenerator->GetCgen(context.name, cgen)) { + return false; + } + if (!cgen.path.empty()) { context.clayers[cgen.path] = &cgen; if (cgen.packs.size() > 0) { vector packRequirements;