-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sentry-native] update to 0.7.0 (#36088)
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
- Loading branch information
Showing
6 changed files
with
43 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,43 @@ | ||
diff --git a/external/crashpad/crashpad-config.cmake.in b/external/crashpad/crashpad-config.cmake.in | ||
index 846797d..d7c4ae6 100644 | ||
--- a/external/crashpad/crashpad-config.cmake.in | ||
+++ b/external/crashpad/crashpad-config.cmake.in | ||
@@ -1,6 +1,9 @@ | ||
include("${CMAKE_CURRENT_LIST_DIR}/crashpad-targets.cmake") | ||
|
||
if(@CRASHPAD_ZLIB_SYSTEM@) | ||
+ include(CMakeFindDependencyMacro) | ||
+ find_dependency(ZLIB) | ||
+elseif(0) | ||
find_package(ZLIB REQUIRED) | ||
target_include_directories(crashpad::zlib INTERFACE ${ZLIB_INCLUDE_DIRS}) | ||
target_compile_definitions(crashpad::zlib INTERFACE ${ZLIB_COMPILE_DEFINITIONS}) | ||
diff --git a/external/crashpad/third_party/zlib/CMakeLists.txt b/external/crashpad/third_party/zlib/CMakeLists.txt | ||
index eeb449f..59a6ff1 100644 | ||
--- a/external/crashpad/third_party/zlib/CMakeLists.txt | ||
+++ b/external/crashpad/third_party/zlib/CMakeLists.txt | ||
@@ -1,11 +1,10 @@ | ||
if(CRASHPAD_ZLIB_SYSTEM) | ||
add_library(crashpad_zlib INTERFACE) | ||
target_compile_definitions(crashpad_zlib INTERFACE | ||
ZLIB_CONST | ||
CRASHPAD_ZLIB_SOURCE_SYSTEM | ||
- $<BUILD_INTERFACE:${ZLIB_COMPILE_DEFINITIONS}> | ||
) | ||
target_link_libraries(crashpad_zlib INTERFACE ZLIB::ZLIB) | ||
else() | ||
add_library(crashpad_zlib STATIC | ||
zlib/adler32.c | ||
diff --git a/sentry-config.cmake.in b/sentry-config.cmake.in | ||
index 89ea345..acbd5e2 100644 | ||
index 70ce7d3..796d428 100644 | ||
--- a/sentry-config.cmake.in | ||
+++ b/sentry-config.cmake.in | ||
@@ -3,9 +3,14 @@ | ||
set(SENTRY_BACKEND @SENTRY_BACKEND@) | ||
set(SENTRY_TRANSPORT @SENTRY_TRANSPORT@) | ||
@@ -1,5 +1,7 @@ | ||
@PACKAGE_INIT@ | ||
|
||
+include(CMakeFindDependencyMacro) | ||
+if("@SENTRY_LINK_PTHREAD@") | ||
+ find_dependency(Threads) | ||
+endif() | ||
+ | ||
if(SENTRY_BACKEND STREQUAL "crashpad") | ||
if(@SENTRY_CRASHPAD_SYSTEM@) | ||
- find_package(crashpad REQUIRED) | ||
+ find_dependency(crashpad) | ||
else() | ||
include("${CMAKE_CURRENT_LIST_DIR}/sentry_crashpad-targets.cmake") | ||
set(SENTRY_BACKEND @SENTRY_BACKEND@) | ||
set(SENTRY_TRANSPORT @SENTRY_TRANSPORT@) | ||
set(SENTRY_BUILD_SHARED_LIBS @SENTRY_BUILD_SHARED_LIBS@) | ||
@@ -8,14 +10,14 @@ set(SENTRY_LINK_PTHREAD @SENTRY_LINK_PTHREAD@) | ||
if(SENTRY_BACKEND STREQUAL "crashpad" AND NOT SENTRY_BUILD_SHARED_LIBS) | ||
include("${CMAKE_CURRENT_LIST_DIR}/sentry_crashpad-targets.cmake") | ||
if(NOT MSVC AND NOT SENTRY_BUILD_SHARED_LIBS) | ||
- find_package(ZLIB REQUIRED) | ||
+ find_depenency(ZLIB) | ||
endif() | ||
@@ -14,7 +19,5 @@ endif() | ||
endif() | ||
|
||
if(SENTRY_BACKEND STREQUAL "breakpad" AND NOT SENTRY_BUILD_SHARED_LIBS) | ||
set(SENTRY_BREAKPAD_SYSTEM @SENTRY_BREAKPAD_SYSTEM@) | ||
if(SENTRY_BREAKPAD_SYSTEM) | ||
- find_package(PkgConfig REQUIRED) | ||
+ find_dependency(PkgConfig) | ||
pkg_check_modules(BREAKPAD REQUIRED IMPORTED_TARGET breakpad-client) | ||
endif() | ||
endif() | ||
@@ -23,11 +25,9 @@ endif() | ||
include("${CMAKE_CURRENT_LIST_DIR}/sentry-targets.cmake") | ||
|
||
if(SENTRY_TRANSPORT STREQUAL "curl" AND NOT @BUILD_SHARED_LIBS@) | ||
if(SENTRY_TRANSPORT STREQUAL "curl" AND (NOT @BUILD_SHARED_LIBS@ OR NOT SENTRY_BUILD_SHARED_LIBS)) | ||
- find_package(CURL REQUIRED) | ||
- set_property(TARGET sentry::sentry APPEND | ||
- PROPERTY INTERFACE_LINK_LIBRARIES ${CURL_LIBRARIES}) | ||
+ find_dependency(CURL) | ||
endif() | ||
|
||
if(SENTRY_LINK_PTHREAD AND NOT SENTRY_BUILD_SHARED_LIBS) | ||
- find_package(Threads REQUIRED) | ||
+ find_dependency(Threads) | ||
endif() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters