- Renamed build script for brief target descriptor generation

- Created new TargetService class
- Moved brief target descriptor mapping to new TargetService class
- Replaced CMake custom commands with custom targets, for TDF validation and brief target descriptor generation build scripts
- Moved BriefTargetDescriptor into separate header file
This commit is contained in:
Nav
2024-03-02 01:59:55 +00:00
parent e75ce8b403
commit 4aa8ed30de
12 changed files with 182 additions and 123 deletions

View File

@@ -58,6 +58,7 @@
#include "Responses/Breakpoint.hpp"
#include "src/DebugToolDrivers/DebugTools.hpp"
#include "src/Targets/BriefTargetDescriptor.hpp"
#include "src/Targets/Target.hpp"
#include "src/Targets/Targets.hpp"
#include "src/Targets/TargetRegister.hpp"
@@ -248,12 +249,10 @@ namespace TargetController
/**
* Constructs a Target instance from a BriefTargetDescriptor object.
*
* @param targetBrief
* @param briefDescriptor
* @return
*/
std::unique_ptr<Targets::Target> constructTargetFromBrief(
const Targets::TargetDescription::GeneratedMapping::BriefTargetDescriptor& targetBrief
);
std::unique_ptr<Targets::Target> constructTarget(const Targets::BriefTargetDescriptor& briefDescriptor);
/**
* Processes any pending commands in the queue.