@@ -182,40 +182,7 @@ set(client_SRCS
182182 emojimodel.cpp
183183 syncconflictsmodel.h
184184 syncconflictsmodel.cpp
185- fileactivitylistmodel.h
186- fileactivitylistmodel.cpp
187- filedetails/datefieldbackend.h
188- filedetails/datefieldbackend.cpp
189- filedetails/filedetails.h
190- filedetails/filedetails.cpp
191- filedetails/sharemodel.h
192- filedetails/sharemodel.cpp
193- filedetails/shareemodel.h
194- filedetails/shareemodel.cpp
195- filedetails/sortedsharemodel.h
196- filedetails/sortedsharemodel.cpp
197- tray/svgimageprovider.h
198- tray/svgimageprovider.cpp
199- tray/syncstatussummary.h
200- tray/syncstatussummary.cpp
201- tray/activitydata.h
202- tray/activitydata.cpp
203- tray/activitylistmodel.h
204- tray/activitylistmodel.cpp
205- tray/unifiedsearchresult.h
206- tray/asyncimageresponse.cpp
207- tray/unifiedsearchresult.cpp
208- tray/unifiedsearchresultslistmodel.h
209- tray/trayimageprovider.cpp
210- tray/unifiedsearchresultslistmodel.cpp
211- tray/usermodel.h
212- tray/usermodel.cpp
213- tray/notificationhandler.h
214- tray/notificationhandler.cpp
215- tray/sortedactivitylistmodel.h
216- tray/sortedactivitylistmodel.cpp
217185 creds/credentialsfactory.h
218- tray/talkreply.cpp
219186 creds/credentialsfactory.cpp
220187 creds/httpcredentialsgui.h
221188 creds/httpcredentialsgui.cpp
@@ -522,27 +489,42 @@ endif()
522489
523490add_library (nextcloudCore STATIC ${final_src} )
524491
525- target_link_libraries (nextcloudCore
526- PUBLIC
527- Nextcloud::sync
528- Qt::Widgets
529- Qt::Svg
530- Qt::Network
531- Qt::Xml
532- Qt::Qml
533- Qt::Quick
534- Qt::QuickControls2
535- Qt::QuickWidgets
536- KF6::Archive
537- KDAB::kdsingleapplication
538- )
492+ qt_add_qml_module (nextcloudCore
493+ URI com.nextcloud.desktopclient
494+ IMPORTS
495+ com.nextcloud.desktopclient.tray
496+ com.nextcloud.desktopclient.filedetails
497+ QML_FILES
498+ UserStatusMessageView.qml
499+ UserStatusSelectorPage.qml
500+ EmojiPicker.qml
501+ UserStatusSelectorButton.qml
502+ UserStatusSetStatusView.qml
503+ PredefinedStatusButton.qml
504+ ErrorBox.qml
505+ )
539506
540- if (KF6GuiAddons_FOUND)
541- target_link_libraries (nextcloudCore
542- PUBLIC
543- KF6::GuiAddons
544- )
545- add_definitions (-DHAVE_KGUIADDONS )
507+ target_link_libraries (nextcloudCore PUBLIC
508+ Nextcloud::sync
509+ Qt::Widgets
510+ Qt::Svg
511+ Qt::Network
512+ Qt::Xml
513+ Qt::Qml
514+ Qt::Quick
515+ Qt::QuickControls2
516+ Qt::QuickWidgets
517+ KF6::Archive
518+ KDAB::kdsingleapplication
519+ )
520+
521+ target_include_directories (nextcloudCore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
522+
523+ if (TARGET KF6::GuiAddons)
524+ target_link_libraries (nextcloudCore PUBLIC
525+ KF6::GuiAddons
526+ )
527+ add_definitions (-DHAVE_KGUIADDONS )
546528endif ()
547529
548530add_subdirectory (socketapi )
@@ -575,6 +557,9 @@ target_include_directories(nextcloudCore
575557 ${CMAKE_CURRENT_SOURCE_DIR}
576558)
577559
560+ add_subdirectory (tray )
561+ add_subdirectory (filedetails )
562+
578563if (NOT BUILD_OWNCLOUD_OSX_BUNDLE)
579564 if (NOT WIN32 )
580565 file (GLOB _icons "${theme_dir} /colored/*-${APPLICATION_ICON_NAME} -icon.png" )
@@ -638,7 +623,15 @@ set_target_properties(nextcloud PROPERTIES
638623 RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY}
639624)
640625
641- target_link_libraries (nextcloud PRIVATE nextcloudCore )
626+ set_target_properties (nextcloud PROPERTIES POSITION_INDEPENDENT_CODE ON )
627+ target_link_libraries (nextcloud PRIVATE
628+ nextcloudTray
629+ nextcloudTrayplugin
630+ nextcloudFileDetails
631+ nextcloudFileDetailsplugin
632+ nextcloudCore
633+ nextcloudCoreplugin
634+ )
642635
643636if (TARGET PkgConfig::CLOUDPROVIDERS)
644637 message ("Building with libcloudproviderssupport" )
0 commit comments