feat(Core/Debugging): improve crash reports (#2365)

* Enabled crash reports for Windows
This commit is contained in:
Kargatum
2019-11-10 22:42:47 +07:00
committed by GitHub
parent 5f21913378
commit 0fd565d557
8 changed files with 783 additions and 355 deletions

View File

@@ -1,4 +1,5 @@
# Copyright (C)
#
# Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL3 v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
@@ -8,14 +9,14 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
if( SERVERS )
set(sources_windows_Debugging
# Crash logs for windows
if (WIN32)
set(winDebugging
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.cpp
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.h
)
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.h)
endif()
add_subdirectory(game)
add_subdirectory(authserver)
add_subdirectory(scripts)
add_subdirectory(worldserver)
endif()

View File

@@ -18,7 +18,7 @@ CollectSourceFiles(
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders)
if( WIN32 )
list(APPEND PRIVATE_SOURCES ${sources_windows})
list(APPEND PRIVATE_SOURCES ${winDebugging})
if ( MSVC )
list(APPEND PRIVATE_SOURCES authserver.rc)
endif()

View File

@@ -16,12 +16,12 @@ CollectSourceFiles(
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders)
if( WIN32 )
list(APPEND PRIVATE_SOURCES ${sources_windows})
list(APPEND PRIVATE_SOURCES ${winDebugging})
if ( MSVC )
list(APPEND PRIVATE_SOURCES worldserver.rc)
endif()
endif()
if (USE_COREPCH)
set(PRIVATE_PCH_HEADER PrecompiledHeaders/worldPCH.h)
endif()