diff options
Diffstat (limited to 'vcpkg/ports/qtkeychain')
| -rw-r--r-- | vcpkg/ports/qtkeychain/portfile.cmake | 37 | ||||
| -rw-r--r-- | vcpkg/ports/qtkeychain/vcpkg.json | 33 |
2 files changed, 70 insertions, 0 deletions
diff --git a/vcpkg/ports/qtkeychain/portfile.cmake b/vcpkg/ports/qtkeychain/portfile.cmake new file mode 100644 index 0000000..3cde725 --- /dev/null +++ b/vcpkg/ports/qtkeychain/portfile.cmake @@ -0,0 +1,37 @@ +message(WARNING "qtkeychain is a third-party extension to Qt and is not affiliated with The Qt Company")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO frankosterfeld/qtkeychain
+ REF "${VERSION}"
+ SHA512 d1d87553db94bf54da1373016a847476e6cd608db6d427ed72532658e2272501daf45d7c9976efdde2f26ab3810ba9dbfec2518d46dee5a76ecaa369bfee2e4a
+ HEAD_REF master
+)
+
+# Opportunity to build without dependency on qt5-tools/qt5-declarative
+set(BUILD_TRANSLATIONS OFF)
+if("translations" IN_LIST FEATURES)
+ set(BUILD_TRANSLATIONS ON)
+endif()
+
+vcpkg_cmake_configure(
+ DISABLE_PARALLEL_CONFIGURE
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DBUILD_WITH_QT6=OFF
+ -DBUILD_TEST_APPLICATION=OFF
+ -DBUILD_TRANSLATIONS=${BUILD_TRANSLATIONS}
+)
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Qt5Keychain PACKAGE_NAME Qt5Keychain)
+
+# Remove unneeded dirs
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/share"
+)
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/qtkeychain/vcpkg.json b/vcpkg/ports/qtkeychain/vcpkg.json new file mode 100644 index 0000000..86f9006 --- /dev/null +++ b/vcpkg/ports/qtkeychain/vcpkg.json @@ -0,0 +1,33 @@ +{ + "name": "qtkeychain", + "version": "0.14.3", + "description": "(Unaffiliated with Qt) Platform-independent Qt5 API for storing passwords securely", + "homepage": "https://github.com/frankosterfeld/qtkeychain", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "libsecret", + "platform": "!(windows | uwp | osx)" + }, + "qt5-base", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "default-features": [ + "translations" + ], + "features": { + "translations": { + "description": "Build qtkeychain translations", + "dependencies": [ + "qt5-tools" + ] + } + } +} |