vcpkg/ports/kf5kio/fix_config_cmake.patch
Dawid Wróbel 6ff166cc3e
[kf5kio] new port (#19779)
* Add kf5kio port [WIP]

* Fixed kf5kio for windows

* [kf5*] update to 5.75.0

* [kf5kio] fix clang errors on macOS

* [kf5kio] add missing dependencies

* [kf5kio] use current spec

* [kf5kio] install tools, don't remove them

* [kf5kio] install data to standard /share location

* [kf5kio] only remove what's needed

* [kf5kio] wrap paths in quotes

* [kf5kio] use semVer

* [kf5kio] update versions

* [kf5kio] update to 5.84.0

* [kf5kio] fix libiconv for static builds

* [kf5kio] libiconv patches only for windows static builds

* [kf5kio] update versions

* [kf5kio] fix copying tools on Windows

* [kf5kio] add PACKAGE_NAME to vcpkg_cmake_config_fixup

* [kf5kio] update versions

* [kf5kio] update versions

* [kf5kio] add comment with a link to a PR

* [kf5kio] update versions

* [kf5kio] fix CMake Config for static builds

* [kf5kio] update versions

* [kf5kio] disable notifications if not explicitly enabled

* [kf5kio] add kf5wallet feature

* [kf5kio] update versions

* [kf5kio] knotifications is non-Windows and non-Android

* [kf5kio] update versions

* [kf5io] re-enable parallel configure

* [kf5io] use generic, non-semver versioning

* [kf5kio] update versions

* [kf5kio] remove the 5.75 version info

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

Co-authored-by: Kuntal Majumder <hellozee@disroot.org>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
2021-10-11 10:17:16 -07:00

47 lines
1.8 KiB
Diff

From 0202616076e6b05b7100ae67d7d012e2c22f79fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dawid=20Wro=CC=81bel?= <me@dawidwrobel.com>
Date: Tue, 31 Aug 2021 03:40:09 +0200
Subject: [PATCH] Add support for static builds
---
KF5KIOConfig.cmake.in | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/KF5KIOConfig.cmake.in b/KF5KIOConfig.cmake.in
index 41699cb03..05922f769 100644
--- a/KF5KIOConfig.cmake.in
+++ b/KF5KIOConfig.cmake.in
@@ -11,13 +11,22 @@ find_dependency(KF5Config "@KF_DEP_VERSION@")
find_dependency(KF5Service "@KF_DEP_VERSION@")
if (NOT @KIOCORE_ONLY@)
-find_dependency(KF5Bookmarks "@KF_DEP_VERSION@")
-find_dependency(KF5Completion "@KF_DEP_VERSION@")
-find_dependency(KF5ItemViews "@KF_DEP_VERSION@")
-find_dependency(KF5JobWidgets "@KF_DEP_VERSION@")
-find_dependency(KF5Solid "@KF_DEP_VERSION@")
-find_dependency(KF5XmlGui "@KF_DEP_VERSION@")
-find_dependency(KF5WindowSystem "@KF_DEP_VERSION@")
+ find_dependency(KF5Bookmarks "@KF_DEP_VERSION@")
+ find_dependency(KF5Completion "@KF_DEP_VERSION@")
+ find_dependency(KF5ItemViews "@KF_DEP_VERSION@")
+ find_dependency(KF5JobWidgets "@KF_DEP_VERSION@")
+ find_dependency(KF5Solid "@KF_DEP_VERSION@")
+ find_dependency(KF5XmlGui "@KF_DEP_VERSION@")
+ find_dependency(KF5WidgetsAddons "@KF_DEP_VERSION@")
+ find_dependency(KF5WindowSystem "@KF_DEP_VERSION@")
+
+ if (NOT @BUILD_SHARED_LIBS@)
+ find_dependency(KF5ConfigWidgets "@KF_DEP_VERSION@")
+ find_dependency(KF5Crash "@KF_DEP_VERSION@")
+ find_dependency(KF5GuiAddons "@KF_DEP_VERSION@")
+ find_dependency(KF5IconThemes "@KF_DEP_VERSION@")
+ find_dependency(KF5DBusAddons "@KF_DEP_VERSION@")
+ endif()
endif()
find_dependency(Qt5Network "@REQUIRED_QT_VERSION@")
--
GitLab