mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/sentry-native: make installed cmake modules handle USE=breakpad
Looks like upstream has only tested this for bundled breakpad. Closes: https://bugs.gentoo.org/912886 Signed-off-by: Marek Szuba <marecki@gentoo.org>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
--- a/sentry-config.cmake.in
|
||||
+++ b/sentry-config.cmake.in
|
||||
@@ -3,7 +3,10 @@
|
||||
set(SENTRY_BACKEND @SENTRY_BACKEND@)
|
||||
set(SENTRY_TRANSPORT @SENTRY_TRANSPORT@)
|
||||
|
||||
-if(SENTRY_BACKEND STREQUAL "crashpad")
|
||||
+if(SENTRY_BACKEND STREQUAL "breakpad")
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(BREAKPAD REQUIRED IMPORTED_TARGET breakpad-client)
|
||||
+elseif(SENTRY_BACKEND STREQUAL "crashpad")
|
||||
if(@SENTRY_CRASHPAD_SYSTEM@)
|
||||
find_package(crashpad REQUIRED)
|
||||
else()
|
||||
@@ -17,12 +17,16 @@ IUSE="+breakpad +curl test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
breakpad? ( dev-util/breakpad )
|
||||
breakpad? (
|
||||
dev-util/breakpad
|
||||
virtual/pkgconfig
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.6.5_cmake-breakpad.patch
|
||||
"${FILESDIR}"/${PN}-0.6.5_no-fuzz-test.patch
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user