Remove all use of MacExtras

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-05-09 23:23:19 +08:00
parent 7a49312ddd
commit afbd2ebc02
2 changed files with 2 additions and 7 deletions

View File

@ -22,7 +22,6 @@
#include <QCoreApplication>
#include <QDir>
#include <QLoggingCategory>
#include <QtMacExtras/QtMacExtras>
#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>

View File

@ -699,14 +699,10 @@ if( UNIX AND NOT APPLE )
endif()
if (APPLE)
find_package(Qt${QT_MAJOR_VERSION} COMPONENTS MacExtras)
if (BUILD_FILE_PROVIDER_MODULE)
target_link_libraries(nextcloudCore PUBLIC Qt::MacExtras "-framework UserNotifications -framework FileProvider")
target_link_libraries(nextcloudCore PUBLIC "-framework UserNotifications -framework FileProvider")
elseif(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER_EQUAL 10.14)
target_link_libraries(nextcloudCore PUBLIC Qt::MacExtras "-framework UserNotifications")
else()
target_link_libraries(nextcloudCore PUBLIC Qt::MacExtras)
target_link_libraries(nextcloudCore PUBLIC "-framework UserNotifications")
endif()
endif()