From d7dcb2695ca2c69b45314cfc261c395e935d355b Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 25 Oct 2024 18:44:01 +0200 Subject: IMP: Add a new contract method for those who implements IManifestBuilder. Signed-off-by: Amlal --- src/JSONManifestBuilder.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/JSONManifestBuilder.cc b/src/JSONManifestBuilder.cc index e5db6b8..37cefbc 100644 --- a/src/JSONManifestBuilder.cc +++ b/src/JSONManifestBuilder.cc @@ -4,7 +4,6 @@ // ============================================================= // #include -#include #include #include @@ -17,7 +16,7 @@ using JSON = nlohmann::json; /// @param arg_val filename path (must be a valid JSON file). /// @retval true succeeded building. /// @retval false failed to build. -bool JSONManifestBuilder::Build(int arg_sz, const char* arg_val) +bool JSONManifestBuilder::buildTarget(int arg_sz, const char* arg_val) { std::string path; @@ -150,3 +149,8 @@ bool JSONManifestBuilder::Build(int arg_sz, const char* arg_val) return true; } + +const char* JSONManifestBuilder::buildSystem() +{ + return "json"; +} -- cgit v1.2.3