-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kf5configwidgets] new port (#16562)
* Add kf5configwidgets port * Fix KF5ConfigWidgets for windows * [kf5configwidgets] update to 5.75.0 * [kf5configwidgets] convert CONTROL to manifest * [kf5configwidgets] update versions * [kf5configwidgets] update to 5.81 * [kf5configwidgets] update versions * [kf5configwidgets] update to 5.84 * [kf5configwidgets] update versions * [kf5configwidgets] add 'designerplugin' feature * [kf5configwidgets] update versions * [kf5configwidgets] wrap paths in quotes * [kf5configwidgets] update versions * [kf5configwidgets] actually update SHA512 * [kf5configwidgets] update versions * [kf5configwidgets] fix static builds * [kf5configwidgets] set QT plugins path correctly * [kf5configwidgets] update versions * [kf5configwidgets] remove obsolete versions Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * [kf5configwidgets] rename patch file * [kf5configaddons] update versions Co-authored-by: Kuntal Majumder <hellozee@disroot.org> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
- Loading branch information
1 parent
9fb1585
commit a9d758f
Showing
5 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
ports/kf5configwidgets/add_support_for_static_builds.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 743ec1f30b449b048c942f194ad665bf2170bbf1 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Dawid=20Wro=CC=81bel?= <me@dawidwrobel.com> | ||
Date: Thu, 26 Aug 2021 16:48:23 +0200 | ||
Subject: [PATCH] Add support for static builds | ||
|
||
--- | ||
KF5ConfigWidgetsConfig.cmake.in | 14 ++++++++++++++ | ||
1 file changed, 14 insertions(+) | ||
|
||
diff --git a/KF5ConfigWidgetsConfig.cmake.in b/KF5ConfigWidgetsConfig.cmake.in | ||
index 57c83f0..78fc736 100644 | ||
--- a/KF5ConfigWidgetsConfig.cmake.in | ||
+++ b/KF5ConfigWidgetsConfig.cmake.in | ||
@@ -8,5 +8,19 @@ find_dependency(KF5Codecs "@KF_DEP_VERSION@") | ||
find_dependency(KF5Config "@KF_DEP_VERSION@") | ||
find_dependency(KF5WidgetsAddons "@KF_DEP_VERSION@") | ||
|
||
+ | ||
+if (NOT @BUILD_SHARED_LIBS@) | ||
+ find_dependency(Qt5Widgets "@REQUIRED_QT_VERSION@") | ||
+ | ||
+ if (NOT ANDROID) | ||
+ find_dependency(Qt5DBus "@REQUIRED_QT_VERSION@") | ||
+ endif() | ||
+ | ||
+ find_dependency(KF5CoreAddons "@KF_DEP_VERSION@") | ||
+ find_dependency(KF5GuiAddons "@KF_DEP_VERSION@") | ||
+ find_dependency(KF5I18n "@KF_DEP_VERSION@") | ||
+endif() | ||
+ | ||
+ | ||
include("${CMAKE_CURRENT_LIST_DIR}/KF5ConfigWidgetsTargets.cmake") | ||
@PACKAGE_INCLUDE_QCHTARGETS@ | ||
-- | ||
GitLab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO KDE/kconfigwidgets | ||
REF v5.84.0 | ||
SHA512 da03f4cfc2a64b3ccccfe2b6b7f392f84aba2b975edbf6a5b08a14604ccb565a4491c7eb707af7191345b55ca81e864b7ee13fe648589a56f3226c26160ed024 | ||
HEAD_REF master | ||
PATCHES | ||
add_support_for_static_builds.patch # https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/71 | ||
) | ||
|
||
vcpkg_check_features( | ||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
FEATURES | ||
designerplugin BUILD_DESIGNERPLUGIN | ||
) | ||
|
||
vcpkg_cmake_configure( | ||
DISABLE_PARALLEL_CONFIGURE | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS | ||
-DBUILD_TESTING=OFF | ||
-DKDE_INSTALL_PLUGINDIR=plugins | ||
-DKDE_INSTALL_QTPLUGINDIR=plugins | ||
${FEATURE_OPTIONS} | ||
) | ||
|
||
vcpkg_cmake_install() | ||
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5ConfigWidgets CONFIG_PATH lib/cmake/KF5ConfigWidgets) | ||
vcpkg_copy_pdbs() | ||
|
||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") | ||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") | ||
endif() | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") | ||
|
||
file(INSTALL "${SOURCE_PATH}/LICENSES/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "kf5configwidgets", | ||
"version-semver": "5.84.0", | ||
"description": "Widgets for configuration dialogs", | ||
"homepage": "https://api.kde.org/frameworks/kconfigwidgets/html/index.html", | ||
"dependencies": [ | ||
"ecm", | ||
{ | ||
"name": "gettext", | ||
"host": true, | ||
"features": [ | ||
"tools" | ||
] | ||
}, | ||
"kf5auth", | ||
"kf5codecs", | ||
"kf5config", | ||
"kf5guiaddons", | ||
"kf5i18n", | ||
"kf5widgetsaddons", | ||
"qt5-base", | ||
"qt5-tools", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
], | ||
"features": { | ||
"designerplugin": { | ||
"description": "Enables a Qt Designer plugin" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "99dcbe4e7cb84be45f9869e441c274e44309291d", | ||
"version-semver": "5.84.0", | ||
"port-version": 0 | ||
} | ||
] | ||
} |