summaryrefslogtreecommitdiffhomepage
path: root/BTBKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-28 03:19:14 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-28 03:19:14 +0200
commitb250a9858728ad9078e482ccf95f938ceb0ae24c (patch)
tree7190d7c9312a99ac83faf03da53b0612c1ea4eba /BTBKit
parent23f0a09cb5bb9a211358e613557ab60b3cbd7172 (diff)
fix: fix dylib build on POSIX targets.
feat: add libBTB example, and updated libBTB version. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'BTBKit')
-rw-r--r--BTBKit/IManifestBuilder.h3
-rw-r--r--BTBKit/JSONManifestBuilder.h9
-rw-r--r--BTBKit/Macros.h4
3 files changed, 7 insertions, 9 deletions
diff --git a/BTBKit/IManifestBuilder.h b/BTBKit/IManifestBuilder.h
index 41c62df..e11d431 100644
--- a/BTBKit/IManifestBuilder.h
+++ b/BTBKit/IManifestBuilder.h
@@ -15,7 +15,7 @@ namespace BTB {
/// @note This class is meant to be used as an interface.
class IManifestBuilder {
public:
- explicit IManifestBuilder() = default;
+ IManifestBuilder() = default;
virtual ~IManifestBuilder() = default;
IManifestBuilder& operator=(const IManifestBuilder&) = default;
@@ -27,7 +27,6 @@ class IManifestBuilder {
/// @retval true succeeded.
/// @retval false failed.
virtual bool buildTarget(int arg_sz, const char* arg_val, const bool dry_run = false) = 0;
-
virtual const char* buildSystem() = 0;
};
} // namespace BTB \ No newline at end of file
diff --git a/BTBKit/JSONManifestBuilder.h b/BTBKit/JSONManifestBuilder.h
index 6654a9b..f5d874c 100644
--- a/BTBKit/JSONManifestBuilder.h
+++ b/BTBKit/JSONManifestBuilder.h
@@ -12,8 +12,8 @@ namespace BTB {
/// @brief JSON builder
class JSONManifestBuilder final BTB_MANIFEST_BUILDER {
public:
- explicit JSONManifestBuilder() = default;
- virtual ~JSONManifestBuilder() override = default;
+ JSONManifestBuilder() = default;
+ ~JSONManifestBuilder() override = default;
JSONManifestBuilder& operator=(const JSONManifestBuilder&) = default;
JSONManifestBuilder(const JSONManifestBuilder&) = default;
@@ -24,8 +24,7 @@ class JSONManifestBuilder final BTB_MANIFEST_BUILDER {
/// @param arg_val filename path.
/// @retval true build succeeded.
/// @retval false failed to build.
- virtual bool buildTarget(int arg_sz, const char* arg_val, const bool dry_run = false) override;
-
- virtual const char* buildSystem() override;
+ bool buildTarget(int arg_sz, const char* arg_val, const bool dry_run = false) override;
+ const char* buildSystem() override;
};
} // namespace BTB \ No newline at end of file
diff --git a/BTBKit/Macros.h b/BTBKit/Macros.h
index 8b83037..c2d6194 100644
--- a/BTBKit/Macros.h
+++ b/BTBKit/Macros.h
@@ -14,9 +14,9 @@ extern "C" {
#define LIKELY(ARG) ((ARG) ? assert(false) : ((void) 0))
#define UNLIKELY(ARG) LIKELY(!(ARG))
-#define LIBBTB_VERSION "1.1.0"
+#define LIBBTB_VERSION "v0.0.1-libBTB"
-#define LIBBTB_VERSION_BCD 0x0110
+#define LIBBTB_VERSION_BCD 0x0001
#define LIBBTB_VERSION_MAJOR 1
#define LIBBTB_VERSION_MINOR 1