mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-18 06:31:20 +01:00
Adds lib-sentry-report
This commit is contained in:
committed by
Dmitry Vedenko
parent
185d1d5ecc
commit
cb1f8b6c34
48
libraries/lib-sentry-reporting/CMakeLists.txt
Normal file
48
libraries/lib-sentry-reporting/CMakeLists.txt
Normal file
@@ -0,0 +1,48 @@
|
||||
#[[
|
||||
A library, that allows sending error reports to a Sentry server
|
||||
using Exception and Message interfaces.
|
||||
]]#
|
||||
|
||||
set( TARGET lib-sentry-reporting )
|
||||
set( TARGET_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )
|
||||
|
||||
def_vars()
|
||||
|
||||
if(${_OPT}has_sentry_reporting)
|
||||
set( SOURCES
|
||||
SentryHelper.h
|
||||
|
||||
AnonymizedMessage.h
|
||||
AnonymizedMessage.cpp
|
||||
|
||||
SentryReport.h
|
||||
SentryReport.cpp
|
||||
|
||||
SentryRequestBuilder.h
|
||||
SentryRequestBuilder.cpp
|
||||
)
|
||||
|
||||
|
||||
set ( LIBRARIES PRIVATE
|
||||
lib-network-manager # Required for the networking
|
||||
lib-string-utils # ToUtf8
|
||||
lib-uuid # UUIDs are required as an event identifier.
|
||||
RapidJSON::RapidJSON # Protocol is JSON based
|
||||
wxwidgets::base # Required to retreive the OS information
|
||||
)
|
||||
|
||||
set ( DEFINES
|
||||
INTERFACE
|
||||
HAS_SENTRY_REPORTING=1
|
||||
PRIVATE
|
||||
# The variables below will be used to construct Sentry URL:
|
||||
# https://${SENTRY_DSN_KEY}@${SENTRY_HOST}/api/${SENTRY_PROJECT}/store
|
||||
SENTRY_DSN_KEY="${SENTRY_DSN_KEY}"
|
||||
SENTRY_HOST="${SENTRY_HOST}"
|
||||
SENTRY_PROJECT="${SENTRY_PROJECT}"
|
||||
)
|
||||
|
||||
audacity_library( ${TARGET} "${SOURCES}" "${LIBRARIES}" "${DEFINES}" "" )
|
||||
else()
|
||||
audacity_header_only_library( ${TARGET} "SentryHelper.h" "" "" "" )
|
||||
endif()
|
||||
Reference in New Issue
Block a user