mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 07:36:44 +00:00
GODT-2190: Unify crashpad_handler for darwin.
This commit is contained in:
committed by
Leander Beernaert
parent
ebeec056cd
commit
a90693e488
@ -46,7 +46,17 @@ install(DIRECTORY "${QT_DIR}/lib/QtQuickDialogs2Utils.framework"
|
|||||||
# PLUGINS
|
# PLUGINS
|
||||||
install(FILES "${QT_DIR}/plugins/imageformats/libqsvg.dylib"
|
install(FILES "${QT_DIR}/plugins/imageformats/libqsvg.dylib"
|
||||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/bridge-gui.app/Contents/PlugIns/imageformats")
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/bridge-gui.app/Contents/PlugIns/imageformats")
|
||||||
|
|
||||||
# crash handler utils
|
# crash handler utils
|
||||||
install(PROGRAMS "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/tools/sentry-native/crashpad_handler"
|
## Build
|
||||||
|
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/gen_crashpad/crashpad_handler"
|
||||||
|
COMMAND lipo
|
||||||
|
ARGS -create -output "${CMAKE_CURRENT_BINARY_DIR}/gen_crashpad/crashpad_handler" "${VCPKG_INSTALLED_DIR}/arm64-osx-min-11-0/tools/sentry-native/crashpad_handler" "${VCPKG_INSTALLED_DIR}/x64-osx-min-10-15/tools/sentry-native/crashpad_handler"
|
||||||
|
COMMENT Unifying crashpad_handler
|
||||||
|
)
|
||||||
|
add_custom_target(unify_crashpadHandler ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/gen_crashpad/crashpad_handler")
|
||||||
|
add_dependencies(bridge-gui unify_crashpadHandler)
|
||||||
|
## Install
|
||||||
|
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/gen_crashpad/crashpad_handler"
|
||||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/bridge-gui.app/Contents/MacOS/")
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/bridge-gui.app/Contents/MacOS/")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user