From c0783d21f8ce39b8a415bf2fd036ef753275e28c Mon Sep 17 00:00:00 2001 From: Jayden Grubb Date: Sat, 1 Nov 2025 00:39:18 +1000 Subject: [PATCH] Add basic project hierarchy --- CMakeLists.txt | 4 ++-- LICENSE.txt | 29 +++++++++++++++++++++++++++++ {include => assets}/.gitkeep | 0 docs/.gitkeep | 0 include/nova/audio/.gitkeep | 0 include/nova/core/.gitkeep | 0 include/nova/ecs/.gitkeep | 0 include/nova/editor/.gitkeep | 0 include/nova/graphics/.gitkeep | 0 include/nova/math/.gitkeep | 0 include/nova/networking/.gitkeep | 0 include/nova/physics/.gitkeep | 0 include/nova/platform/.gitkeep | 0 include/nova/utils/.gitkeep | 0 src/audio/.gitkeep | 0 src/core/.gitkeep | 0 src/ecs/.gitkeep | 0 src/editor/.gitkeep | 0 src/graphics/.gitkeep | 0 src/math/.gitkeep | 0 src/networking/.gitkeep | 0 src/physics/.gitkeep | 0 src/platform/.gitkeep | 0 src/{ => runtime}/main.cpp | 0 src/utils/.gitkeep | 0 templates/.gitkeep | 0 tests/.gitkeep | 0 27 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 LICENSE.txt rename {include => assets}/.gitkeep (100%) create mode 100644 docs/.gitkeep create mode 100644 include/nova/audio/.gitkeep create mode 100644 include/nova/core/.gitkeep create mode 100644 include/nova/ecs/.gitkeep create mode 100644 include/nova/editor/.gitkeep create mode 100644 include/nova/graphics/.gitkeep create mode 100644 include/nova/math/.gitkeep create mode 100644 include/nova/networking/.gitkeep create mode 100644 include/nova/physics/.gitkeep create mode 100644 include/nova/platform/.gitkeep create mode 100644 include/nova/utils/.gitkeep create mode 100644 src/audio/.gitkeep create mode 100644 src/core/.gitkeep create mode 100644 src/ecs/.gitkeep create mode 100644 src/editor/.gitkeep create mode 100644 src/graphics/.gitkeep create mode 100644 src/math/.gitkeep create mode 100644 src/networking/.gitkeep create mode 100644 src/physics/.gitkeep create mode 100644 src/platform/.gitkeep rename src/{ => runtime}/main.cpp (100%) create mode 100644 src/utils/.gitkeep create mode 100644 templates/.gitkeep create mode 100644 tests/.gitkeep diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d79f52..bfdbe5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "") -project(Example) +project(nova) enable_language(CXX) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -15,7 +15,7 @@ add_compile_options( add_executable( ${PROJECT_NAME} - src/main.cpp + src/runtime/main.cpp ) # find_package(Example REQUIRED) diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..5da9ff7 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2025, Jayden Grubb + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/include/.gitkeep b/assets/.gitkeep similarity index 100% rename from include/.gitkeep rename to assets/.gitkeep diff --git a/docs/.gitkeep b/docs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/audio/.gitkeep b/include/nova/audio/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/core/.gitkeep b/include/nova/core/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/ecs/.gitkeep b/include/nova/ecs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/editor/.gitkeep b/include/nova/editor/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/graphics/.gitkeep b/include/nova/graphics/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/math/.gitkeep b/include/nova/math/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/networking/.gitkeep b/include/nova/networking/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/physics/.gitkeep b/include/nova/physics/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/platform/.gitkeep b/include/nova/platform/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/include/nova/utils/.gitkeep b/include/nova/utils/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/audio/.gitkeep b/src/audio/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/core/.gitkeep b/src/core/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/ecs/.gitkeep b/src/ecs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/editor/.gitkeep b/src/editor/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/graphics/.gitkeep b/src/graphics/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/math/.gitkeep b/src/math/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/networking/.gitkeep b/src/networking/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/physics/.gitkeep b/src/physics/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/platform/.gitkeep b/src/platform/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/main.cpp b/src/runtime/main.cpp similarity index 100% rename from src/main.cpp rename to src/runtime/main.cpp diff --git a/src/utils/.gitkeep b/src/utils/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/templates/.gitkeep b/templates/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/.gitkeep b/tests/.gitkeep new file mode 100644 index 0000000..e69de29