summaryrefslogtreecommitdiffhomepage
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/example_01_hello_world/hello_world.cc7
-rw-r--r--examples/example_01_hello_world/posix.json10
-rw-r--r--examples/example_01_hello_world/win64.json10
-rw-r--r--examples/example_02_libbtb/README.md7
-rw-r--r--examples/example_02_libbtb/libbtb.cc15
-rw-r--r--examples/example_02_libbtb/posix.json20
-rw-r--r--examples/example_02_libbtb/win64.json19
7 files changed, 0 insertions, 88 deletions
diff --git a/examples/example_01_hello_world/hello_world.cc b/examples/example_01_hello_world/hello_world.cc
deleted file mode 100644
index ae47ce8..0000000
--- a/examples/example_01_hello_world/hello_world.cc
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <iostream>
-#include <string>
-
-int main(int argc, char** argv) {
- std::cout << "hello, world!\n";
- return 0;
-}
diff --git a/examples/example_01_hello_world/posix.json b/examples/example_01_hello_world/posix.json
deleted file mode 100644
index c3c8151..0000000
--- a/examples/example_01_hello_world/posix.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "compiler_path": "g++",
- "compiler_std": "c++20",
- "headers_path": ["lib"],
- "sources_path": ["hello_world.cc"],
- "output_name": "hello_world.elf",
- "compiler_flags": ["-fPIC"],
- "cpp_macros": ["FOO_MACRO"],
- "run_after_build": true
-}
diff --git a/examples/example_01_hello_world/win64.json b/examples/example_01_hello_world/win64.json
deleted file mode 100644
index 4af5bdd..0000000
--- a/examples/example_01_hello_world/win64.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "compiler_path": "x86_64-w64-mingw32-g++",
- "compiler_std": "c++20",
- "headers_path": ["lib"],
- "sources_path": ["hello_world.cc"],
- "output_name": "hello_world.elf",
- "compiler_flags": ["-fPIC"],
- "cpp_macros": ["FOO_MACRO"],
- "run_after_build": true
-}
diff --git a/examples/example_02_libbtb/README.md b/examples/example_02_libbtb/README.md
deleted file mode 100644
index 26ccb72..0000000
--- a/examples/example_02_libbtb/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Notice for Deployment.
-
-In order to use libBTB, it shall live on the same directory,
-<br/>
-or within a directory recognized in the `$LD_LIBRARY_PATH` or `$DYLD_LIBRARY_PATH` variable.
-
-## Thanks in advance. \ No newline at end of file
diff --git a/examples/example_02_libbtb/libbtb.cc b/examples/example_02_libbtb/libbtb.cc
deleted file mode 100644
index 21e3e17..0000000
--- a/examples/example_02_libbtb/libbtb.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <BTBKit/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);
-}
diff --git a/examples/example_02_libbtb/posix.json b/examples/example_02_libbtb/posix.json
deleted file mode 100644
index 871712e..0000000
--- a/examples/example_02_libbtb/posix.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "compiler_path": "g++",
- "compiler_std": "c++20",
- "headers_path": [
- "../../",
- "../../vendor"
- ],
- "sources_path": [
- "libbtb.cc"
- ],
- "output_name": "libbtb.elf",
- "compiler_flags": [
- "-L/usr/local/lib",
- "-lBTB"
- ],
- "cpp_macros": [
- "FOO_MACRO"
- ],
- "run_after_build": true
-} \ No newline at end of file
diff --git a/examples/example_02_libbtb/win64.json b/examples/example_02_libbtb/win64.json
deleted file mode 100644
index 658ee0f..0000000
--- a/examples/example_02_libbtb/win64.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "compiler_path": "x86_64-w64-mingw32-g++",
- "compiler_std": "c++20",
- "headers_path": [
- "../../",
- "../../vendor"
- ],
- "sources_path": [
- "libbtb.cc"
- ],
- "output_name": "libbtb.exe",
- "compiler_flags": [
- "-lBTB"
- ],
- "cpp_macros": [
- "FOO_MACRO"
- ],
- "run_after_build": true
-} \ No newline at end of file