Unverified Commit 7a22a7fb authored by Andreas Sturmlechner's avatar Andreas Sturmlechner
Browse files

Make Qt5WebEngine optional



Qt5WebEngine is a very big package and not easily available on every
architecture. It should be optional at least when easily possible.
Signed-off-by: Andreas Sturmlechner's avatarAndreas Sturmlechner <asturm@gentoo.org>
parent 297cd85a
......@@ -16,10 +16,17 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${ECM_MODULE_PATH})
include(FeatureSummary)
find_package(Intltool REQUIRED)
find_package(KAccounts REQUIRED)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Qml WebEngine)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Qml)
find_package(Qt5WebEngine ${QT_REQUIRED_VERSION} CONFIG)
set_package_properties(Qt5WebEngine
PROPERTIES TYPE OPTIONAL
PURPOSE "Required for Nextcloud Accounts plugin"
)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED KIO I18n Declarative Package)
include(KDEInstallDirs)
......
add_subdirectory(owncloud-ui)
add_subdirectory(nextcloud-ui)
\ No newline at end of file
if(Qt5WebEngine_FOUND)
add_subdirectory(nextcloud-ui)
endif()
file(GLOB provider_in_files *.provider.in)
foreach(provider_in_file ${provider_in_files})
kaccounts_add_provider(${provider_in_file})
endforeach()
kaccounts_add_provider(google.provider.in)
kaccounts_add_provider(owncloud.provider.in)
if(Qt5WebEngine_FOUND)
kaccounts_add_provider(nextcloud.provider.in)
endif()
file(GLOB service_files_in *.service.in)
foreach(service_file_in ${service_files_in})
kaccounts_add_service(${service_file_in})
endforeach()
kaccounts_add_service(owncloud-storage.service.in)
if(Qt5WebEngine_FOUND)
kaccounts_add_service(nextcloud-contacts.service.in)
kaccounts_add_service(nextcloud-storage.service.in)
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment