1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-31 09:32:03 +02:00

Build crash reporter if submodule is checked out

This commit is contained in:
Dominik Schmidt
2014-04-18 13:20:56 +02:00
parent 161a754d6d
commit 5117980a0e
6 changed files with 10 additions and 19 deletions

View File

@@ -21,7 +21,10 @@ add_subdirectory( viewpages )
# application
add_subdirectory( tomahawk )
add_subdirectory( crashreporter )
if(WITH_CRASHREPORTER)
add_subdirectory( crashreporter )
endif()
# tests
add_subdirectory( tests )

View File

@@ -173,7 +173,7 @@ ENDIF( LIBLASTFM_FOUND )
IF( QCA2_FOUND )
LIST(APPEND LINK_LIBRARIES ${LINK_LIBRARIES} ${QCA2_LIBRARIES} )
ENDIF( QCA2_FOUND )
IF( WITH_BREAKPAD )
IF( WITH_CRASHREPORTER )
LIST(APPEND LINK_LIBRARIES ${LINK_LIBRARIES} crashreporter-handler )
ENDIF()

View File

@@ -12,7 +12,6 @@
#cmakedefine LEOPARD
#cmakedefine HAVE_SPARKLE
#cmakedefine WITH_BREAKPAD
#cmakedefine WITH_CRASHREPORTER
#cmakedefine WITH_BINARY_ATTICA
#cmakedefine WITH_QTSPARKLE

View File

@@ -36,7 +36,7 @@
#ifndef ENABLE_HEADLESS
#include "TomahawkSettingsGui.h"
#ifdef WITH_BREAKPAD
#ifdef WITH_CRASHREPORTER
#include "libcrashreporter-handler/Handler.h"
#endif
@@ -165,7 +165,7 @@ main( int argc, char *argv[] )
#endif
#ifndef ENABLE_HEADLESS
#ifdef WITH_BREAKPAD
#ifdef WITH_CRASHREPORTER
new CrashReporter::Handler( QDir::tempPath(), TomahawkSettings::instance()->crashReporterEnabled() && !TomahawkUtils::headless(), "tomahawk_crash_reporter" );
#endif
#endif