refactor(Core/Common): generalise platform specific includes in common/Platform (#5058)
This commit is contained in:
@@ -14,6 +14,7 @@ CollectSourceFiles(
|
|||||||
PRIVATE_SOURCES
|
PRIVATE_SOURCES
|
||||||
# Exclude
|
# Exclude
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/Debugging
|
${CMAKE_CURRENT_SOURCE_DIR}/Debugging
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/Platform
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders)
|
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders)
|
||||||
|
|
||||||
# Manually set sources for Debugging directory as we don't want to include WheatyExceptionReport in common project
|
# Manually set sources for Debugging directory as we don't want to include WheatyExceptionReport in common project
|
||||||
|
|||||||
@@ -9,11 +9,17 @@
|
|||||||
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
# Crash logs for windows
|
# Specified files for Windows
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
# Crash logs
|
||||||
set(winDebugging
|
set(winDebugging
|
||||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.cpp
|
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.cpp
|
||||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.h)
|
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.h)
|
||||||
|
|
||||||
|
# Service
|
||||||
|
set(winService
|
||||||
|
${CMAKE_SOURCE_DIR}/src/common/Platform/ServiceWin32.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/src/common/Platform/ServiceWin32.h)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(shared)
|
add_subdirectory(shared)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ CollectSourceFiles(
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders)
|
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders)
|
||||||
|
|
||||||
if( WIN32 )
|
if( WIN32 )
|
||||||
list(APPEND PRIVATE_SOURCES ${winDebugging})
|
list(APPEND PRIVATE_SOURCES ${winDebugging} ${winService})
|
||||||
if ( MSVC )
|
if ( MSVC )
|
||||||
list(APPEND PRIVATE_SOURCES worldserver.rc)
|
list(APPEND PRIVATE_SOURCES worldserver.rc)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user