mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-29 20:01:26 +00:00
feature add sentry for catch crash on win (#50)
* feature add sentry for soft catch dmp * feature add cli upload pdb to sentry server * feature add flag for control sentry to use * fix flag not effect on src/makefile * feature unzip for dmp file to upload sentry server * feature remove test code * feature add api for function report log to server * feature update the soft version
This commit is contained in:
Vendored
+15
@@ -62,6 +62,14 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
option(DEP_WX_GTK3 "Build wxWidgets against GTK3" OFF)
|
||||
endif()
|
||||
|
||||
# Sentry crash reporting - enabled only on Windows by default
|
||||
if (WIN32)
|
||||
set(SLIC3R_SENTRY_DEFAULT ON)
|
||||
else()
|
||||
set(SLIC3R_SENTRY_DEFAULT OFF)
|
||||
endif()
|
||||
option(SLIC3R_SENTRY "Enable Sentry crash reporting SDK" ${SLIC3R_SENTRY_DEFAULT})
|
||||
|
||||
set(IS_CROSS_COMPILE FALSE)
|
||||
|
||||
if (APPLE)
|
||||
@@ -314,6 +322,12 @@ if (NOT OPENSSL_FOUND OR NOT CURL_FOUND)
|
||||
set(CURL_PKG dep_CURL)
|
||||
endif ()
|
||||
|
||||
set(SENTRY_PKG "")
|
||||
if (SLIC3R_SENTRY AND NOT SENTRY_FOUND)
|
||||
include(Sentry/Sentry.cmake)
|
||||
set(SENTRY_PKG dep_Sentry)
|
||||
endif()
|
||||
|
||||
set(JPEG_PKG "")
|
||||
if (NOT JPEG_FOUND)
|
||||
include(JPEG/JPEG.cmake)
|
||||
@@ -355,6 +369,7 @@ set(_dep_list
|
||||
dep_TBB
|
||||
${OPENSSL_PKG}
|
||||
${CURL_PKG}
|
||||
${SENTRY_PKG}
|
||||
${WXWIDGETS_PKG}
|
||||
dep_Cereal
|
||||
dep_NLopt
|
||||
|
||||
Reference in New Issue
Block a user