Skip to content

Commit

Permalink
[qtkeychain] Support to build with less dependencies (#21965)
Browse files Browse the repository at this point in the history
* [qtkeychain] Support to build with less dependencies

* Update version database
  • Loading branch information
kafeg committed Dec 13, 2021
1 parent 20baa6a commit 3989093
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ports/qtkeychain/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ vcpkg_from_github(
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()

Expand Down
15 changes: 13 additions & 2 deletions ports/qtkeychain/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "qtkeychain",
"version": "0.13.2",
"port-version": 1,
"description": "(Unaffiliated with Qt) Platform-independent Qt5 API for storing passwords securely",
"homepage": "https://github.com/frankosterfeld/qtkeychain",
"license": "BSD-3-Clause",
Expand All @@ -9,7 +10,6 @@
"name": "libsecret",
"platform": "!(windows | uwp | osx)"
},
"qt5-tools",
{
"name": "vcpkg-cmake",
"host": true
Expand All @@ -18,5 +18,16 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"default-features": [
"translations"
],
"features": {
"translations": {
"description": "Build qtkeychain translations",
"dependencies": [
"qt5-tools"
]
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5738,7 +5738,7 @@
},
"qtkeychain": {
"baseline": "0.13.2",
"port-version": 0
"port-version": 1
},
"qtkeychain-qt6": {
"baseline": "0.13.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/q-/qtkeychain.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ef01f1d6401814e50c0438d3a8a7770568ac93ca",
"version": "0.13.2",
"port-version": 1
},
{
"git-tree": "2dda8930cc8e73b1741effda2750a980c0209e24",
"version": "0.13.2",
Expand Down

0 comments on commit 3989093

Please sign in to comment.