# ---------- HEADER -----------------------------------------------------------
OTHERS += $$PWD/axCrashHandler.pri
HEADERS += $$PWD/CrashHandler.h
SOURCES += $$PWD/CrashHandler.cpp
BREAKPAD_PATH=$$EXTERNAL_LIBRARIES_PATH/breakpad-qt
INCLUDEPATH += $$BREAKPAD_PATH/src
OSMAC {
HEADERS += $$BREAKPAD_PATH/src/client/mac/handler/exception_handler.h
HEADERS += $$BREAKPAD_PATH/src/client/mac/crash_generation/crash_generation_client.h
HEADERS += $$BREAKPAD_PATH/src/client/mac/crash_generation/crash_generation_server.h
HEADERS += $$BREAKPAD_PATH/src/client/mac/crash_generation/client_info.h
HEADERS += $$BREAKPAD_PATH/src/client/mac/handler/minidump_generator.h
HEADERS += $$BREAKPAD_PATH/src/client/mac/handler/dynamic_images.h
HEADERS += $$BREAKPAD_PATH/src/client/mac/handler/breakpad_nlist_64.h
HEADERS += $$BREAKPAD_PATH/src/client/mac/handler/mach_vm_compat.h
HEADERS += $$BREAKPAD_PATH/src/client/minidump_file_writer.h
HEADERS += $$BREAKPAD_PATH/src/client/minidump_file_writer-inl.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/macho_utilities.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/byteswap.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/MachIPC.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/scoped_task_suspend-inl.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/file_id.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/macho_id.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/macho_walker.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/macho_utilities.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/bootstrap_compat.h
HEADERS += $$BREAKPAD_PATH/src/common/mac/string_utilities.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/linux_libc_support.h
HEADERS += $$BREAKPAD_PATH/src/common/string_conversion.h
HEADERS += $$BREAKPAD_PATH/src/common/md5.h
HEADERS += $$BREAKPAD_PATH/src/common/memory.h
HEADERS += $$BREAKPAD_PATH/src/common/using_std_string.h
HEADERS += $$BREAKPAD_PATH/src/common/convert_UTF.h
HEADERS += $$BREAKPAD_PATH/src/processor/scoped_ptr.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/minidump_exception_mac.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/breakpad_types.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/minidump_format.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/minidump_size.h
HEADERS += $$BREAKPAD_PATH/src/third_party/lss/linux_syscall_support.h
SOURCES += $$BREAKPAD_PATH/src/client/mac/handler/exception_handler.cc
SOURCES += $$BREAKPAD_PATH/src/client/mac/crash_generation/crash_generation_client.cc
SOURCES += $$BREAKPAD_PATH/src/client/mac/crash_generation/crash_generation_server.cc
SOURCES += $$BREAKPAD_PATH/src/client/mac/handler/minidump_generator.cc
SOURCES += $$BREAKPAD_PATH/src/client/mac/handler/dynamic_images.cc
SOURCES += $$BREAKPAD_PATH/src/client/mac/handler/breakpad_nlist_64.cc
SOURCES += $$BREAKPAD_PATH/src/client/minidump_file_writer.cc
SOURCES += $$BREAKPAD_PATH/src/common/mac/macho_id.cc
SOURCES += $$BREAKPAD_PATH/src/common/mac/macho_walker.cc
SOURCES += $$BREAKPAD_PATH/src/common/mac/macho_utilities.cc
SOURCES += $$BREAKPAD_PATH/src/common/mac/string_utilities.cc
SOURCES += $$BREAKPAD_PATH/src/common/mac/file_id.cc
SOURCES += $$BREAKPAD_PATH/src/common/mac/MachIPC.mm
SOURCES += $$BREAKPAD_PATH/src/common/mac/bootstrap_compat.cc
SOURCES += $$BREAKPAD_PATH/src/common/md5.cc
SOURCES += $$BREAKPAD_PATH/src/common/string_conversion.cc
SOURCES += $$BREAKPAD_PATH/src/common/linux/linux_libc_support.cc
SOURCES += $$BREAKPAD_PATH/src/common/convert_UTF.c
LIBS += /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
LIBS += /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
#breakpad app need debug info inside binaries
QMAKE_CXXFLAGS+=-g
}
OSLIN {
HEADERS += $$BREAKPAD_PATH/src/client/linux/handler/exception_handler.h
HEADERS += $$BREAKPAD_PATH/src/client/linux/crash_generation/crash_generation_client.h
HEADERS += $$BREAKPAD_PATH/src/client/linux/handler/minidump_descriptor.h
HEADERS += $$BREAKPAD_PATH/src/client/linux/minidump_writer/minidump_writer.h
HEADERS += $$BREAKPAD_PATH/src/client/linux/minidump_writer/line_reader.h
HEADERS += $$BREAKPAD_PATH/src/client/linux/minidump_writer/linux_dumper.h
HEADERS += $$BREAKPAD_PATH/src/client/linux/minidump_writer/linux_ptrace_dumper.h
HEADERS += $$BREAKPAD_PATH/src/client/linux/minidump_writer/directory_reader.h
HEADERS += $$BREAKPAD_PATH/src/client/linux/log/log.h
HEADERS += $$BREAKPAD_PATH/src/client/minidump_file_writer-inl.h
HEADERS += $$BREAKPAD_PATH/src/client/minidump_file_writer.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/linux_libc_support.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/eintr_wrapper.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/ignore_ret.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/file_id.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/memory_mapped_file.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/safe_readlink.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/guid_creator.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/elfutils.h
HEADERS += $$BREAKPAD_PATH/src/common/linux/elfutils-inl.h
HEADERS += $$BREAKPAD_PATH/src/common/using_std_string.h
HEADERS += $$BREAKPAD_PATH/src/common/memory.h
HEADERS += $$BREAKPAD_PATH/src/common/basictypes.h
HEADERS += $$BREAKPAD_PATH/src/common/memory_range.h
HEADERS += $$BREAKPAD_PATH/src/common/string_conversion.h
HEADERS += $$BREAKPAD_PATH/src/common/convert_UTF.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/minidump_format.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/minidump_size.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/breakpad_types.h
HEADERS += $$BREAKPAD_PATH/src/processor/scoped_ptr.h
HEADERS += $$BREAKPAD_PATH/src/third_party/lss/linux_syscall_support.h
SOURCES += $$BREAKPAD_PATH/src/client/linux/crash_generation/crash_generation_client.cc
SOURCES += $$BREAKPAD_PATH/src/client/linux/handler/exception_handler.cc
SOURCES += $$BREAKPAD_PATH/src/client/linux/handler/minidump_descriptor.cc
SOURCES += $$BREAKPAD_PATH/src/client/linux/minidump_writer/minidump_writer.cc
SOURCES += $$BREAKPAD_PATH/src/client/linux/minidump_writer/linux_dumper.cc
SOURCES += $$BREAKPAD_PATH/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
SOURCES += $$BREAKPAD_PATH/src/client/linux/log/log.cc
SOURCES += $$BREAKPAD_PATH/src/client/minidump_file_writer.cc
SOURCES += $$BREAKPAD_PATH/src/common/linux/linux_libc_support.cc
SOURCES += $$BREAKPAD_PATH/src/common/linux/file_id.cc
SOURCES += $$BREAKPAD_PATH/src/common/linux/memory_mapped_file.cc
SOURCES += $$BREAKPAD_PATH/src/common/linux/safe_readlink.cc
SOURCES += $$BREAKPAD_PATH/src/common/linux/guid_creator.cc
SOURCES += $$BREAKPAD_PATH/src/common/linux/elfutils.cc
SOURCES += $$BREAKPAD_PATH/src/common/string_conversion.cc
SOURCES += $$BREAKPAD_PATH/src/common/convert_UTF.c
#breakpad app need debug info inside binaries
QMAKE_CXXFLAGS+=-g
}
OSWIN {
BREAKPAD_PATH=q:/Applications/breakpad-qt/third-party/latest-breakpad
INCLUDEPATH += $$BREAKPAD_PATH/src
HEADERS += $$BREAKPAD_PATH/src/common/windows/string_utils-inl.h
HEADERS += $$BREAKPAD_PATH/src/common/windows/guid_string.h
HEADERS += $$BREAKPAD_PATH/src/client/windows/handler/exception_handler.h
HEADERS += $$BREAKPAD_PATH/src/client/windows/common/ipc_protocol.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/minidump_format.h
HEADERS += $$BREAKPAD_PATH/src/google_breakpad/common/breakpad_types.h
HEADERS += $$BREAKPAD_PATH/src/client/windows/crash_generation/crash_generation_client.h
HEADERS += $$BREAKPAD_PATH/src/processor/scoped_ptr.h
SOURCES += $$BREAKPAD_PATH/src/client/windows/handler/exception_handler.cc
SOURCES += $$BREAKPAD_PATH/src/common/windows/string_utils.cc
SOURCES += $$BREAKPAD_PATH/src/common/windows/guid_string.cc
SOURCES += $$BREAKPAD_PATH/src/client/windows/crash_generation/crash_generation_client.cc
}