From 2d27d6d0726041da256582aba88209f66ee3a643 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 30 Nov 2022 16:24:43 +0100 Subject: [PATCH] Fix build with BUILD_TESTING activated Signed-off-by: Claudio Cambra --- src/gui/CMakeLists.txt | 2 +- src/gui/macOS/fileprovider.h | 5 +++-- src/gui/macOS/fileprovider_mac.mm | 8 ++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 7374b41ec5..0311b3318d 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 fc169f2991..8c6ddc6547 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 540a662d78..a29efa354e 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 {