From: Claudio Cambra Date: Wed, 30 Nov 2022 15:24:43 +0000 (+0100) Subject: Fix build with BUILD_TESTING activated X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~96^2^2~55^2~325 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2d27d6d0726041da256582aba88209f66ee3a643;p=nextcloud-desktop.git Fix build with BUILD_TESTING activated Signed-off-by: Claudio Cambra --- diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 7374b41ec..0311b3318 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -656,7 +656,7 @@ endif() if (APPLE) find_package(Qt5 COMPONENTS MacExtras) - target_link_libraries(nextcloudCore PUBLIC Qt5::MacExtras "-framework UserNotifications FileProvider") + target_link_libraries(nextcloudCore PUBLIC Qt5::MacExtras "-framework UserNotifications -framework FileProvider") endif() if(WITH_CRASHREPORTER) diff --git a/src/gui/macOS/fileprovider.h b/src/gui/macOS/fileprovider.h index fc169f299..8c6ddc654 100644 --- a/src/gui/macOS/fileprovider.h +++ b/src/gui/macOS/fileprovider.h @@ -18,9 +18,10 @@ #include #include -#include "gui/accountstate.h" - namespace OCC { + +class AccountState; + namespace Mac { // NOTE: For the file provider extension to work, the app bundle will diff --git a/src/gui/macOS/fileprovider_mac.mm b/src/gui/macOS/fileprovider_mac.mm index 540a662d7..a29efa354 100644 --- a/src/gui/macOS/fileprovider_mac.mm +++ b/src/gui/macOS/fileprovider_mac.mm @@ -16,12 +16,16 @@ #import #import -#include "gui/application.h" +#include + +#include "gui/accountmanager.h" +#include "gui/accountstate.h" +#include "libsync/account.h" #include "fileprovider.h" namespace OCC { -Q_LOGGING_CATEGORY(lcMacFileProvider, "nextcloud.gui.macfileprovider") +Q_LOGGING_CATEGORY(lcMacFileProvider, "nextcloud.gui.macfileprovider", QtInfoMsg) namespace Mac {