mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 00:48:22 -04:00
Install CrashReporter handler.
This commit is contained in:
parent
e18186a2c5
commit
9fb9aaf6e4
3 changed files with 18 additions and 1 deletions
|
@ -27,6 +27,8 @@ include_directories(
|
|||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../libcalamares
|
||||
|
||||
${THIRDPARTY_DIR}/libcrashreporter-qt/src/
|
||||
|
||||
../libcalamares
|
||||
../libcalamaresui
|
||||
)
|
||||
|
@ -51,15 +53,18 @@ SET_TARGET_PROPERTIES(calamares_bin
|
|||
RUNTIME_OUTPUT_NAME calamares
|
||||
)
|
||||
|
||||
if( WITH_CRASHREPORTER )
|
||||
list( APPEND LINK_LIBRARIES ${LINK_LIBRARIES} pthread crashreporter-handler )
|
||||
endif()
|
||||
|
||||
qt5_use_modules( calamares_bin Core Widgets )
|
||||
target_link_libraries( calamares_bin
|
||||
${LINK_LIBRARIES}
|
||||
${CALAMARES_LIBRARIES}
|
||||
calamaresui
|
||||
Qt5::Core
|
||||
Qt5::Widgets
|
||||
yaml-cpp
|
||||
${LINK_LIBRARIES}
|
||||
)
|
||||
|
||||
install( TARGETS calamares_bin
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
#include "kdsingleapplicationguard/kdsingleapplicationguard.h"
|
||||
#include "utils/CalamaresUtils.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "CalamaresConfig.h"
|
||||
#ifdef WITH_CRASHREPORTER
|
||||
#include "libcrashreporter-handler/Handler.h"
|
||||
#endif
|
||||
|
||||
#include <QCommandLineParser>
|
||||
#include <QDebug>
|
||||
|
@ -32,6 +36,13 @@ main( int argc, char* argv[] )
|
|||
{
|
||||
CalamaresApplication a( argc, argv );
|
||||
|
||||
#ifdef WITH_CRASHREPORTER
|
||||
CrashReporter::Handler* handler =
|
||||
new CrashReporter::Handler( QDir::tempPath(),
|
||||
true,
|
||||
"calamares_crash_reporter" );
|
||||
#endif
|
||||
|
||||
QCommandLineParser parser;
|
||||
parser.setApplicationDescription( "Distribution-independent installer framework" );
|
||||
parser.addHelpOption();
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
|
||||
//cmakedefines for CMake variables (e.g. for optdepends) go here
|
||||
#cmakedefine WITH_PYTHON
|
||||
#cmakedefine WITH_CRASHREPORTER
|
||||
|
||||
#endif // CALAMARESCONFIG_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue