mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-16 14:01:58 +02:00
Build crash reporter if submodule is checked out
This commit is contained in:
parent
161a754d6d
commit
5117980a0e
@ -50,7 +50,6 @@ option(BUILD_TESTS "Build Tomahawk with unit tests" ON)
|
||||
option(BUILD_HATCHET "Build the Hatchet plugin" OFF)
|
||||
option(BUILD_WITH_QT4 "Build Tomahawk with Qt4 no matter if Qt5 was found" ON)
|
||||
|
||||
option(WITH_BREAKPAD "Build with breakpad integration" ON)
|
||||
option(WITH_CRASHREPORTER "Build with CrashReporter" ON)
|
||||
option(WITH_BINARY_ATTICA "Enable support for downloading binary resolvers automatically" ON)
|
||||
option(LEGACY_KDE_INTEGRATION "Install tomahawk.protocol file, deprecated since 4.6.0" OFF)
|
||||
@ -61,21 +60,11 @@ CMAKE_DEPENDENT_OPTION(WITH_UPOWER "Build with support for UPower events" ON
|
||||
CMAKE_DEPENDENT_OPTION(WITH_GNOMESHORTCUTHANDLER "Build with shortcut handler for GNOME" ON
|
||||
"UNIX;NOT APPLE" OFF)
|
||||
|
||||
IF( CMAKE_SYSTEM_PROCESSOR MATCHES "arm" )
|
||||
message(STATUS "Build of breakpad library disabled on this platform.")
|
||||
SET(WITH_BREAKPAD OFF)
|
||||
IF( CMAKE_SYSTEM_PROCESSOR MATCHES "arm" OR NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libcrashreporter-qt")
|
||||
message(STATUS "Build of crashreporter disabled.")
|
||||
SET(WITH_CRASHREPORTER OFF)
|
||||
ENDIF()
|
||||
|
||||
# add definitions based on build options
|
||||
IF( WITH_BREAKPAD )
|
||||
message(STATUS "Build with support for breakpad.")
|
||||
IF( CMAKE_COMPILER_IS_GNUCXX )
|
||||
ADD_DEFINITIONS( -DSTDC_HEADERS -std=gnu++98 )
|
||||
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTDC_HEADERS -std=gnu++98" )
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
# generate version string
|
||||
|
||||
# base string used in release and unstable builds
|
||||
|
@ -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 )
|
||||
|
@ -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()
|
||||
|
||||
|
@ -12,7 +12,6 @@
|
||||
#cmakedefine LEOPARD
|
||||
#cmakedefine HAVE_SPARKLE
|
||||
|
||||
#cmakedefine WITH_BREAKPAD
|
||||
#cmakedefine WITH_CRASHREPORTER
|
||||
#cmakedefine WITH_BINARY_ATTICA
|
||||
#cmakedefine WITH_QTSPARKLE
|
||||
|
@ -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
|
||||
|
2
thirdparty/CMakeLists.txt
vendored
2
thirdparty/CMakeLists.txt
vendored
@ -1,5 +1,5 @@
|
||||
ADD_SUBDIRECTORY( qxt )
|
||||
IF( WITH_BREAKPAD )
|
||||
IF( WITH_CRASHREPORTER )
|
||||
ADD_SUBDIRECTORY( libcrashreporter-qt )
|
||||
ENDIF()
|
||||
IF( APPLE )
|
||||
|
Loading…
x
Reference in New Issue
Block a user