mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Common: Generalize platform specific includes in common/Platform
(cherry picked from commit 30517cb1d3)
This commit is contained in:
@@ -261,4 +261,3 @@ bool WinServiceRun()
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -26,4 +26,3 @@ bool WinServiceRun();
|
||||
|
||||
#endif // _WIN32_SERVICE_
|
||||
#endif // _WIN32
|
||||
|
||||
@@ -18,10 +18,15 @@ if(CMAKE_COMPILER_IS_GNUCXX AND NOT MINGW)
|
||||
add_definitions(-fno-delete-null-pointer-checks)
|
||||
endif()
|
||||
|
||||
set(sources_windows_Debugging
|
||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.h
|
||||
)
|
||||
if(WIN32)
|
||||
set(sources_windows
|
||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.h
|
||||
${CMAKE_SOURCE_DIR}/src/common/Platform/ServiceWin32.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/common/Platform/ServiceWin32.h
|
||||
)
|
||||
endif(WIN32)
|
||||
|
||||
add_subdirectory(database)
|
||||
add_subdirectory(shared)
|
||||
add_subdirectory(game)
|
||||
|
||||
@@ -31,7 +31,7 @@ set(authserver_SRCS
|
||||
if( WIN32 )
|
||||
set(authserver_SRCS
|
||||
${authserver_SRCS}
|
||||
${sources_windows_Debugging}
|
||||
${sources_windows}
|
||||
)
|
||||
if ( MSVC )
|
||||
set(authserver_SRCS
|
||||
@@ -54,6 +54,7 @@ include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src/common/Logging
|
||||
${CMAKE_SOURCE_DIR}/src/common/Threading
|
||||
${CMAKE_SOURCE_DIR}/src/common/Utilities
|
||||
${CMAKE_SOURCE_DIR}/src/common/Platform
|
||||
${CMAKE_SOURCE_DIR}/src/server/database
|
||||
${CMAKE_SOURCE_DIR}/src/server/database/Database
|
||||
${CMAKE_SOURCE_DIR}/src/server/database/Logging
|
||||
|
||||
@@ -17,9 +17,6 @@ file(GLOB_RECURSE sources_Dynamic Dynamic/*.cpp Dynamic/*.h)
|
||||
file(GLOB_RECURSE sources_Networking Networking/*.cpp Networking/*.h)
|
||||
file(GLOB_RECURSE sources_Packets Packets/*.cpp Packets/*.h)
|
||||
file(GLOB_RECURSE sources_Realm Realm/*.cpp Realm/*.h)
|
||||
if( WIN32 )
|
||||
file(GLOB_RECURSE sources_Service Service/*.cpp Service/*.h)
|
||||
endif( WIN32 )
|
||||
file(GLOB sources_localdir *.cpp *.h)
|
||||
|
||||
#
|
||||
|
||||
@@ -29,7 +29,7 @@ set(worldserver_SRCS
|
||||
if( WIN32 )
|
||||
set(worldserver_SRCS
|
||||
${worldserver_SRCS}
|
||||
${sources_windows_Debugging}
|
||||
${sources_windows}
|
||||
)
|
||||
if ( MSVC )
|
||||
set(worldserver_SRCS
|
||||
@@ -58,6 +58,7 @@ include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src/common/Logging
|
||||
${CMAKE_SOURCE_DIR}/src/common/Threading
|
||||
${CMAKE_SOURCE_DIR}/src/common/Utilities
|
||||
${CMAKE_SOURCE_DIR}/src/common/Platform
|
||||
${CMAKE_SOURCE_DIR}/src/server/authserver/Realms
|
||||
${CMAKE_SOURCE_DIR}/src/server/database/
|
||||
${CMAKE_SOURCE_DIR}/src/server/database/Database
|
||||
|
||||
Reference in New Issue
Block a user