summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-03 12:37:18 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-05 21:39:30 +0000
commit47d28949129eb9c4ec450342e41326a6b450590b (patch)
tree5436dc9ebcdd1a28976a3c1cf75a454bfb4d20e2 /svx
parent3b799297f066dcb439dde7408e91a3cd42f06604 (diff)
integrate the minidump upload into the normal LibreOffice
Reviewed-on: https://gerrit.libreoffice.org/25863 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 4e074fb8183ac8649c9cb202da4ce93526c1b6d8) Conflicts: svx/source/dialog/crashreportdlg.cxx Change-Id: Id1808ceebf6c54698f7d1656a0ce96bcaece89ac Reviewed-on: https://gerrit.libreoffice.org/25931 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/Library_svx.mk10
-rw-r--r--svx/source/dialog/crashreportdlg.cxx9
2 files changed, 13 insertions, 6 deletions
diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk
index f664d40562c5..c026002c2750 100644
--- a/svx/Library_svx.mk
+++ b/svx/Library_svx.mk
@@ -40,6 +40,14 @@ $(eval $(call gb_Library_add_defs,svx,\
$(eval $(call gb_Library_set_precompiled_header,svx,$(SRCDIR)/svx/inc/pch/precompiled_svx))
+ifeq ($(ENABLE_BREAKPAD),TRUE)
+
+$(eval $(call gb_Library_use_static_libraries,svx, \
+ minidump \
+))
+
+endif
+
$(eval $(call gb_Library_use_libraries,svx,\
basegfx \
sb \
@@ -74,6 +82,8 @@ $(eval $(call gb_Library_use_libraries,svx,\
$(eval $(call gb_Library_use_externals,svx,\
boost_headers \
+ $(call gb_Helper_optional,BREAKPAD, \
+ curl) \
icuuc \
icu_headers \
))
diff --git a/svx/source/dialog/crashreportdlg.cxx b/svx/source/dialog/crashreportdlg.cxx
index aeb5c14fb192..511199b4bf5f 100644
--- a/svx/source/dialog/crashreportdlg.cxx
+++ b/svx/source/dialog/crashreportdlg.cxx
@@ -9,10 +9,12 @@
#include "crashreportdlg.hxx"
+
#include <config_folders.h>
#include <rtl/bootstrap.hxx>
#include <desktop/crashreport.hxx>
+#include <desktop/minidump.hxx>
#include <osl/file.hxx>
CrashReportDialog::CrashReportDialog(vcl::Window* pParent):
@@ -56,13 +58,8 @@ IMPL_LINK_TYPED(CrashReportDialog, BtnHdl, Button*, pBtn, void)
if (pBtn == mpBtnSend.get())
{
std::string ini_path = CrashReporter::getIniFileName();
- OUString aCommand;
- osl::FileBase::getSystemPathFromFileURL(getLibDir() + "/minidump_upload" + SAL_EXEEXTENSION, aCommand);
- aCommand = aCommand;
- OString aOStringCommand = rtl::OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8) + " " + ini_path.c_str();
- int retVal = std::system(aOStringCommand.getStr());
- SAL_WARN_IF(retVal != 0, "svx.dialog", "Failed to upload minidump. Error Code: " << retVal);
+ readConfig(ini_path);
// TODO: moggi: return the id for the user to look it up
Close();
}