Skip to content

Commit 34d07cc

Browse files
committed
sentry plugin: Allow selecting sentry backend
1 parent aba9289 commit 34d07cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ set(FILESYSTEM_LAYOUTS default meta-flutter)
7575
set(FILESYSTEM_LAYOUT "default" CACHE STRING "Where to look for the icudtl.dat, app.so/libapp.so, flutter asset bundle.")
7676
set_property(CACHE FILESYSTEM_LAYOUT PROPERTY STRINGS ${FILESYSTEM_LAYOUTS})
7777

78+
set(SENTRY_BACKEND "inproc" CACHE STRING "What sentry backend to use, when the sentry plugin is built. Allowed values are inproc, crashpad and breakpad. Crashpad requires the built crashpad_handler executable that's to be present next to flutter-pi.")
79+
7880
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
7981

8082
include(ExternalProject)
@@ -351,7 +353,6 @@ endif()
351353

352354
# Sentry Plugin
353355
if (BUILD_SENTRY_PLUGIN)
354-
set(SENTRY_BACKEND "inproc")
355356
add_subdirectory(third_party/sentry-native)
356357

357358
target_sources(flutterpi_module PRIVATE src/plugins/sentry/sentry.c)

0 commit comments

Comments
 (0)