summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2020-09-25 14:56:36 +0800
committerfengweihao <[email protected]>2020-09-25 14:56:36 +0800
commit05f5154bbc38ac8e1a8ab20da26c2da1f8f307e9 (patch)
tree749fbbb9cef84b80455765a29521f24302b039ff /vendor
parent3ef608301cd2a671d687f3a11e9fde8d6992adb6 (diff)
策略验证支持minidump
Diffstat (limited to 'vendor')
-rw-r--r--vendor/CMakeLists.txt25
-rw-r--r--vendor/breakpad-master-abfe08e.tar.gzbin0 -> 13028225 bytes
2 files changed, 24 insertions, 1 deletions
diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt
index c452ef1..e8140e9 100644
--- a/vendor/CMakeLists.txt
+++ b/vendor/CMakeLists.txt
@@ -55,6 +55,30 @@ add_dependencies(gmock googletest)
set_property(TARGET gmock PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libgmock.a)
set_property(TARGET gmock PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)
+### Google Breakpad Binary
+### Caution: This package is a pre-compiled binary package, only used in x86_64 servers.
+ExternalProject_Add(breakpad
+ PREFIX breakpad
+ URL ${CMAKE_CURRENT_SOURCE_DIR}/breakpad-master-abfe08e.tar.gz
+ URL_MD5 96fb25a9d96cc55db71a7f374ad363b4
+ CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR>
+ BUILD_IN_SOURCE 1)
+
+ExternalProject_Get_Property(breakpad INSTALL_DIR)
+file(MAKE_DIRECTORY ${INSTALL_DIR}/include/breakpad)
+
+add_library(breakpad-client-static STATIC IMPORTED GLOBAL)
+add_dependencies(breakpad-client-static breakpad)
+set_property(TARGET breakpad-client-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libbreakpad_client.a)
+set_property(TARGET breakpad-client-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include/breakpad)
+target_link_libraries(breakpad-client-static INTERFACE pthread)
+
+# install the minidump tools to target binary dir
+install(PROGRAMS ${INSTALL_DIR}/bin/minidump-2-core DESTINATION bin COMPONENT)
+install(PROGRAMS ${INSTALL_DIR}/bin/minidump_dump DESTINATION bin COMPONENT )
+install(PROGRAMS ${INSTALL_DIR}/bin/minidump_stackwalk DESTINATION bin COMPONENT)
+install(PROGRAMS ${INSTALL_DIR}/bin/minidump_upload DESTINATION bin COMPONENT)
+
### gperftools
ExternalProject_Add(gperftools
PREFIX gperftools
@@ -104,4 +128,3 @@ add_library(pcre2-static STATIC IMPORTED GLOBAL)
add_dependencies(pcre2-static pcre2)
set_property(TARGET pcre2-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libpcre2-8.a)
set_property(TARGET pcre2-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)
-
diff --git a/vendor/breakpad-master-abfe08e.tar.gz b/vendor/breakpad-master-abfe08e.tar.gz
new file mode 100644
index 0000000..fd75aad
--- /dev/null
+++ b/vendor/breakpad-master-abfe08e.tar.gz
Binary files differ