mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Update externals
This commit is contained in:
committed by
Mathew Sutcliffe
parent
281d493434
commit
c260af7b11
@@ -1082,10 +1082,12 @@ namespace BlackCore
|
||||
|
||||
static const QString extension = CBuildConfig::isRunningOnWindowsNtPlatform() ? ".exe" : QString();
|
||||
static const QString handler = CDirectoryUtils::applicationDirectoryPath() + "/" + "swift_crashpad_handler" + extension;
|
||||
static const QString database = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
|
||||
static const QString crashpadPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
|
||||
"/org.swift-project/" +
|
||||
CDirectoryUtils::normalizedApplicationDirectory() +
|
||||
"/crashpad";
|
||||
static const QString database = crashpadPath + "/database";
|
||||
static const QString metrics = crashpadPath + "/metrics";
|
||||
|
||||
if (!QFileInfo::exists(handler))
|
||||
{
|
||||
@@ -1104,9 +1106,8 @@ namespace BlackCore
|
||||
auto settings = m_crashReportDatabase->GetSettings();
|
||||
settings->SetUploadsEnabled(CBuildConfig::isReleaseBuild() && m_crashDumpUploadEnabled.getThreadLocal());
|
||||
m_crashpadClient = std::make_unique<CrashpadClient>();
|
||||
m_crashpadClient->StartHandler(qstringToFilePath(handler), qstringToFilePath(database),
|
||||
serverUrl.getFullUrl().toStdString(), annotations, {}, false);
|
||||
m_crashpadClient->UseHandler();
|
||||
m_crashpadClient->StartHandler(qstringToFilePath(handler), qstringToFilePath(database), qstringToFilePath(metrics),
|
||||
serverUrl.getFullUrl().toStdString(), annotations, {}, false, true);
|
||||
return CStatusMessage(this).info("Using crash handler");
|
||||
#else
|
||||
return CStatusMessage(this).info("Not using crash handler");
|
||||
|
||||
@@ -41,8 +41,8 @@ DESTDIR = $$DestRoot/lib
|
||||
DLLDESTDIR = $$DestRoot/bin
|
||||
|
||||
msvc {
|
||||
CONFIG(debug, debug|release): LIBS *= -lcrashpad_clientd -lcrashpad_utild -lbased -lRpcrt4
|
||||
CONFIG(release, debug|release): LIBS *= -lcrashpad_client -lcrashpad_util -lbase -lRpcrt4
|
||||
CONFIG(debug, debug|release): LIBS *= -lcrashpad_clientd -lcrashpad_utild -lbased -lRpcrt4 -lAdvapi32
|
||||
CONFIG(release, debug|release): LIBS *= -lcrashpad_client -lcrashpad_util -lbase -lRpcrt4 -lAdvapi32
|
||||
}
|
||||
macx: LIBS *= -lcrashpad_client -lcrashpad_util -lbase -lbsm -framework Security
|
||||
|
||||
|
||||
Reference in New Issue
Block a user