-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ee8425
commit b8e5d57
Showing
3,198 changed files
with
23,053 additions
and
1,579,668 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
.vs | ||
.vscode | ||
Build | ||
Docs/* | ||
!Docs/doxygen-awesome* | ||
!Docs/header.html | ||
Resources/Sandbox/Scenes/* | ||
*.hint | ||
Installer/__pycache__/* | ||
Docs/html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,3 @@ | ||
# Ducktape | An open source C++ 2D & 3D game Engine that focuses on being fast, and powerful. | ||
# Copyright (C) 2022 Aryan Baburajan | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# | ||
# In case of any further questions feel free to contact me at | ||
# the following email address: | ||
# [email protected] | ||
|
||
#[=======================================================================[.rst: | ||
Documentation for using find_package() to find the Ducktape library. | ||
#]=======================================================================] | ||
|
||
set (Ducktape_FOUND true) | ||
|
||
# OpenGL | ||
|
@@ -36,11 +10,12 @@ endif () | |
|
||
set (Ducktape_INCLUDE_DIR | ||
${Ducktape_ROOT_DIR}/Engine; | ||
${Ducktape_ROOT_DIR}/Editor; | ||
${Ducktape_ROOT_DIR}/Runtime; | ||
${Ducktape_ROOT_DIR}/Extern/; | ||
${Ducktape_ROOT_DIR}/Extern/glm/; | ||
${Ducktape_ROOT_DIR}/Extern/glfw/include/; | ||
${Ducktape_ROOT_DIR}/Extern/glad/include/; | ||
${Ducktape_ROOT_DIR}/Extern/entt/single_include; | ||
${Ducktape_ROOT_DIR}/Extern/assimp/include; | ||
${Ducktape_ROOT_DIR}/Build/Extern/assimp/include; | ||
${Ducktape_ROOT_DIR}/Extern/imgui/backends/; | ||
|
@@ -49,7 +24,6 @@ set (Ducktape_INCLUDE_DIR | |
) | ||
|
||
set (Ducktape_LIBRARY | ||
Ducktape | ||
glfw | ||
OpenGL::GL | ||
glad | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,77 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
# MIT License | ||
|
||
project("Ducktape" VERSION 1.0.0) | ||
add_compile_definitions(DUCKTAPE_VERSION_MAJOR=${Ducktape_VERSION_MAJOR} DUCKTAPE_VERSION_MINOR=${Ducktape_VERSION_MINOR} DUCKTAPE_VERSION_PATCH=${Ducktape_VERSION_PATCH}) | ||
# Copyright (c) 2021 - 2023 Aryan Baburajan | ||
|
||
set(ASSIMP_BUILD_ZLIB ON) | ||
set(BUILD_ASSIMP_TOOLS OFF) | ||
set(ASSIMP_BUILD_TESTS OFF) | ||
set(ASSIMP_WARNINGS_AS_ERRORS OFF) | ||
set(ASSIMP_BUILD_ALL_EXPORTER_BY_DEFAULT OFF) | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
|
||
set(OpenGL_GL_PREFERENCE LEGACY) | ||
set(GLFW_BUILD_DOCS OFF) | ||
set(GLFW_BUILD_TESTS OFF) | ||
set(GLFW_BUILD_EXAMPLES OFF) | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
|
||
set(BUILD_SHARED_LIBS ON) | ||
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/Extern/assimp/cmake-modules;${CMAKE_MODULE_PATH}") | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/Build") | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/Build") | ||
cmake_minimum_required (VERSION 3.20) | ||
|
||
if(WIN32) | ||
add_subdirectory("${PROJECT_SOURCE_DIR}/Extern/assimp") | ||
add_subdirectory("${PROJECT_SOURCE_DIR}/Extern/glfw") | ||
endif(WIN32) | ||
project ("Ducktape" VERSION 1.0.0) | ||
|
||
add_subdirectory("${PROJECT_SOURCE_DIR}/Extern/glad") | ||
add_subdirectory("${PROJECT_SOURCE_DIR}/Extern/imgui") | ||
set (ASSIMP_BUILD_ZLIB ON CACHE BOOL "") | ||
set (BUILD_ASSIMP_TOOLS OFF) | ||
set (ASSIMP_BUILD_TESTS OFF CACHE BOOL "" FORCE) | ||
set (ASSIMP_WARNINGS_AS_ERRORS OFF CACHE BOOL "If the test suite for Assimp is built in addition to the library.") | ||
set (ASSIMP_BUILD_ALL_EXPORTER_BY_DEFAULT OFF) | ||
|
||
add_subdirectory("${PROJECT_SOURCE_DIR}/Engine") | ||
set(BUILD_SHARED_LIBS OFF) | ||
set (OpenGL_GL_PREFERENCE LEGACY) | ||
set (GLFW_BUILD_DOCS OFF) | ||
set (GLFW_BUILD_TESTS OFF) | ||
set (GLFW_BUILD_EXAMPLES OFF) | ||
|
||
add_subdirectory("${PROJECT_SOURCE_DIR}/Editor") | ||
add_subdirectory("${PROJECT_SOURCE_DIR}/Resources/Sandbox/Assets/Scripts") | ||
option (DT_EXPORT "Build the project for export." OFF) | ||
|
||
if (DT_EXPORT) | ||
add_compile_definitions (DT_EXPORT) | ||
else () | ||
set (BUILD_SHARED_LIBS ON CACHE BOOL "") | ||
endif () | ||
|
||
set (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/Extern/assimp/cmake-modules;${CMAKE_MODULE_PATH}") | ||
|
||
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/Build") | ||
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/Build") | ||
|
||
if (WIN32) | ||
add_subdirectory ("${PROJECT_SOURCE_DIR}/Extern/assimp") | ||
add_subdirectory ("${PROJECT_SOURCE_DIR}/Extern/glfw") | ||
endif (WIN32) | ||
|
||
add_subdirectory ("${PROJECT_SOURCE_DIR}/Extern/glad") | ||
add_subdirectory ("${PROJECT_SOURCE_DIR}/Extern/imgui") | ||
|
||
# Ducktape Dependencies | ||
set (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake/;${CMAKE_MODULE_PATH}") | ||
set (Ducktape_ROOT_DIR "${PROJECT_SOURCE_DIR}") | ||
find_package (Ducktape REQUIRED) | ||
|
||
if (Ducktape_FOUND) | ||
message (STATUS "Ducktape found.") | ||
else (Ducktape_FOUND) | ||
message (STATUS "Ducktape not found.") | ||
endif () | ||
|
||
include_directories (${Ducktape_INCLUDE_DIR}) | ||
link_directories (${Ducktape_LIBRARY_DIR}) | ||
link_libraries (${Ducktape_LIBRARY}) | ||
|
||
add_subdirectory ("${PROJECT_SOURCE_DIR}/Engine") | ||
add_subdirectory ("${PROJECT_SOURCE_DIR}/Editor") | ||
add_subdirectory ("${PROJECT_SOURCE_DIR}/Runtime") | ||
add_subdirectory ("${PROJECT_SOURCE_DIR}/Sandbox/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.