From 4e6fd1dd8c9762ea6543ec275fe57ca474f23d8f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 9 Dec 2025 20:35:28 +0100 Subject: chore: codebase modernization and hygiene improvements. Signed-off-by: Amlal El Mahrouss --- scripts/osx-dylib.json | 10 ++++++++++ scripts/osx.json | 10 ++++++++++ scripts/posix-dylib.json | 10 ++++++++++ scripts/posix.json | 10 ++++++++++ scripts/win64.json | 10 ++++++++++ 5 files changed, 50 insertions(+) create mode 100644 scripts/osx-dylib.json create mode 100644 scripts/osx.json create mode 100644 scripts/posix-dylib.json create mode 100644 scripts/posix.json create mode 100644 scripts/win64.json (limited to 'scripts') diff --git a/scripts/osx-dylib.json b/scripts/osx-dylib.json new file mode 100644 index 0000000..d5b87bc --- /dev/null +++ b/scripts/osx-dylib.json @@ -0,0 +1,10 @@ +{ + "compiler_path": "clang++", + "compiler_std": "c++20", + "headers_path": ["include", "vendor"], + "sources_path": ["src/lib/*.cc"], + "output_name": "libNeBuildKit.dylib", + "compiler_flags": ["-fPIC", "-shared"], + "cpp_macros": ["NEBUILD_DYLIB", "NEBUILD_OSX"], + "run_after_build": false +} diff --git a/scripts/osx.json b/scripts/osx.json new file mode 100644 index 0000000..bdcab49 --- /dev/null +++ b/scripts/osx.json @@ -0,0 +1,10 @@ +{ + "compiler_path": "clang++", + "compiler_std": "c++20", + "headers_path": ["include", "vendor"], + "sources_path": ["src/lib/*.cc", "src/cli/*.cc"], + "output_name": "nebuild", + "compiler_flags": ["-fPIC"], + "cpp_macros": ["NEBUILD_POSIX", "NEBUILD_OSX"], + "run_after_build": false +} diff --git a/scripts/posix-dylib.json b/scripts/posix-dylib.json new file mode 100644 index 0000000..3326b3e --- /dev/null +++ b/scripts/posix-dylib.json @@ -0,0 +1,10 @@ +{ + "compiler_path": "clang++", + "compiler_std": "c++20", + "headers_path": ["include/", "vendor"], + "sources_path": ["src/lib/*.cc"], + "output_name": "libNeBuildKit.so", + "compiler_flags": ["-fPIC", "-shared"], + "cpp_macros": ["NEBUILD_POSIX", "NEBUILD_DYLIB"], + "run_after_build": false +} diff --git a/scripts/posix.json b/scripts/posix.json new file mode 100644 index 0000000..679296c --- /dev/null +++ b/scripts/posix.json @@ -0,0 +1,10 @@ +{ + "compiler_path": "clang++", + "compiler_std": "c++20", + "headers_path": ["include/", "vendor"], + "sources_path": ["src/lib/*.cc", "src/cli/*.cc"], + "output_name": "nebuild", + "compiler_flags": ["-fPIC"], + "cpp_macros": ["NEBUILD_POSIX"], + "run_after_build": false +} diff --git a/scripts/win64.json b/scripts/win64.json new file mode 100644 index 0000000..75c025a --- /dev/null +++ b/scripts/win64.json @@ -0,0 +1,10 @@ +{ + "compiler_path": "x86_64-w64-mingw32-g++.exe", + "compiler_std": "c++20", + "headers_path": ["include", "vendor"], + "sources_path": ["src/lib/*.cc", "src/cli/*.cc"], + "output_name": "nebuild.exe", + "compiler_flags": ["-fPIC"], + "cpp_macros": ["NEBUILD_WINDOWS"], + "run_after_build": false +} -- cgit v1.2.3