diff options
| author | Amlal <amlal@zka.com> | 2024-10-22 20:49:53 +0200 |
|---|---|---|
| committer | Amlal <amlal@zka.com> | 2024-10-22 20:49:53 +0200 |
| commit | 37be901c97e89f6ebb24e87933ddf57cd57371d5 (patch) | |
| tree | 7e21246231d8196cd5b46d4caca1d44b977216a4 | |
| parent | b277464db34e1097a1feee01b18320058cd13b68 (diff) | |
IMP: Refactor of the source code.
Signed-off-by: Amlal <amlal@zka.com>
| -rw-r--r-- | ReadMe.md | 2 | ||||
| -rw-r--r-- | cli/CliApp.cc (renamed from cli/CliApp.cxx) | 8 | ||||
| -rw-r--r-- | inc/IManifestBuilder.h (renamed from inc/IManifestBuilder.hxx) | 2 | ||||
| -rw-r--r-- | inc/JSONManifestBuilder.h (renamed from inc/JSONManifestBuilder.hxx) | 4 | ||||
| -rw-r--r-- | inc/Macros.h (renamed from inc/Macros.hxx) | 2 | ||||
| -rw-r--r-- | posix.json | 24 | ||||
| -rw-r--r-- | src/IManifestBuilder.cc (renamed from src/IManifestBuilder.cxx) | 4 | ||||
| -rw-r--r-- | src/JSONManifestBuilder.cc (renamed from src/JSONManifestBuilder.cxx) | 6 | ||||
| -rw-r--r-- | tests/example.cc (renamed from tests/example.cxx) | 0 | ||||
| -rw-r--r-- | tests/posix.json | 18 | ||||
| -rw-r--r-- | tests/win64.json | 26 | ||||
| -rw-r--r-- | vendor/json.h (renamed from vendor/json.hxx) | 0 | ||||
| -rw-r--r-- | vendor/json_fwd.h (renamed from vendor/json_fwd.hxx) | 0 | ||||
| -rw-r--r-- | win64.json | 24 |
14 files changed, 44 insertions, 76 deletions
@@ -1,6 +1,6 @@ # BTB. -A tool by ZKA Technologies to build libraries and programs. +A tool by Amlal El Mahrouss to build libraries and programs. ## Installation requirements: diff --git a/cli/CliApp.cxx b/cli/CliApp.cc index c2f9aad..f8fd999 100644 --- a/cli/CliApp.cxx +++ b/cli/CliApp.cc @@ -1,10 +1,10 @@ // ============================================================= // // btb -// Copyright ZKA Technologies. +// Copyright ZKA Web Services. // ============================================================= // -#include <Macros.hxx> -#include <JSONManifestBuilder.hxx> +#include <Macros.h> +#include <JSONManifestBuilder.h> #include <cstdio> #include <cstddef> #include <string> @@ -29,7 +29,7 @@ int main(int argc, char** argv) std::cout << "Check for issues at: www.el-mahrouss-logic.com/btb/issues\n"; std::cout << "Brought to you by Amlal El Mahrouss.\n"; - std::cout << "© ZKA Technologies, all rights reserved.\n"; + std::cout << "© ZKA Web Services, all rights reserved.\n"; return 0; } diff --git a/inc/IManifestBuilder.hxx b/inc/IManifestBuilder.h index 71f5bf0..0a821d5 100644 --- a/inc/IManifestBuilder.hxx +++ b/inc/IManifestBuilder.h @@ -1,6 +1,6 @@ // ============================================================= // // btb -// Copyright ZKA Technologies. +// Copyright ZKA Web Services. // ============================================================= // #pragma once diff --git a/inc/JSONManifestBuilder.hxx b/inc/JSONManifestBuilder.h index 8259542..290d7bb 100644 --- a/inc/JSONManifestBuilder.hxx +++ b/inc/JSONManifestBuilder.h @@ -1,11 +1,11 @@ // ============================================================= // // btb -// Copyright ZKA Technologies. +// Copyright ZKA Web Services. // ============================================================= // #pragma once -#include <IManifestBuilder.hxx> +#include <IManifestBuilder.h> /// @brief JSON builder class JSONManifestBuilder final : public IManifestBuilder diff --git a/inc/Macros.hxx b/inc/Macros.h index 6e32dfe..f2d0f87 100644 --- a/inc/Macros.hxx +++ b/inc/Macros.h @@ -1,6 +1,6 @@ // ============================================================= // // btb -// Copyright ZKA Technologies. +// Copyright ZKA Web Services. // ============================================================= // #pragma once @@ -1,17 +1,9 @@ { - "compiler_path": "g++", - "compiler_std": "c++20", - "headers_path": [ - "inc", - "vendor" - ], - "sources_path": [ - "src/*.cxx", - "cli/*.cxx" - ], - "output_name": "btb", - "compiler_flags": [ - "-fPIC" - ], - "run_after_build": false -}
\ No newline at end of file + "compiler_path": "g++", + "compiler_std": "c++20", + "headers_path": ["inc", "vendor"], + "sources_path": ["src/*.cc", "cli/*.cc"], + "output_name": "btb", + "compiler_flags": ["-fPIC"], + "run_after_build": false +} diff --git a/src/IManifestBuilder.cxx b/src/IManifestBuilder.cc index 7a2f210..6746378 100644 --- a/src/IManifestBuilder.cxx +++ b/src/IManifestBuilder.cc @@ -1,6 +1,6 @@ // ============================================================= // // btb -// Copyright ZKA Technologies. +// Copyright ZKA Web Services. // ============================================================= // -#include <IManifestBuilder.hxx> +#include <IManifestBuilder.h> diff --git a/src/JSONManifestBuilder.cxx b/src/JSONManifestBuilder.cc index 0aee8d8..e5db6b8 100644 --- a/src/JSONManifestBuilder.cxx +++ b/src/JSONManifestBuilder.cc @@ -1,10 +1,10 @@ // ============================================================= // // btb -// Copyright ZKA Technologies. +// Copyright ZKA Web Services. // ============================================================= // -#include <JSONManifestBuilder.hxx> -#include <json.hxx> +#include <JSONManifestBuilder.h> +#include <json.h> #include <sstream> #include <iostream> diff --git a/tests/example.cxx b/tests/example.cc index dfef2e4..dfef2e4 100644 --- a/tests/example.cxx +++ b/tests/example.cc diff --git a/tests/posix.json b/tests/posix.json index 805e5c1..944b320 100644 --- a/tests/posix.json +++ b/tests/posix.json @@ -1,18 +1,10 @@ { "compiler_path": "g++", "compiler_std": "c++20", - "headers_path": [ - "inc" - ], - "sources_path": [ - "example.cxx" - ], + "headers_path": ["inc"], + "sources_path": ["example.cc"], "output_name": "example.elf", - "compiler_flags": [ - "-fPIC" - ], - "cpp_macros": [ - "FOO_MACRO" - ], + "compiler_flags": ["-fPIC"], + "cpp_macros": ["FOO_MACRO"], "run_after_build": true -}
\ No newline at end of file +} diff --git a/tests/win64.json b/tests/win64.json index f074c43..cba2af7 100644 --- a/tests/win64.json +++ b/tests/win64.json @@ -1,18 +1,10 @@ { - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": [ - "inc" - ], - "sources_path": [ - "example.cxx" - ], - "output_name": "example.elf", - "compiler_flags": [ - "-fPIC" - ], - "cpp_macros": [ - "FOO_MACRO" - ], - "run_after_build": true - }
\ No newline at end of file + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["inc"], + "sources_path": ["example.cc"], + "output_name": "example.elf", + "compiler_flags": ["-fPIC"], + "cpp_macros": ["FOO_MACRO"], + "run_after_build": true +} diff --git a/vendor/json.hxx b/vendor/json.h index a858728..a858728 100644 --- a/vendor/json.hxx +++ b/vendor/json.h diff --git a/vendor/json_fwd.hxx b/vendor/json_fwd.h index 29a6036..29a6036 100644 --- a/vendor/json_fwd.hxx +++ b/vendor/json_fwd.h @@ -1,17 +1,9 @@ { - "compiler_path": "x86_64-w64-mingw32-g++.exe", - "compiler_std": "c++20", - "headers_path": [ - "inc", - "vendor" - ], - "sources_path": [ - "src/*.cxx", - "cli/*.cxx" - ], - "output_name": "btb.exe", - "compiler_flags": [ - "-fPIC" - ], - "run_after_build": false -}
\ No newline at end of file + "compiler_path": "x86_64-w64-mingw32-g++.exe", + "compiler_std": "c++20", + "headers_path": ["inc", "vendor"], + "sources_path": ["src/*.cc", "cli/*.cc"], + "output_name": "btb.exe", + "compiler_flags": ["-fPIC"], + "run_after_build": false +} |
