2020-08-08 06:38:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/kcrash
|
2021-07-28 08:02:50 +08:00
|
|
|
REF v5.84.0
|
|
|
|
SHA512 db37a481e0d34e0024cabd77c22680171fa383ea300c56c73f807380fd818263d27f36fb012fc6604b462dbf9374db39bab94c4dc2c3bff488ac9812d01eb2dd
|
2020-08-08 06:38:18 +08:00
|
|
|
HEAD_REF master
|
2021-09-04 07:41:20 +08:00
|
|
|
PATCHES
|
|
|
|
support_static_builds.patch # https://invent.kde.org/frameworks/kcrash/-/merge_requests/23
|
2020-08-08 06:38:18 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 23:20:35 +08:00
|
|
|
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
|
|
|
file(WRITE ${SOURCE_PATH}/.clang-format "DisableFormat: true\nSortIncludes: false\n")
|
|
|
|
|
2021-09-04 07:41:20 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-08-08 06:38:18 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
)
|
|
|
|
|
2021-09-04 07:41:20 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Crash CONFIG_PATH lib/cmake/KF5Crash)
|
2020-08-08 06:38:18 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-04 07:41:20 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/data")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/etc")
|
2020-08-08 06:38:18 +08:00
|
|
|
|
2021-09-04 07:41:20 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSES/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|