Skip to content

Commit

Permalink
cleaned history
Browse files Browse the repository at this point in the history
  • Loading branch information
phisko committed Sep 17, 2019
0 parents commit 00d421d
Show file tree
Hide file tree
Showing 4,146 changed files with 1,170,751 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Created by .ignore support plugin (hsz.mobi)
### C++ template
# Compiled Object files
*.slo
*.lo
*.o
*.obj
*.swp

# Precompiled Headers
*.gch
*.pch
*.pc

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Directories
cmake-build-debug/
*.TMP
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "putils"]
path = putils
url = https://github.com/phisko/putils
35 changes: 35 additions & 0 deletions .idea/codeStyleSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
cmake_minimum_required(VERSION 3.0)
project(kengine)
set(CMAKE_CXX_STANDARD 17)
if(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DNOMINMAX")
endif()

if (KENGINE_SFML)
set(TGUI TRUE)
set(PUTILS_BUILD_PSE TRUE)
endif ()

if(KENGINE_LUA)
set(PUTILS_BUILD_LUA TRUE)
endif()

if(KENGINE_PYTHON)
set(PUTILS_BUILD_PYTHON TRUE)
endif()

if (KENGINE_NO_SHADER_DEBUG)
set(PUTILS_NO_SHADER_DEBUG TRUE)
endif()

set(PUTILS_BUILD_MEDIATOR TRUE)
add_subdirectory(putils)

file(GLOB src_files
*.cpp *.hpp
common/components/*.cpp common/components/*.hpp
common/functions/*.cpp common/functions/*.hpp
common/packets/*.cpp common/packets/*.hpp
common/systems/*.cpp common/systems/*.hpp
common/helpers/*.cpp common/helpers/*.hpp)

add_library(kengine STATIC ${src_files})
target_link_libraries(kengine PUBLIC putils)

if (KENGINE_SFML)
add_subdirectory(common/systems/sfml)
target_link_libraries(kengine PUBLIC kengine_sfml)
endif ()

if (KENGINE_IMGUI_OVERLAY OR KENGINE_OPENGL)
set(BUILD_UTILS FALSE)
set(GLEW_PATH common/systems/opengl/libs/glew)
add_subdirectory(${GLEW_PATH}/build/cmake)
target_include_directories(kengine PUBLIC ${GLEW_PATH}/include)

set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
add_subdirectory(common/systems/opengl/libs/glfw)
endif()

if (KENGINE_IMGUI_OVERLAY)
add_subdirectory(common/systems/imgui_overlay)
target_link_libraries(kengine PUBLIC kengine_imgui_overlay)
endif()

if (KENGINE_OPENGL)
add_subdirectory(common/systems/opengl)
target_link_libraries(kengine PUBLIC kengine_opengl)

add_subdirectory(common/systems/opengl_sprites)
target_link_libraries(kengine PUBLIC kengine_opengl_sprites)
endif ()

if (KENGINE_ASSIMP)
add_subdirectory(common/systems/assimp)
target_link_libraries(kengine PUBLIC kengine_assimp)
endif()

if (KENGINE_POLYVOX)
add_subdirectory(common/systems/polyvox)
target_link_libraries(kengine PUBLIC kengine_polyvox)
endif()

if (KENGINE_BULLET)
add_subdirectory(common/systems/bullet)
target_link_libraries(kengine PUBLIC kengine_bullet)
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} PARENT_SCOPE)
target_include_directories(kengine PUBLIC . common)
3 changes: 3 additions & 0 deletions Component.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "Component.hpp"

kengine::detail::GlobalCompMap * kengine::detail::components = nullptr;
Loading

0 comments on commit 00d421d

Please sign in to comment.