summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-02 06:29:25 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-02 06:29:25 -0500
commite523488c70e33ec3bb83e785ec6dd20261b26974 (patch)
tree6077325aba8f47817b0455254fdda2ffe57e5104 /examples
parentf9d7e440829fb5899198517396bbc7e580ecb801 (diff)
chore: new NeBuild API and breaking SDK changes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/example_02_libnebuild/libnebuild.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/example_02_libnebuild/libnebuild.cc b/examples/example_02_libnebuild/libnebuild.cc
index c5f13fe..df5258b 100644
--- a/examples/example_02_libnebuild/libnebuild.cc
+++ b/examples/example_02_libnebuild/libnebuild.cc
@@ -2,14 +2,18 @@
#include <cstdlib>
#ifndef _WIN32
-static auto kPath = "./posix.json";
+static constexpr auto kPath = "./posix.json";
#else
-static auto kPath = ".\\win64.json";
+static constexpr auto kPath = ".\\win64.json";
#endif
int main(int argc, char** argv) {
auto builder = new NeBuild::JSONManifestBuilder();
if (!builder) return EXIT_FAILURE;
- return builder->BuildTarget(kPath);
+ NeBuild::BuildConfig config;
+ config.path_ = kPath;
+ config.dry_run_ = false;
+
+ return builder->BuildTarget(config);
}