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