mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Buildsystem/MSVC
* Fixed ACE PCH * Removed WheatyExceptionReport sources from shared project
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
# NOTE: Do not use glob here, it would include files we don't want
|
||||
set(ace_STAT_SRCS
|
||||
PrecompiledHeaders/WinAcePCH.cpp
|
||||
ACE.cpp
|
||||
ACE_crc32.cpp
|
||||
ACE_crc_ccitt.cpp
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
#include "WinAcePCH.h"
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ if(CMAKE_COMPILER_IS_GNUCXX AND NOT MINGW)
|
||||
endif()
|
||||
|
||||
if( SERVERS )
|
||||
set(sources_Debugging
|
||||
set(sources_windows_Debugging
|
||||
${CMAKE_SOURCE_DIR}/src/server/shared/Debugging/WheatyExceptionReport.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/server/shared/Debugging/WheatyExceptionReport.h
|
||||
)
|
||||
|
||||
@@ -29,16 +29,14 @@ set(authserver_SRCS
|
||||
)
|
||||
|
||||
if( WIN32 )
|
||||
set(authserver_SRCS
|
||||
${authserver_SRCS}
|
||||
${sources_Debugging}
|
||||
)
|
||||
if ( MSVC )
|
||||
set(authserver_SRCS
|
||||
${authserver_SRCS}
|
||||
${sources_Debugging}
|
||||
authserver.rc
|
||||
)
|
||||
else ( )
|
||||
set(authserver_SRCS
|
||||
${authserver_SRCS}
|
||||
${sources_Debugging}
|
||||
authserver.rc
|
||||
)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
@@ -16,7 +16,6 @@ file(GLOB_RECURSE sources_Configuration Configuration/*.cpp Configuration/*.h)
|
||||
file(GLOB_RECURSE sources_Cryptography Cryptography/*.cpp Cryptography/*.h)
|
||||
file(GLOB_RECURSE sources_Database Database/*.cpp Database/*.h)
|
||||
file(GLOB_RECURSE sources_DataStores DataStores/*.cpp DataStores/*.h)
|
||||
file(GLOB_RECURSE sources_Debugging Debugging/*.cpp Debugging/*.h)
|
||||
file(GLOB_RECURSE sources_Dynamic Dynamic/*.cpp Dynamic/*.h)
|
||||
file(GLOB_RECURSE sources_Logging Logging/*.cpp Logging/*.h)
|
||||
file(GLOB_RECURSE sources_Packets Packets/*.cpp Packets/*.h)
|
||||
@@ -25,6 +24,11 @@ file(GLOB_RECURSE sources_Utilities Utilities/*.cpp Utilities/*.h)
|
||||
|
||||
file(GLOB sources_localdir *.cpp *.h)
|
||||
|
||||
# Manually set sources for Debugging directory as we don't want to include WheatyExceptionReport in shared project
|
||||
# It needs to be included both in authserver and worldserver for the static global variable to be properly initialized
|
||||
# and to handle crash logs on windows
|
||||
set(sources_Debugging Debugging/Errors.cpp Debugging/Errors.h)
|
||||
|
||||
#
|
||||
# Build shared sourcelist
|
||||
#
|
||||
|
||||
@@ -29,18 +29,16 @@ set(worldserver_SRCS
|
||||
)
|
||||
|
||||
if( WIN32 )
|
||||
set(worldserver_SRCS
|
||||
${worldserver_SRCS}
|
||||
${sources_windows_Debugging}
|
||||
)
|
||||
if ( MSVC )
|
||||
set(worldserver_SRCS
|
||||
${worldserver_SRCS}
|
||||
${sources_Debugging}
|
||||
worldserver.rc
|
||||
)
|
||||
else ( )
|
||||
set(worldserver_SRCS
|
||||
${worldserver_SRCS}
|
||||
${sources_Debugging}
|
||||
)
|
||||
endif ()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
|
||||
Reference in New Issue
Block a user