summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-23 09:10:10 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-23 09:10:10 +0100
commitbb11d32131e786b40550375005b12bcb31cf25d7 (patch)
treede8aff234ac4e57ee333e9af74f331921ae904bc
parentf61f6168ea9da22a1b5a5af62cb4167a7d3018db (diff)
feat! NeBuild and BuildKit has been improved and refactored.
They now are called 'nebuild' instead of 'btb' Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--dev/BuildKit/IManifestBuilder.h2
-rw-r--r--dev/BuildKit/Includes.h6
-rw-r--r--dev/BuildKit/JSONManifestBuilder.h5
-rw-r--r--dev/BuildKit/Macros.h12
-rw-r--r--dev/examples/example_02_libbtb/README.md2
-rw-r--r--dev/src/JSONManifestBuilder.cc2
-rw-r--r--osx-dylib.json4
-rw-r--r--osx.json2
-rw-r--r--posix.json2
-rw-r--r--win64.json2
10 files changed, 21 insertions, 18 deletions
diff --git a/dev/BuildKit/IManifestBuilder.h b/dev/BuildKit/IManifestBuilder.h
index 1c160c4..065bec3 100644
--- a/dev/BuildKit/IManifestBuilder.h
+++ b/dev/BuildKit/IManifestBuilder.h
@@ -8,7 +8,7 @@
#include <BuildKit/Includes.h>
#include <BuildKit/Macros.h>
-#define BTB_MANIFEST_BUILDER : public BTB::IManifestBuilder
+#define NEBUILD_MANIFEST_BUILDER : public BTB::IManifestBuilder
namespace BTB {
/// @brief Builder interface class.
diff --git a/dev/BuildKit/Includes.h b/dev/BuildKit/Includes.h
index e321483..4cb3043 100644
--- a/dev/BuildKit/Includes.h
+++ b/dev/BuildKit/Includes.h
@@ -3,8 +3,8 @@
// Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
// ============================================================= //
-#ifndef BTB_INCLUDES_H
-#define BTB_INCLUDES_H
+#ifndef NEBUILD_INCLUDES_H
+#define NEBUILD_INCLUDES_H
#include <cstddef>
#include <cstdio>
@@ -14,4 +14,4 @@
#include <string>
#include <thread>
-#endif // BTB_INCLUDES_H
+#endif // NEBUILD_INCLUDES_H
diff --git a/dev/BuildKit/JSONManifestBuilder.h b/dev/BuildKit/JSONManifestBuilder.h
index a4fe66b..f7c769d 100644
--- a/dev/BuildKit/JSONManifestBuilder.h
+++ b/dev/BuildKit/JSONManifestBuilder.h
@@ -8,9 +8,12 @@
#include <BuildKit/IManifestBuilder.h>
#include <json.h>
+/// @file JSONManifestBuilder.h
+/// @brief JSON manifest builder header file.
+
namespace BTB {
/// @brief JSON builder
-class JSONManifestBuilder final BTB_MANIFEST_BUILDER {
+class JSONManifestBuilder final NEBUILD_MANIFEST_BUILDER {
public:
JSONManifestBuilder() = default;
~JSONManifestBuilder() override = default;
diff --git a/dev/BuildKit/Macros.h b/dev/BuildKit/Macros.h
index 1b1613d..98bf891 100644
--- a/dev/BuildKit/Macros.h
+++ b/dev/BuildKit/Macros.h
@@ -14,15 +14,15 @@ extern "C" {
#define LIKELY(ARG) ((ARG) ? assert(false) : ((void) 0))
#define UNLIKELY(ARG) LIKELY(!(ARG))
-#define LIBBTB_VERSION "v0.0.1-libBTB"
+#define LIBNEBUILD_VERSION "v0.0.1-libNeBuild"
-#define LIBBTB_VERSION_BCD 0x0001
+#define LIBNEBUILD_VERSION_BCD 0x0001
-#define LIBBTB_VERSION_MAJOR 1
-#define LIBBTB_VERSION_MINOR 1
-#define LIBBTB_VERSION_PATCH 0
+#define LIBNEBUILD_VERSION_MAJOR 1
+#define LIBNEBUILD_VERSION_MINOR 1
+#define LIBNEBUILD_VERSION_PATCH 0
-#define LIBBTB_UNUSED(X) ((void) X)
+#define LIBNEBUILD_UNUSED(X) ((void) X)
namespace BTB::Logger {
/// @brief replacement for std::cout for BTB logging.
diff --git a/dev/examples/example_02_libbtb/README.md b/dev/examples/example_02_libbtb/README.md
index 26ccb72..21e64be 100644
--- a/dev/examples/example_02_libbtb/README.md
+++ b/dev/examples/example_02_libbtb/README.md
@@ -1,6 +1,6 @@
# Notice for Deployment.
-In order to use libBTB, it shall live on the same directory,
+In order to use libNeBuild, it shall live on the same directory,
<br/>
or within a directory recognized in the `$LD_LIBRARY_PATH` or `$DYLD_LIBRARY_PATH` variable.
diff --git a/dev/src/JSONManifestBuilder.cc b/dev/src/JSONManifestBuilder.cc
index e93bcb7..aa277c7 100644
--- a/dev/src/JSONManifestBuilder.cc
+++ b/dev/src/JSONManifestBuilder.cc
@@ -130,7 +130,7 @@ bool JSONManifestBuilder::buildTarget(int arg_sz, const char* arg_val, const boo
return true;
}
-#if defined(BTB_WINDOWS)
+#if defined(NEBUILD_WINDOWS)
std::system((".\\" + target).c_str());
#else
std::system(("./" + target).c_str());
diff --git a/osx-dylib.json b/osx-dylib.json
index 3c49abb..7f7648d 100644
--- a/osx-dylib.json
+++ b/osx-dylib.json
@@ -3,8 +3,8 @@
"compiler_std": "c++20",
"headers_path": ["dev", "vendor"],
"sources_path": ["dev/src/*.cc"],
- "output_name": "libBTB.dylib",
+ "output_name": "libNeBuild.dylib",
"compiler_flags": ["-fPIC", "-shared"],
- "cpp_macros": ["BTB_DYLIB", "BTB_OSX"],
+ "cpp_macros": ["NEBUILD_DYLIB", "NEBUILD_OSX"],
"run_after_build": false
}
diff --git a/osx.json b/osx.json
index b4a860c..8e247d9 100644
--- a/osx.json
+++ b/osx.json
@@ -5,6 +5,6 @@
"sources_path": ["dev/src/*.cc", "dev/cli/*.cc"],
"output_name": "nebuild",
"compiler_flags": ["-fPIC"],
- "cpp_macros": ["BTB_POSIX", "BTB_OSX"],
+ "cpp_macros": ["NEBUILD_POSIX", "NEBUILD_OSX"],
"run_after_build": false
}
diff --git a/posix.json b/posix.json
index 540c877..5281d4d 100644
--- a/posix.json
+++ b/posix.json
@@ -5,6 +5,6 @@
"sources_path": ["dev/src/*.cc", "dev/cli/*.cc"],
"output_name": "nebuild",
"compiler_flags": ["-fPIC"],
- "cpp_macros": ["BTB_POSIX"],
+ "cpp_macros": ["NEBUILD_POSIX"],
"run_after_build": false
}
diff --git a/win64.json b/win64.json
index 65a42be..6585723 100644
--- a/win64.json
+++ b/win64.json
@@ -5,6 +5,6 @@
"sources_path": ["dev/src/*.cc", "dev/cli/*.cc"],
"output_name": "nebuild.exe",
"compiler_flags": ["-fPIC"],
- "cpp_macros": ["BTB_WINDOWS"],
+ "cpp_macros": ["NEBUILD_WINDOWS"],
"run_after_build": false
}