diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2024-10-25 18:44:01 +0200 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2024-10-25 18:44:01 +0200 |
| commit | d7dcb2695ca2c69b45314cfc261c395e935d355b (patch) | |
| tree | 32ed6a8aa938944a76eb407ecbc223a2d3a76e32 /src | |
| parent | b2c3e134b968e75faf6db29536755f0304c63b64 (diff) | |
IMP: Add a new contract method for those who implements IManifestBuilder.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/JSONManifestBuilder.cc | 8 |
1 files changed, 6 insertions, 2 deletions
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 <JSONManifestBuilder.h> -#include <json.h> #include <sstream> #include <iostream> @@ -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"; +} |
