Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the include path of breakpad's third_party(such as lss) and add a implement #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions handler/QBreakpadHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ QString QBreakpadHandler::uploadUrl() const
return d->uploadUrl.toString();
}

QString QBreakpadHandler::dumpPath() const
{
return d->dumpPath;
}

QStringList QBreakpadHandler::dumpFileList() const
{
if(!d->dumpPath.isNull() && !d->dumpPath.isEmpty()) {
Expand Down
79 changes: 40 additions & 39 deletions third_party/breakpad.pri
Original file line number Diff line number Diff line change
@@ -1,61 +1,62 @@
CONFIG += c++11

# internal file, used but breakpad-qt
BREAKPAD_PATH = $$PWD/breakpad/src
INCLUDEPATH += $$BREAKPAD_PATH $$PWD/../
BREAKPAD_PATH = $$PWD/breakpad #for breakpad's third_patry(such as lss)
BREAKPAD_PATH_SRC = $$PWD/breakpad/src
INCLUDEPATH += $$BREAKPAD_PATH $$BREAKPAD_PATH_SRC

# every *nix
unix {
SOURCES += \
$$BREAKPAD_PATH/client/minidump_file_writer.cc \
$$BREAKPAD_PATH/common/convert_UTF.cc \
$$BREAKPAD_PATH/common/md5.cc \
$$BREAKPAD_PATH/common/string_conversion.cc
$$BREAKPAD_PATH_SRC/client/minidump_file_writer.cc \
$$BREAKPAD_PATH_SRC/common/convert_UTF.cc \
$$BREAKPAD_PATH_SRC/common/md5.cc \
$$BREAKPAD_PATH_SRC/common/string_conversion.cc
}

# mac os x
mac {
OBJECTIVE_SOURCES += \
$$BREAKPAD_PATH/client/mac/crash_generation/crash_generation_client.cc \
$$BREAKPAD_PATH/client/mac/handler/breakpad_nlist_64.cc \
$$BREAKPAD_PATH/client/mac/handler/dynamic_images.cc \
$$BREAKPAD_PATH/client/mac/handler/exception_handler.cc \
$$BREAKPAD_PATH/client/mac/handler/minidump_generator.cc \
$$BREAKPAD_PATH/common/mac/MachIPC.mm \
$$BREAKPAD_PATH/common/mac/bootstrap_compat.cc \
$$BREAKPAD_PATH/common/mac/file_id.cc \
$$BREAKPAD_PATH/common/mac/macho_id.cc \
$$BREAKPAD_PATH/common/mac/macho_utilities.cc \
$$BREAKPAD_PATH/common/mac/macho_walker.cc \
$$BREAKPAD_PATH/common/mac/string_utilities.cc
$$BREAKPAD_PATH_SRC/client/mac/crash_generation/crash_generation_client.cc \
$$BREAKPAD_PATH_SRC/client/mac/handler/breakpad_nlist_64.cc \
$$BREAKPAD_PATH_SRC/client/mac/handler/dynamic_images.cc \
$$BREAKPAD_PATH_SRC/client/mac/handler/exception_handler.cc \
$$BREAKPAD_PATH_SRC/client/mac/handler/minidump_generator.cc \
$$BREAKPAD_PATH_SRC/common/mac/MachIPC.mm \
$$BREAKPAD_PATH_SRC/common/mac/bootstrap_compat.cc \
$$BREAKPAD_PATH_SRC/common/mac/file_id.cc \
$$BREAKPAD_PATH_SRC/common/mac/macho_id.cc \
$$BREAKPAD_PATH_SRC/common/mac/macho_utilities.cc \
$$BREAKPAD_PATH_SRC/common/mac/macho_walker.cc \
$$BREAKPAD_PATH_SRC/common/mac/string_utilities.cc
}

# other *nix
unix:!mac {
SOURCES += \
$$BREAKPAD_PATH/client/linux/crash_generation/crash_generation_client.cc \
$$BREAKPAD_PATH/client/linux/dump_writer_common/thread_info.cc \
$$BREAKPAD_PATH/client/linux/dump_writer_common/ucontext_reader.cc \
$$BREAKPAD_PATH/client/linux/handler/exception_handler.cc \
$$BREAKPAD_PATH/client/linux/handler/minidump_descriptor.cc \
$$BREAKPAD_PATH/client/linux/log/log.cc \
$$BREAKPAD_PATH/client/linux/microdump_writer/microdump_writer.cc \
$$BREAKPAD_PATH/client/linux/minidump_writer/linux_core_dumper.cc \
$$BREAKPAD_PATH/client/linux/minidump_writer/linux_dumper.cc \
$$BREAKPAD_PATH/client/linux/minidump_writer/linux_ptrace_dumper.cc \
$$BREAKPAD_PATH/client/linux/minidump_writer/minidump_writer.cc \
$$BREAKPAD_PATH/common/linux/breakpad_getcontext.S \
$$BREAKPAD_PATH/common/linux/elfutils.cc \
$$BREAKPAD_PATH/common/linux/file_id.cc \
$$BREAKPAD_PATH/common/linux/guid_creator.cc \
$$BREAKPAD_PATH/common/linux/linux_libc_support.cc \
$$BREAKPAD_PATH/common/linux/memory_mapped_file.cc \
$$BREAKPAD_PATH/common/linux/safe_readlink.cc
$$BREAKPAD_PATH_SRC/client/linux/crash_generation/crash_generation_client.cc \
$$BREAKPAD_PATH_SRC/client/linux/dump_writer_common/thread_info.cc \
$$BREAKPAD_PATH_SRC/client/linux/dump_writer_common/ucontext_reader.cc \
$$BREAKPAD_PATH_SRC/client/linux/handler/exception_handler.cc \
$$BREAKPAD_PATH_SRC/client/linux/handler/minidump_descriptor.cc \
$$BREAKPAD_PATH_SRC/client/linux/log/log.cc \
$$BREAKPAD_PATH_SRC/client/linux/microdump_writer/microdump_writer.cc \
$$BREAKPAD_PATH_SRC/client/linux/minidump_writer/linux_core_dumper.cc \
$$BREAKPAD_PATH_SRC/client/linux/minidump_writer/linux_dumper.cc \
$$BREAKPAD_PATH_SRC/client/linux/minidump_writer/linux_ptrace_dumper.cc \
$$BREAKPAD_PATH_SRC/client/linux/minidump_writer/minidump_writer.cc \
$$BREAKPAD_PATH_SRC/common/linux/breakpad_getcontext.S \
$$BREAKPAD_PATH_SRC/common/linux/elfutils.cc \
$$BREAKPAD_PATH_SRC/common/linux/file_id.cc \
$$BREAKPAD_PATH_SRC/common/linux/guid_creator.cc \
$$BREAKPAD_PATH_SRC/common/linux/linux_libc_support.cc \
$$BREAKPAD_PATH_SRC/common/linux/memory_mapped_file.cc \
$$BREAKPAD_PATH_SRC/common/linux/safe_readlink.cc
}

win32 {
SOURCES += \
$$BREAKPAD_PATH/client/windows/crash_generation/crash_generation_client.cc \
$$BREAKPAD_PATH/client/windows/handler/exception_handler.cc \
$$BREAKPAD_PATH/common/windows/guid_string.cc
$$BREAKPAD_PATH_SRC/client/windows/crash_generation/crash_generation_client.cc \
$$BREAKPAD_PATH_SRC/client/windows/handler/exception_handler.cc \
$$BREAKPAD_PATH_SRC/common/windows/guid_string.cc
}