Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Weilbach <felix.weilbach@nextcloud.com>2021-06-22 13:01:18 +0300
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>2021-06-24 18:43:51 +0300
commit8376b99ec55a1b92ccfd40d17384143dfc542328 (patch)
tree14f3aa1634f706396595f33d2b270ed8e5d40bbb /src/gui/CMakeLists.txt
parent216a57c74e13b2866476308e46e2995baedc6b23 (diff)
Allow to compile without QWebEngine
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'src/gui/CMakeLists.txt')
-rw-r--r--src/gui/CMakeLists.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index fb87145f8..581863ba7 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -129,12 +129,17 @@ set(client_SRCS
wizard/owncloudwizardcommon.cpp
wizard/owncloudwizard.cpp
wizard/owncloudwizardresultpage.cpp
- wizard/webviewpage.cpp
- wizard/webview.cpp
wizard/slideshow.cpp
wizard/welcomepage.cpp
wizard/linklabel.cpp
-)
+ )
+
+if (WITH_WEBENGINE)
+ list(APPEND client_SRCS
+ wizard/webviewpage.cpp
+ wizard/webview.cpp
+ )
+endif()
IF(BUILD_UPDATER)
set(updater_SRCS
@@ -329,9 +334,12 @@ target_link_libraries(nextcloudCore
Qt5::Qml
Qt5::Quick
Qt5::QuickControls2
- Qt5::WebEngineWidgets
${synclib_NAME}
-)
+ )
+
+if(WITH_WEBENGINE)
+ target_link_libraries(nextcloudCore PUBLIC Qt5::WebEngineWidgets)
+endif()
set_target_properties(nextcloudCore
PROPERTIES