Add basic project heirarchy and config
This commit is contained in:
19
engine/CMakeLists.txt
Normal file
19
engine/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
set(NOVA_ENGINE_SRC
|
||||
core/debug.cpp
|
||||
)
|
||||
|
||||
list(TRANSFORM NOVA_ENGINE_SRC PREPEND ${CMAKE_CURRENT_SOURCE_DIR}/src/)
|
||||
|
||||
add_library(nova SHARED ${NOVA_ENGINE_SRC})
|
||||
|
||||
target_include_directories(nova
|
||||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
|
||||
)
|
||||
|
||||
target_compile_definitions(nova
|
||||
PRIVATE NOVA_EXPORT_SYMBOLS
|
||||
)
|
||||
0
engine/include/nova/audio/.gitkeep
Normal file
0
engine/include/nova/audio/.gitkeep
Normal file
29
engine/include/nova/core/api.hpp
Normal file
29
engine/include/nova/core/api.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// clang-format off
|
||||
|
||||
#if !defined(NOVA_API)
|
||||
#if defined(NOVA_PLATFORM_WINDOWS)
|
||||
#if defined(NOVA_EXPORT_SYMBOLS)
|
||||
#define NOVA_API __declspec(dllexport)
|
||||
#else
|
||||
#define NOVA_API __declspec(dllimport)
|
||||
#endif
|
||||
#elif defined(NOVA_PLATFORM_LINUX) || defined(NOVA_PLATFORM_MACOS)
|
||||
#if defined(NOVA_EXPORT_SYMBOLS)
|
||||
#define NOVA_API __attribute__((visibility("default")))
|
||||
#else
|
||||
#define NOVA_API
|
||||
#endif
|
||||
#else
|
||||
#define NOVA_API
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// clang-format on
|
||||
7
engine/include/nova/core/debug.hpp
Normal file
7
engine/include/nova/core/debug.hpp
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
0
engine/include/nova/ecs/.gitkeep
Normal file
0
engine/include/nova/ecs/.gitkeep
Normal file
0
engine/include/nova/graphics/.gitkeep
Normal file
0
engine/include/nova/graphics/.gitkeep
Normal file
0
engine/include/nova/math/.gitkeep
Normal file
0
engine/include/nova/math/.gitkeep
Normal file
0
engine/include/nova/networking/.gitkeep
Normal file
0
engine/include/nova/networking/.gitkeep
Normal file
0
engine/include/nova/physics/.gitkeep
Normal file
0
engine/include/nova/physics/.gitkeep
Normal file
0
engine/include/nova/platform/.gitkeep
Normal file
0
engine/include/nova/platform/.gitkeep
Normal file
0
engine/include/nova/utils/.gitkeep
Normal file
0
engine/include/nova/utils/.gitkeep
Normal file
7
engine/src/core/debug.cpp
Normal file
7
engine/src/core/debug.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <nova/core/debug.hpp>
|
||||
Reference in New Issue
Block a user