Skip to content

Commit

Permalink
Add CRASHREPORTER_SUBMIT_URL to OWNCLOUD.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Aug 28, 2014
1 parent 439bf76 commit b8e8d97
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
15 changes: 9 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ endif()
include(${CMAKE_SOURCE_DIR}/VERSION.cmake)
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR} "${CMAKE_CURRENT_BINARY_DIR}/src/mirall/")

# disable the crashrepoter if libcrashreporter-qt is not available or we're building for ARM
if( CMAKE_SYSTEM_PROCESSOR MATCHES "arm" OR NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/libcrashreporter-qt/CMakeLists.txt")
set( WITH_CRASHREPORTER OFF )
endif()

if(NOT WITH_CRASHREPORTER)
message(STATUS "Build of crashreporter disabled.")
endif()

#####
## handle DBUS for Fdo notifications
if( UNIX AND NOT APPLE )
Expand Down Expand Up @@ -94,12 +103,6 @@ if(OWNCLOUD_5XX_NO_BLACKLIST)
add_definitions(-DOWNCLOUD_5XX_NO_BLACKLIST=1)
endif()

option(WITH_CRASHREPORTER "Build the crash reporter" ON)
IF( CMAKE_SYSTEM_PROCESSOR MATCHES "arm" OR NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/libcrashreporter-qt/CMakeLists.txt")
message(STATUS "Build of crashreporter disabled.")
SET(WITH_CRASHREPORTER OFF)
ENDIF()

#### find libs
#find_package(Qt4 4.7.0 COMPONENTS QtCore QtGui QtXml QtNetwork QtTest QtWebkit REQUIRED )
#if( UNIX AND NOT APPLE ) # Fdo notifications
Expand Down
3 changes: 3 additions & 0 deletions OWNCLOUD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ set( APPLICATION_REV_DOMAIN "com.owncloud.desktopclient" )
set( WIN_SETUP_BITMAP_PATH "${CMAKE_SOURCE_DIR}/admin/win/nsi" )
# set( THEME_INCLUDE "${OEM_THEME_DIR}/mytheme.h" )
# set( APPLICATION_LICENSE "${OEM_THEME_DIR}/license.txt )

option( WITH_CRASHREPORTER "Build crashreporter" OFF )
set( CRASHREPORTER_SUBMIT_URL "https://crash-reports.owncloud.org/submit" CACHE string "URL for crash repoter" )
2 changes: 1 addition & 1 deletion src/crashreporter/CrashReporterConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

#define CRASHREPORTER_VERSION_STRING "@MIRALL_VERSION_STRING@"

#define CRASHREPORTER_SUBMIT_URL "http://crash-reports.owncloud.org/submit"
#define CRASHREPORTER_SUBMIT_URL "@CRASHREPORTER_SUBMIT_URL@"

#endif // CRASHREPORTERCONFIG_H

0 comments on commit b8e8d97

Please sign in to comment.