summaryrefslogtreecommitdiffhomepage
path: root/example/example_02_libnebuild/libnebuild.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-19 14:15:06 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-19 14:15:06 +0100
commit2ae776318e6c92079528c35f3f5faf81f54fa10e (patch)
tree80ce9d565cf53927243d6d1f6e8c9006e2b790db /example/example_02_libnebuild/libnebuild.cc
parentdb5d7e371e7183e4b5db26632ae2f511db4e0e41 (diff)
chore: Add MailMap, rename `examples` to `example`.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/example_02_libnebuild/libnebuild.cc')
-rw-r--r--example/example_02_libnebuild/libnebuild.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/example/example_02_libnebuild/libnebuild.cc b/example/example_02_libnebuild/libnebuild.cc
new file mode 100644
index 0000000..fffb962
--- /dev/null
+++ b/example/example_02_libnebuild/libnebuild.cc
@@ -0,0 +1,17 @@
+#include <NeBuildKit/JSONManifestBuilder.h>
+
+int main(int argc, char** argv) {
+#ifndef _WIN32
+ constexpr auto path = "./posix.json";
+#else
+ constexpr auto path = ".\\win64.json";
+#endif
+
+ NeBuild::JSONManifestBuilder builder;
+ NeBuild::BuildConfig config;
+
+ config.path_ = path;
+ config.dry_run_ = false;
+
+ return builder.BuildTarget(config);
+}