vcpkg/ports/kf5newstuff/fix_static_builds.patch
Dawid Wróbel 02fc26bbe9
[kf5newstuff] new port (#20198)
* Add kf5newstuff port

* [kf5newstuff] match the lower case

* [kf5*] update to 5.75.0

* [kf5newstuff] convert manifest to JSON

* [kf5newstuff] use gettext port

* [kf5newstuff] only remove what's needed

* [kf5newstuff] wrap paths in quotes

* [kf5newstuff] remove unused options

* [kf5newstuff] use current spec

* [kf5newstuff] use KDE_INSTALL_QMLDIR instead of manual renaming

* [kf5newstuff] update to 5.84

* [kf5newstuff] fix versioning

* [kf5newstuff] update versions

* [kf5newstuff] fix static builds

* [kf5newstuff] update versions

* [kf5newstuff] fix tool handling on macOS

* [kf5newstuff] update versions

* [kf5newstuff] fix static builds - continued

* [kf5newstuff] update versions

* [kf5newstuff] reduce patch size 1/3

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5newstuff] reduce patch size 2/3

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5newstuff] reduce patch size 3/3

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5newstuff] update versions

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2021-10-15 19:13:00 -07:00

50 lines
1.7 KiB
Diff

diff --git a/KF5NewStuffConfig.cmake.in b/KF5NewStuffConfig.cmake.in
index e4ef2944..063b83ca 100644
--- a/KF5NewStuffConfig.cmake.in
+++ b/KF5NewStuffConfig.cmake.in
@@ -10,5 +10,25 @@ find_dependency(KF5Service "@KF_DEP_VERSION@")
find_dependency(KF5NewStuffCore "@KF_VERSION@")
find_dependency(KF5NewStuffQuick "@KF_VERSION@")
+if (NOT @BUILD_SHARED_LIBS@)
+ find_dependency(Qt5Qml @REQUIRED_QT_VERSION@)
+ find_dependency(Qt5Quick @REQUIRED_QT_VERSION@)
+ find_dependency(Qt5Gui @REQUIRED_QT_VERSION@)
+
+ find_dependency(KF5KIO "@KF_DEP_VERSION@")
+ find_dependency(KF5Completion "@KF_DEP_VERSION@")
+ find_dependency(KF5I18n "@KF_DEP_VERSION@")
+ find_dependency(KF5ItemViews "@KF_DEP_VERSION@")
+ find_dependency(KF5IconThemes "@KF_DEP_VERSION@")
+ find_dependency(KF5TextWidgets "@KF_DEP_VERSION@")
+ find_dependency(KF5Archive "@KF_DEP_VERSION@")
+ find_dependency(KF5Package "@KF_DEP_VERSION@")
+ find_dependency(KF5Config "@KF_DEP_VERSION@")
+
+ if(@KF5Syndication_FOUND@)
+ find_dependency(KF5Syndication "@KF_VERSION@")
+ endif()
+endif()
+
include("${CMAKE_CURRENT_LIST_DIR}/KF5NewStuffTargets.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@
--
GitLab
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7022663..d2ead74a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
set(REQUIRED_QT_VERSION 5.15.0)
-find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Widgets Xml)
+find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Gui Widgets Xml)
find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE COMPONENTS Qml Quick)
find_package(KF5Archive ${KF_DEP_VERSION} REQUIRED)
--
GitLab