Commit a671d036 authored by Volker Krause's avatar Volker Krause
Browse files

Add extra includes and link targets needed to compile with Qt 6

parent 4c8398ef
Pipeline #246493 passed with stage
in 4 minutes and 52 seconds
......@@ -55,7 +55,7 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kio5_nfs\")
include_directories(${TIRPC_INCLUDE_DIRS})
add_library(kio_nfs MODULE kio_nfs.cpp nfsv2.cpp nfsv3.cpp rpc_nfs3_prot_xdr.c rpc_nfs2_prot_xdr.c)
target_link_libraries(kio_nfs KF5::KIOCore KF5::I18n Qt::Network ${TIRPC_LIBRARIES})
target_link_libraries(kio_nfs KF5::KIOCore KF5::ConfigCore KF5::I18n Qt::Network ${TIRPC_LIBRARIES})
set_target_properties(kio_nfs PROPERTIES OUTPUT_NAME "nfs")
if(AVOID_UNUSED_VARIABLE_WARNING_FLAG)
......
......@@ -35,6 +35,7 @@ endif()
target_link_libraries(kio_sftp
KF5::KIOCore
KF5::WidgetsAddons # KMessageBox
KF5::ConfigCore
KF5::I18n
Qt::Network
ssh)
......
......@@ -88,6 +88,9 @@ target_link_libraries(kio_smb_static
KDSoap::WSDiscoveryClient
Threads::Threads # std::async
)
if (QT_MAJOR_VERSION EQUAL "6")
target_link_libraries(kio_smb_static Qt6::Core5Compat)
endif()
# Final plugin target.
add_library(kio_smb MODULE main.cpp)
......
......@@ -161,3 +161,4 @@ void WSDiscoveryClient::receivedMessage(const KDSoapMessage &replyMessage, const
}
}
#include "moc_wsdiscoveryclient.cpp"
......@@ -9,8 +9,6 @@
#include <KConfig>
#include <KConfigGroup>
#include <QTextCodec>
void SMBWorker::reparseConfiguration()
{
m_context.authenticator()->loadConfiguration();
......
......@@ -21,6 +21,7 @@
#include <QByteArray>
#include <QStringList>
#include <QImage>
#include <QObject>
class KArchiveDirectory;
class QEventLoop;
......
// SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
// SPDX-License-Identifier: LGPL-2.0-or-later
#include <QObject>
// clang-format off
#define EXPORT_THUMBNAILER_WITH_JSON(className, json) \
extern "C" \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment