Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
23 changes: 22 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ endmacro()
# Add glad
_add_engine_git_module(glad https://github.com/Dav1dde/glad.git 5bf3eda)

# Platform-specific sources
set(PLATFORM_SOURCES "")

if(PLATFORM_WINDOWS OR PLATFORM_LINUX OR PLATFORM_MACOS)
list(APPEND PLATFORM_SOURCES
src/platform/Desktop/DesktopPlatform.cpp
src/platform/Desktop/DesktopGraphicsContext.cpp
)
# Desktop needs GLAD
list(APPEND PLATFORM_SOURCES ${glad_SOURCE_DIR}/src/glad.c)
endif()

# NOTE: Console and mobile platforms need their respective SDKs and toolchains
# These are provided as templates and will compile when the appropriate SDK is available

# Platform factory (always included)
list(APPEND PLATFORM_SOURCES
src/platform/PlatformFactory.cpp
)

# Create library
add_library(WVCore STATIC
src/Logger.cpp
Expand All @@ -43,7 +63,8 @@ add_library(WVCore STATIC

src/threading/ThreadPool.cpp

${glad_SOURCE_DIR}/src/glad.c
# Platform abstraction sources
${PLATFORM_SOURCES}
)

#target_precompile_headers(WVCore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/wv/wvpch.h)
Expand Down
Loading