summaryrefslogtreecommitdiffhomepage
path: root/dev/examples/example_02_libbtb/libbtb.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-17 07:32:30 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-17 07:36:57 +0100
commit20252df698106283d15ddf7d53f4e0dd9462666d (patch)
treebf77733ab5fddd3f09962cde9a22e9f1d485b6c9 /dev/examples/example_02_libbtb/libbtb.cc
parentcaecbd4e6eb2877b7e9bdd4fb2e4f3e370b336c9 (diff)
refactor! Lots of breaking changes to the codebase.
feat: Rename ‘btb‘ to ‘nebuild‘ to match nekernel.org's naming scheme. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/examples/example_02_libbtb/libbtb.cc')
-rw-r--r--dev/examples/example_02_libbtb/libbtb.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev/examples/example_02_libbtb/libbtb.cc b/dev/examples/example_02_libbtb/libbtb.cc
new file mode 100644
index 0000000..0b4d7c4
--- /dev/null
+++ b/dev/examples/example_02_libbtb/libbtb.cc
@@ -0,0 +1,15 @@
+#include <BuildKit/JSONManifestBuilder.h>
+#include <cstdlib>
+
+#ifndef _WIN32
+static auto kPath = "./posix.json";
+#else
+static auto kPath = ".\win64.json";
+#endif
+
+int main(int argc, char** argv) {
+ auto builder = new BTB::JSONManifestBuilder();
+ if (!builder) return EXIT_FAILURE;
+
+ return builder->buildTarget(strlen(kPath), kPath);
+}