Add basic project heirarchy and config
This commit is contained in:
22 files changed
+188
-45
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2025, Jayden Grubb <[email protected]>
|
||||
# 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
|
||||
)
|
||||
Whitespace-only changes.
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright (c) 2025, Jayden Grubb <[email protected]>
|
||||
*
|
||||
* 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_MACOS) || defined(NOVA_PLATFORM_LINUX)
|
||||
#if defined(NOVA_EXPORT_SYMBOLS)
|
||||
#define NOVA_API __attribute__((visibility("default")))
|
||||
#else
|
||||
#define NOVA_API
|
||||
#endif
|
||||
#else
|
||||
#warning "NOVA_API is not defined for this platform"
|
||||
#define NOVA_API
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// clang-format on
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2025, Jayden Grubb <[email protected]>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2025, Jayden Grubb <[email protected]>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <nova/core/debug.hpp>
|
||||
Reference in new issue
Block a user