2021-11-16 00:53:52 +08:00
|
|
|
message(WARNING "qtkeychain is a third-party extension to Qt and is not affiliated with The Qt Company")
|
|
|
|
|
2019-08-20 23:43:20 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO frankosterfeld/qtkeychain
|
2022-04-14 02:13:15 +08:00
|
|
|
# 0.13.2 plus two commits, for a CMake export target fix
|
|
|
|
REF e5eeb1763e295f6b05a3f008ee7ae192fd74ed0c
|
|
|
|
SHA512 c6f216c8acdd89607d16582305bff962a0049512565f8ead7bebf06bce1540cdf41cc8b6dc31b45396befd90a3bd65a2f8a969242f302cbb61438ff7a48aab1c
|
2019-08-20 23:43:20 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-12-14 04:22:14 +08:00
|
|
|
# Opportunity to build without dependency on qt5-tools/qt5-declarative
|
|
|
|
set(BUILD_TRANSLATIONS OFF)
|
|
|
|
if("translations" IN_LIST FEATURES)
|
|
|
|
set(BUILD_TRANSLATIONS ON)
|
|
|
|
endif()
|
|
|
|
|
2021-11-16 00:53:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-08-20 23:43:20 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-11-16 00:53:52 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_WITH_QT6=OFF
|
2021-11-20 14:19:18 +08:00
|
|
|
-DBUILD_TEST_APPLICATION=OFF
|
2021-12-14 04:22:14 +08:00
|
|
|
-DBUILD_TRANSLATIONS=${BUILD_TRANSLATIONS}
|
2019-08-20 23:43:20 +08:00
|
|
|
)
|
2021-11-16 00:53:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-08-20 23:43:20 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2021-11-16 00:53:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Qt5Keychain PACKAGE_NAME Qt5Keychain)
|
2019-08-20 23:43:20 +08:00
|
|
|
|
|
|
|
# Remove unneeded dirs
|
2021-11-16 00:53:52 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
2019-08-20 23:43:20 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-16 00:53:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|