[SPEC-6071][Crashpad] Make Crashpad available through 3rdParty system for Windows

main
junbo 5 years ago
parent 17997b3df8
commit eb0758f63a

@ -60,6 +60,7 @@ ly_add_target(
Legacy::CrySystem.XMLBinary Legacy::CrySystem.XMLBinary
Legacy::RemoteConsoleCore Legacy::RemoteConsoleCore
AZ::AzFramework AZ::AzFramework
AZ::CrashHandler
RUNTIME_DEPENDENCIES RUNTIME_DEPENDENCIES
Legacy::Cry3DEngine Legacy::Cry3DEngine
) )

@ -125,6 +125,7 @@ ly_add_target(
Gem::Atom_RPI.Public Gem::Atom_RPI.Public
Gem::Atom_Feature_Common.Static Gem::Atom_Feature_Common.Static
Gem::AtomToolsFramework.Static Gem::AtomToolsFramework.Static
AZ::ToolsCrashHandler
${additional_dependencies} ${additional_dependencies}
PUBLIC PUBLIC
3rdParty::AWSNativeSDK::Core 3rdParty::AWSNativeSDK::Core

@ -45,6 +45,7 @@ ly_add_target(
AZ::AzQtComponents AZ::AzQtComponents
AZ::AzToolsFramework AZ::AzToolsFramework
AZ::AssetBuilderSDK AZ::AssetBuilderSDK
AZ::ToolsCrashHandler
${additional_dependencies} ${additional_dependencies}
RUNTIME_DEPENDENCIES RUNTIME_DEPENDENCIES
AZ::AssetBuilder AZ::AssetBuilder

@ -13,6 +13,7 @@ add_subdirectory(SceneAPI) # Needs to go before AssetProcessor since it provides
add_subdirectory(AssetProcessor) add_subdirectory(AssetProcessor)
add_subdirectory(AWSNativeSDKInit) add_subdirectory(AWSNativeSDKInit)
add_subdirectory(AzTestRunner) add_subdirectory(AzTestRunner)
add_subdirectory(CrashHandler)
add_subdirectory(CryCommonTools) add_subdirectory(CryCommonTools)
add_subdirectory(CryXML) add_subdirectory(CryXML)
add_subdirectory(HLSLCrossCompiler) add_subdirectory(HLSLCrossCompiler)
@ -21,7 +22,6 @@ add_subdirectory(News)
add_subdirectory(PythonBindingsExample) add_subdirectory(PythonBindingsExample)
add_subdirectory(RC) add_subdirectory(RC)
add_subdirectory(RemoteConsole) add_subdirectory(RemoteConsole)
add_subdirectory(CrashHandler)
add_subdirectory(ShaderCacheGen) add_subdirectory(ShaderCacheGen)
add_subdirectory(DeltaCataloger) add_subdirectory(DeltaCataloger)
add_subdirectory(SerializeContextTools) add_subdirectory(SerializeContextTools)

@ -32,11 +32,11 @@ ly_add_target(
PRIVATE PRIVATE
${pal_dir} ${pal_dir}
BUILD_DEPENDENCIES BUILD_DEPENDENCIES
PUBLIC
AZ::CrashSupport
PRIVATE PRIVATE
3rdParty::Crashpad 3rdParty::Crashpad
AZ::AzCore
AZ::AzFramework AZ::AzFramework
AZ::CrashSupport
) )
string(REPLACE "." ";" version_list "${LY_VERSION_STRING}") string(REPLACE "." ";" version_list "${LY_VERSION_STRING}")
@ -67,11 +67,9 @@ ly_add_target(
PRIVATE PRIVATE
Uploader/include/Uploader Uploader/include/Uploader
BUILD_DEPENDENCIES BUILD_DEPENDENCIES
PRIVATE
AZ::AzCore
AZ::CrashSupport
PUBLIC PUBLIC
3rdParty::Crashpad::Handler 3rdParty::Crashpad::Handler
AZ::CrashSupport
) )
add_subdirectory(Tools) add_subdirectory(Tools)

@ -19,6 +19,6 @@ ly_add_target(
PUBLIC PUBLIC
include include
BUILD_DEPENDENCIES BUILD_DEPENDENCIES
PRIVATE PUBLIC
AZ::AzCore AZ::AzCore
) )

@ -21,13 +21,13 @@ ly_add_target(
tools_crash_handler_files.cmake tools_crash_handler_files.cmake
Platform/${PAL_PLATFORM_NAME}/tools_crash_handler_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake Platform/${PAL_PLATFORM_NAME}/tools_crash_handler_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES
PRIVATE PUBLIC
. .
BUILD_DEPENDENCIES BUILD_DEPENDENCIES
PUBLIC
AZ::CrashHandler
PRIVATE PRIVATE
3rdParty::Qt::Core 3rdParty::Qt::Core
AZ::CrashHandler
AZ::CrashSupport
AZ::AzToolsFramework AZ::AzToolsFramework
) )
@ -41,18 +41,14 @@ ly_add_target(
Platform/${PAL_PLATFORM_NAME}/tools_crash_uploader_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake Platform/${PAL_PLATFORM_NAME}/tools_crash_uploader_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES
PRIVATE PRIVATE
.
Uploader Uploader
BUILD_DEPENDENCIES BUILD_DEPENDENCIES
PRIVATE PRIVATE
3rdParty::Qt::Core 3rdParty::Qt::Core
3rdParty::Qt::Gui 3rdParty::Qt::Gui
3rdParty::Qt::Widgets 3rdParty::Qt::Widgets
3rdParty::Crashpad
3rdParty::Crashpad::Handler
AZ::CrashUploaderSupport AZ::CrashUploaderSupport
AZ::AzQtComponents AZ::AzQtComponents
AZ::CrashSupport
TARGET_PROPERTIES TARGET_PROPERTIES
Qt5_NO_LINK_QTMAIN TRUE Qt5_NO_LINK_QTMAIN TRUE
) )

@ -138,7 +138,7 @@ namespace O3de
if (!logFileReader->Open(thisFile)) if (!logFileReader->Open(thisFile))
{ {
#if defined(AZ_PLATFORM_WINDOWS) #if defined(AZ_PLATFORM_WINDOWS)
LOG(ERROR) << "Failed to open " << base::UTF16ToUTF8(thisFile.BaseName().value()); LOG(ERROR) << "Failed to open " << base::WideToUTF8(thisFile.BaseName().value());
#else #else
LOG(ERROR) << "Failed to open " << thisFile.BaseName().value(); LOG(ERROR) << "Failed to open " << thisFile.BaseName().value();
#endif #endif
@ -149,7 +149,7 @@ namespace O3de
if (start_offset < 0) if (start_offset < 0)
{ {
#if defined(AZ_PLATFORM_WINDOWS) #if defined(AZ_PLATFORM_WINDOWS)
LOG(ERROR) << "Failed to get offset for " << base::UTF16ToUTF8(thisFile.BaseName().value()); LOG(ERROR) << "Failed to get offset for " << base::WideToUTF8(thisFile.BaseName().value());
#else #else
LOG(ERROR) << "Failed to get offset for " << thisFile.BaseName().value(); LOG(ERROR) << "Failed to get offset for " << thisFile.BaseName().value();
#endif #endif
@ -162,7 +162,7 @@ namespace O3de
std::string fileNameKey{ "attachment_" }; std::string fileNameKey{ "attachment_" };
#if defined(AZ_PLATFORM_WINDOWS) #if defined(AZ_PLATFORM_WINDOWS)
fileNameKey += base::UTF16ToUTF8(thisFile.BaseName().value()); fileNameKey += base::WideToUTF8(thisFile.BaseName().value());
#else #else
fileNameKey += thisFile.BaseName().value(); fileNameKey += thisFile.BaseName().value();
#endif #endif

@ -36,6 +36,7 @@ ly_add_target(
AZ::AzToolsFramework AZ::AzToolsFramework
AZ::GridMate AZ::GridMate
AZ::AzQtComponents AZ::AzQtComponents
AZ::ToolsCrashHandler
${additional_dependencies} ${additional_dependencies}
COMPILE_DEFINITIONS COMPILE_DEFINITIONS
PRIVATE PRIVATE

@ -30,9 +30,7 @@ ly_add_target(
Include Include
BUILD_DEPENDENCIES BUILD_DEPENDENCIES
PRIVATE PRIVATE
AZ::AzCore
AZ::CrashHandler AZ::CrashHandler
AZ::CrashSupport
) )
ly_add_target( ly_add_target(
@ -46,10 +44,5 @@ ly_add_target(
Include Include
BUILD_DEPENDENCIES BUILD_DEPENDENCIES
PRIVATE PRIVATE
#3rdParty::Crashpad
#3rdParty::Crashpad::Handler
AZ::AzCore
AZ::CrashUploaderSupport AZ::CrashUploaderSupport
#AZ::CrashHandler
AZ::CrashSupport
) )

@ -1,30 +0,0 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
ly_add_external_target(
NAME Crashpad
VERSION ""
3RDPARTY_ROOT_DIRECTORY ${LY_ROOT_FOLDER}/Tools/Crashpad
INCLUDE_DIRECTORIES
include
include/third_party/mini_chromium/mini_chromium/
)
ly_add_external_target(
NAME Handler
PACKAGE Crashpad
VERSION ""
3RDPARTY_ROOT_DIRECTORY ${LY_ROOT_FOLDER}/Tools/Crashpad
INCLUDE_DIRECTORIES
include
include/third_party/mini_chromium/mini_chromium
include/third_party/getopt
)

@ -56,3 +56,4 @@ ly_associate_package(PACKAGE_NAME libsamplerate-0.2.1-rev2-windows TARGETS lib
ly_associate_package(PACKAGE_NAME OpenMesh-8.1-rev1-windows TARGETS OpenMesh PACKAGE_HASH 1c1df639358526c368e790dfce40c45cbdfcfb1c9a041b9d7054a8949d88ee77) ly_associate_package(PACKAGE_NAME OpenMesh-8.1-rev1-windows TARGETS OpenMesh PACKAGE_HASH 1c1df639358526c368e790dfce40c45cbdfcfb1c9a041b9d7054a8949d88ee77)
ly_associate_package(PACKAGE_NAME civetweb-1.8-rev1-windows TARGETS civetweb PACKAGE_HASH 36d0e58a59bcdb4dd70493fb1b177aa0354c945b06c30416348fd326cf323dd4) ly_associate_package(PACKAGE_NAME civetweb-1.8-rev1-windows TARGETS civetweb PACKAGE_HASH 36d0e58a59bcdb4dd70493fb1b177aa0354c945b06c30416348fd326cf323dd4)
ly_associate_package(PACKAGE_NAME OpenSSL-1.1.1b-rev2-windows TARGETS OpenSSL PACKAGE_HASH 9af1c50343f89146b4053101a7aeb20513319a3fe2f007e356d7ce25f9241040) ly_associate_package(PACKAGE_NAME OpenSSL-1.1.1b-rev2-windows TARGETS OpenSSL PACKAGE_HASH 9af1c50343f89146b4053101a7aeb20513319a3fe2f007e356d7ce25f9241040)
ly_associate_package(PACKAGE_NAME Crashpad-0.8.0-windows TARGETS Crashpad PACKAGE_HASH 6a6ae2d1c5bbc2083823c2a8a0a7c01b88ee47261c64e529e14c1f83f3436de2)

@ -1,36 +0,0 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
set(libpath ${BASE_PATH}/bin/windows/vs2019/$<IF:$<CONFIG:debug>,Debug,Release>_x64)
set(CRASHPAD_LIBS
${libpath}/base.lib
${libpath}/crashpad_client.lib
${libpath}/crashpad_context.lib
${libpath}/crashpad_util.lib
winhttp
version
powrprof
)
set(CRASHPAD_INCLUDE_DIRECTORIES
include/compat/win
)
set(CRASHPAD_HANDLER_LIBS
${libpath}/crashpad_tool_support.lib
${libpath}/crashpad_compat.lib
${libpath}/third_party/getopt.lib
${libpath}/crashpad_minidump.lib
${libpath}/crashpad_snapshot.lib
${libpath}/crashpad_handler.lib
${libpath}/third_party/zlib.lib
)

@ -11,7 +11,6 @@
set(FILES set(FILES
BuiltInPackages_windows.cmake BuiltInPackages_windows.cmake
Crashpad_windows.cmake
dyad_windows.cmake dyad_windows.cmake
FbxSdk_windows.cmake FbxSdk_windows.cmake
libav_windows.cmake libav_windows.cmake

Loading…
Cancel
Save