Skip to content

Commit

Permalink
feat: Windows binary versioning for handler and WER module (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus authored Nov 12, 2024
1 parent 04101eb commit 8961424
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions handler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ if(NOT IOS)
if(MSVC)
target_link_options(crashpad_handler PRIVATE "/SUBSYSTEM:WINDOWS")
endif()

if (COMMAND sentry_add_version_resource)
sentry_add_version_resource(crashpad_handler "Crashpad Handler")
endif()
endif()

set_property(TARGET crashpad_handler PROPERTY EXPORT_NAME crashpad_handler)
Expand Down Expand Up @@ -144,6 +148,10 @@ if (WIN32)
set_property(TARGET crashpad_wer PROPERTY PREFIX "") # ensure MINGW doesn't prefix "lib" to dll name
add_library(crashpad::wer ALIAS crashpad_wer)

if (COMMAND sentry_add_version_resource)
sentry_add_version_resource(crashpad_wer "Crashpad WER Module")
endif()

install(TARGETS crashpad_wer EXPORT crashpad_export
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
Expand Down

0 comments on commit 8961424

Please sign in to comment.