[crashpad] fix linking on macOS (#26682)

* [crashpad] link libmig_output.a on macOS

* [crashpad] update to latest
This commit is contained in:
João Barbosa 2022-09-06 22:54:31 +01:00 committed by GitHub
parent b0eb3fa9ee
commit d8f53e80e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 6 deletions

View File

@ -15,7 +15,7 @@ if(WIN32)
target_compile_definitions(crashpad INTERFACE NOMINMAX)
elseif(APPLE)
list(APPEND CRASHPAD_LIBRARIES ApplicationServices
CoreFoundation Foundation IOKit Security bsm)
CoreFoundation Foundation IOKit Security bsm mig_output)
endif()
foreach(LIB_NAME ${CRASHPAD_LIBRARIES})

View File

@ -3,7 +3,7 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
URL https://chromium.googlesource.com/crashpad/crashpad
REF 68aba08c48bb428b7b159b3371163f86e8d5a126
REF 261679b3d2f3336d8531ed38e110254c3e2d1c10
)
vcpkg_find_acquire_program(PYTHON3)
@ -113,6 +113,10 @@ install_headers("${SOURCE_PATH}/third_party/mini_chromium/mini_chromium/build")
file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/gen/build/chromeos_buildflags.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}/build")
file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/gen/build/chromeos_buildflags.h.flags" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}/build")
if(VCPKG_TARGET_IS_OSX)
file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/obj/util/libmig_output.a" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/obj/util/libmig_output.a" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
endif()
# remove empty directories
file(REMOVE_RECURSE

View File

@ -1,7 +1,6 @@
{
"name": "crashpad",
"version-date": "2022-04-16",
"port-version": 3,
"version-date": "2022-09-05",
"description": [
"Crashpad is a crash-reporting system.",
"Crashpad is a library for capturing, storing and transmitting postmortem crash reports from a client to an upstream collection server. Crashpad aims to make it possible for clients to capture process state at the time of crash with the best possible fidelity and coverage, with the minimum of fuss."

View File

@ -1705,8 +1705,8 @@
"port-version": 1
},
"crashpad": {
"baseline": "2022-04-16",
"port-version": 3
"baseline": "2022-09-05",
"port-version": 0
},
"crashrpt": {
"baseline": "1.4.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6d39be1cd402a6147c057802a84ffdc1715d6384",
"version-date": "2022-09-05",
"port-version": 0
},
{
"git-tree": "e1338388a039df55d6812726dd2e638684a19509",
"version-date": "2022-04-16",