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
path: root/src/gui
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@gmail.com>2021-12-29 19:44:40 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2022-01-07 20:48:31 +0300
commite25140d72e4c2122773efc2548978b6fdaf7cea7 (patch)
tree0899a38585aa8eaaea345ade02806bbee7ac3564 /src/gui
parent9688ba24cae421e6121dde31818fdb93b1a1792d (diff)
Add option of enabling QtQuick compiler
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/CMakeLists.txt34
1 files changed, 15 insertions, 19 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index 85df84dbc..7593a2384 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -1,5 +1,14 @@
project(gui)
find_package(Qt5 REQUIRED COMPONENTS Widgets Svg Qml Quick QuickControls2 Xml Network)
+
+if(QUICK_COMPILER)
+ find_package(Qt5QuickCompiler)
+ set_package_properties(Qt5QuickCompiler PROPERTIES
+ DESCRIPTION "Compile QML at build time"
+ TYPE OPTIONAL
+ )
+endif()
+
if (NOT TARGET Qt5::GuiPrivate)
message(FATAL_ERROR "Could not find GuiPrivate component of Qt5. It might be shipped as a separate package, please check that.")
endif()
@@ -13,9 +22,6 @@ IF(BUILD_UPDATER)
endif()
configure_file(${CMAKE_SOURCE_DIR}/theme.qrc.in ${CMAKE_SOURCE_DIR}/theme.qrc)
-
-set(MIRALL_RC_SRC ../../resources.qrc)
-list(APPEND MIRALL_RC_SRC ${CMAKE_SOURCE_DIR}/theme.qrc)
set(theme_dir ${CMAKE_SOURCE_DIR}/theme)
set(client_UI_SRCS
@@ -39,21 +45,6 @@ set(client_UI_SRCS
addcertificatedialog.ui
proxyauthdialog.ui
mnemonicdialog.ui
- UserStatusSelector.qml
- UserStatusSelectorDialog.qml
- tray/ActivityActionButton.qml
- tray/ActivityItem.qml
- tray/ActivityList.qml
- tray/Window.qml
- tray/UserLine.qml
- tray/UnifiedSearchInputContainer.qml
- tray/UnifiedSearchResultFetchMoreTrigger.qml
- tray/UnifiedSearchResultItem.qml
- tray/UnifiedSearchResultItemSkeleton.qml
- tray/UnifiedSearchResultItemSkeletonContainer.qml
- tray/UnifiedSearchResultListItem.qml
- tray/UnifiedSearchResultNothingFound.qml
- tray/UnifiedSearchResultSectionItem.qml
wizard/flow2authwidget.ui
wizard/owncloudadvancedsetuppage.ui
wizard/owncloudconnectionmethoddialog.ui
@@ -64,6 +55,12 @@ set(client_UI_SRCS
wizard/welcomepage.ui
)
+if(QUICK_COMPILER)
+ qtquick_compiler_add_resources(client_UI_SRCS ../../resources.qrc ${CMAKE_SOURCE_DIR}/theme.qrc)
+else()
+ qt_add_resources(client_UI_SRCS ../../resources.qrc ${CMAKE_SOURCE_DIR}/theme.qrc)
+endif()
+
set(client_SRCS
accountmanager.cpp
accountsettings.cpp
@@ -232,7 +229,6 @@ IF( WIN32 )
ENDIF()
set( final_src
- ${MIRALL_RC_SRC}
${client_SRCS}
${client_UI_SRCS}
${guiMoc}