From: hefee Date: Wed, 16 Dec 2020 00:50:15 +0000 (+0000) Subject: Make QtWebEngine optional X-Git-Tag: archive/raspbian/4%20.08.3-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=826bd977de174c7087e46c68309371ecc153b018;p=kdepim-runtime.git Make QtWebEngine optional Origin: Debian Last-Update: 2019-03-21 Most resources do not depend on QtWebEngine, so let's enable kdepim-runtime for all other archs, too. Last-Update: 2019-03-21 Gbp-Pq: Name make_qtwebengine_optional.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 81b5f8c4..ac7f5cd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,8 @@ set_package_properties(Sasl2 PROPERTIES TYPE REQUIRED) find_package(Qca-qt5 2.3.0 CONFIG REQUIRED) option(KDEPIM_RUN_AKONADI_TEST "Enable autotest based on Akonadi." TRUE) # QT5 package -find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED TextToSpeech Network Widgets Test XmlPatterns DBus WebEngineWidgets NetworkAuth) +find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED TextToSpeech Network Widgets Test XmlPatterns DBus NetworkAuth) +find_package(Qt5 OPTIONAL_COMPONENTS WebEngineWidgets) # KF5 package diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt index 62fbdef3..381730d9 100644 --- a/resources/CMakeLists.txt +++ b/resources/CMakeLists.txt @@ -64,5 +64,8 @@ add_subdirectory( vcarddir ) add_subdirectory( icaldir ) add_subdirectory( vcard ) add_subdirectory( folderarchivesettings ) -add_subdirectory( tomboynotes ) -add_subdirectory( ews ) + +if(Qt5WebEngineWidgets_FOUND) + add_subdirectory( ews ) + add_subdirectory( tomboynotes ) +endif()