diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-27 22:43:34 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-27 22:43:34 +0100 |
| commit | fe03952bf6dbf32509a9322e34ac1b5c9d0dbe25 (patch) | |
| tree | 04bb502e93321c08cbc1feb8ec8a9c42bf33896b | |
| parent | 8e27a0f610819130a91a4076eaab1ab657ab3c72 (diff) | |
chore: update NeBuild file structure.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | CMakeLists.txt | 14 | ||||
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | install_windows.cmake | 6 | ||||
| -rw-r--r-- | scripts/osx-dylib.json | 2 | ||||
| -rw-r--r-- | scripts/posix-dylib.json | 2 | ||||
| -rw-r--r-- | scripts/win64-dylib.json | 2 | ||||
| -rw-r--r-- | src/CommandLine/CLI.cpp (renamed from src/cli/CLI.cpp) | 0 | ||||
| -rw-r--r-- | src/NeBuildKit/IManifestBuilder.cpp (renamed from src/lib/IManifestBuilder.cpp) | 0 | ||||
| -rw-r--r-- | src/NeBuildKit/JSONManifestBuilder.cpp (renamed from src/lib/JSONManifestBuilder.cpp) | 0 | ||||
| -rw-r--r-- | src/NeBuildKit/TOMLManifestBuilder.cpp (renamed from src/lib/TOMLManifestBuilder.cpp) | 0 |
10 files changed, 15 insertions, 15 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 840cdba..3e65588 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # // ============================================================= // -# // NeBuild -# // Copyright (C) 2025-2026, Amlal El Mahrouss, licensed under BSD-3 license. +# // NeBuild System. +# // Copyright (C) 2025-2026, Amlal El Mahrouss and Ne.org, licensed under BSD-3 license. # // ============================================================= // # AMLALE: Update the CMake version, which requires a version that was too old. @@ -14,22 +14,22 @@ set(CMAKE_CXX_EXTENSIONS OFF) include_directories(${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/vendor) -file(GLOB NEBUILD_CLI_SOURCES "${CMAKE_SOURCE_DIR}/src/cli/*.cc") -file(GLOB NEBUILD_SRC_SOURCES "${CMAKE_SOURCE_DIR}/src/lib/*.cc") +file(GLOB NEBUILD_CLI_SOURCES "${CMAKE_SOURCE_DIR}/src/CommandLine/*.cc") +file(GLOB NEBUILD_SRC_SOURCES "${CMAKE_SOURCE_DIR}/src/NeBuildKit/*.cc") set(NEBUILD_SOURCES ${NEBUILD_CLI_SOURCES} ${NEBUILD_SRC_SOURCES}) add_executable(nebuild ${NEBUILD_SOURCES}) target_include_directories(nebuild PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/vendor) -option(BUILD_WINDOWS "Produce a Windows executable name (nebuild.exe)" OFF) +option(BUILD_WINDOWS "=> Produce a Windows executable name (nebuild.exe)" OFF) add_custom_target(build-nebuild COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target nebuild COMMENT "=> NeBuild built successfully for POSIX." ) -message(STATUS "Sources: ${NEBUILD_SOURCES}") -message(STATUS "Include Dirs: ${CMAKE_SOURCE_DIR}/src;${CMAKE_SOURCE_DIR}/vendor") +message(STATUS "=> Sources: ${NEBUILD_SOURCES}") +message(STATUS "=> Include Dirs: ${CMAKE_SOURCE_DIR}/src;${CMAKE_SOURCE_DIR}/vendor") include(install_windows.cmake) @@ -8,7 +8,7 @@ GCC=clang++ GCC_MINGW=x86_64-w64-mingw32-g++ CXXFLAGS=-I./include -L/usr/local/lib -I./vendor -lNeBuildKit CXXSTD= -std=c++20 -SRC=$(wildcard src/cli/*.cpp) +SRC=$(wildcard src/CommandLine/*.cpp) OUT=nebuild CP=cp @@ -24,7 +24,7 @@ build-nebuild-windows: .PHONY: help help: - @echo "=> NEBUILD HELP:" + @echo "=> NeBuild:" @echo "=> help: Show this help message." @echo "=> build-nebuild-windows: Build NeBuild for Windows." @echo "=> build-nebuild: Build NeBuild for POSIX." diff --git a/install_windows.cmake b/install_windows.cmake index b758a73..792b4a9 100644 --- a/install_windows.cmake +++ b/install_windows.cmake @@ -1,6 +1,6 @@ # // ============================================================= // -# // NeBuild -# // Copyright (C) 2025-2026, Amlal El Mahrouss, licensed under BSD-3 license. +# // NeBuild System. +# // Copyright (C) 2025-2026, Amlal El Mahrouss and Ne.org Author, licensed under BSD-3 license. # // ============================================================= // # AMLALE: Update the CMake version, which requires a version that was too old. @@ -16,4 +16,4 @@ if(BUILD_WINDOWS) ) endif() -message(STATUS "To build for Windows-style executable: configure with -DBUILD_WINDOWS=ON")
\ No newline at end of file +message(STATUS "To build for Windows-style executable: configure with -DBUILD_WINDOWS=ON") diff --git a/scripts/osx-dylib.json b/scripts/osx-dylib.json index 675a231..448cc00 100644 --- a/scripts/osx-dylib.json +++ b/scripts/osx-dylib.json @@ -2,7 +2,7 @@ "compiler_path": "clang++", "compiler_std": "c++20", "headers_path": ["include", "vendor"], - "sources_path": ["src/lib/*.cpp"], + "sources_path": ["src/NeBuildKit/*.cpp"], "output_name": "libNeBuildKit.dylib", "compiler_flags": ["-fPIC", "-shared"], "cpp_macros": ["NEBUILD_INTERNAL_SDK", "NEBUILD_OSX"], diff --git a/scripts/posix-dylib.json b/scripts/posix-dylib.json index 5d1b9d1..66d9dc4 100644 --- a/scripts/posix-dylib.json +++ b/scripts/posix-dylib.json @@ -2,7 +2,7 @@ "compiler_path": "clang++", "compiler_std": "c++20", "headers_path": ["include/", "vendor"], - "sources_path": ["src/lib/*.cpp"], + "sources_path": ["src/NeBuildKit/*.cpp"], "output_name": "libNeBuildKit.so", "compiler_flags": ["-fPIC", "-shared"], "cpp_macros": ["NEBUILD_POSIX", "NEBUILD_INTERNAL_SDK"], diff --git a/scripts/win64-dylib.json b/scripts/win64-dylib.json index 5a88251..f4f22ee 100644 --- a/scripts/win64-dylib.json +++ b/scripts/win64-dylib.json @@ -2,7 +2,7 @@ "compiler_path": "x86_64-w64-mingw32-g++.exe", "compiler_std": "c++20", "headers_path": ["include", "vendor"], - "sources_path": ["src/lib/*.cpp"], + "sources_path": ["src/NeBuildKit/*.cpp"], "output_name": "libNeBuildKit.dll", "compiler_flags": ["-fPIC", "-shared"], "cpp_macros": ["NEBUILD_WINDOWS", "NEBUILD_INTERNAL_SDK"], diff --git a/src/cli/CLI.cpp b/src/CommandLine/CLI.cpp index a21c4ad..a21c4ad 100644 --- a/src/cli/CLI.cpp +++ b/src/CommandLine/CLI.cpp diff --git a/src/lib/IManifestBuilder.cpp b/src/NeBuildKit/IManifestBuilder.cpp index 2a61ed0..2a61ed0 100644 --- a/src/lib/IManifestBuilder.cpp +++ b/src/NeBuildKit/IManifestBuilder.cpp diff --git a/src/lib/JSONManifestBuilder.cpp b/src/NeBuildKit/JSONManifestBuilder.cpp index 0cc9fd3..0cc9fd3 100644 --- a/src/lib/JSONManifestBuilder.cpp +++ b/src/NeBuildKit/JSONManifestBuilder.cpp diff --git a/src/lib/TOMLManifestBuilder.cpp b/src/NeBuildKit/TOMLManifestBuilder.cpp index cce9384..cce9384 100644 --- a/src/lib/TOMLManifestBuilder.cpp +++ b/src/NeBuildKit/TOMLManifestBuilder.cpp |
