summaryrefslogtreecommitdiffhomepage
path: root/src/lib/TOMLManifestBuilder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/TOMLManifestBuilder.cc')
-rw-r--r--src/lib/TOMLManifestBuilder.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/TOMLManifestBuilder.cc b/src/lib/TOMLManifestBuilder.cc
index fc10c88..a58b280 100644
--- a/src/lib/TOMLManifestBuilder.cc
+++ b/src/lib/TOMLManifestBuilder.cc
@@ -4,6 +4,7 @@
// ============================================================= //
#include <NeBuildKit/TOMLManifestBuilder.h>
+#include <toml++/toml.hpp>
#include <filesystem>
using namespace NeBuild;
@@ -17,14 +18,14 @@ namespace FS = std::filesystem;
/// @retval true building has succeeded.
/// @retval false fail to build, see error message.
/// =========================================================== ///
-bool TOMLManifestBuilder::BuildTarget(const std::string& argv_val, const bool dry_run) {
+bool TOMLManifestBuilder::BuildTarget(BuildConfig& config) {
std::string path;
- if (argv_val.empty()) {
+ if (config.path_.empty()) {
NeBuild::Logger::info() << "nebuild: error: file path is empty" << std::endl;
return false;
} else {
- path = argv_val;
+ path = config.path_;
if (!FS::exists(path)) {
NeBuild::Logger::info() << "nebuild: error: file '" << path << "' does not exist"