Make kpmcore link libraries private.
This commit is contained in:
parent
1500eeb625
commit
738842799a
|
@ -40,13 +40,14 @@ ki18n_wrap_ui(kpmcore_SRCS ${gui_UIFILES})
|
|||
|
||||
add_library(kpmcore SHARED ${kpmcore_SRCS})
|
||||
target_link_libraries( kpmcore PUBLIC
|
||||
${UUID_LIBRARIES}
|
||||
${BLKID_LIBRARIES}
|
||||
PRIVATE
|
||||
Qt5::Core
|
||||
Qt5::DBus
|
||||
Qt5::Gui
|
||||
KF5::I18n
|
||||
KF5::CoreAddons
|
||||
KF5::WidgetsAddons
|
||||
PRIVATE
|
||||
${BLKID_LIBRARIES}
|
||||
KF5::Auth
|
||||
)
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <KLocalizedString>
|
||||
|
||||
#include <QColor>
|
||||
#include <QFileInfo>
|
||||
#include <QStandardPaths>
|
||||
#include <QStorageInfo>
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
#include "util/libpartitionmanagerexport.h"
|
||||
|
||||
#include <QColor>
|
||||
#include <QList>
|
||||
#include <QStringList>
|
||||
#include <QString>
|
||||
|
@ -31,6 +30,7 @@
|
|||
|
||||
#include <array>
|
||||
|
||||
class QColor;
|
||||
class QValidator;
|
||||
class Device;
|
||||
class Report;
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include <QStorageInfo>
|
||||
#include <QString>
|
||||
#include <QUuid>
|
||||
#include <QWidget>
|
||||
|
||||
#include <KLocalizedString>
|
||||
#include <KPasswordDialog>
|
||||
|
|
|
@ -26,11 +26,11 @@
|
|||
#include "fs/filesystem.h"
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QWidget>
|
||||
|
||||
class Report;
|
||||
|
||||
class QString;
|
||||
class QWidget;
|
||||
|
||||
namespace FS
|
||||
{
|
||||
|
|
|
@ -22,6 +22,6 @@ set (pmdummybackendplugin_SRCS
|
|||
|
||||
add_library(pmdummybackendplugin SHARED ${pmdummybackendplugin_SRCS})
|
||||
|
||||
target_link_libraries(pmdummybackendplugin kpmcore)
|
||||
target_link_libraries(pmdummybackendplugin kpmcore KF5::I18n KF5::CoreAddons)
|
||||
|
||||
install(TARGETS pmdummybackendplugin DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
|
|
|
@ -22,6 +22,6 @@ set (pmsfdiskbackendplugin_SRCS
|
|||
|
||||
add_library(pmsfdiskbackendplugin SHARED ${pmsfdiskbackendplugin_SRCS})
|
||||
|
||||
target_link_libraries(pmsfdiskbackendplugin kpmcore)
|
||||
target_link_libraries(pmsfdiskbackendplugin kpmcore KF5::I18n KF5::CoreAddons)
|
||||
|
||||
install(TARGETS pmsfdiskbackendplugin DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include <QVariant>
|
||||
|
||||
#include <KAuth>
|
||||
#include <KJob>
|
||||
#include <KLocalizedString>
|
||||
|
||||
/** Creates a new ExternalCommand instance without Report.
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
#include "core/copysourcedevice.h"
|
||||
#include "core/copytargetfile.h"
|
||||
|
||||
#include <KJob>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QProcess>
|
||||
#include <QString>
|
||||
|
@ -33,6 +31,7 @@
|
|||
#include <QtGlobal>
|
||||
#include <QVariant>
|
||||
|
||||
class KJob;
|
||||
class Report;
|
||||
|
||||
/** An external command.
|
||||
|
|
|
@ -20,7 +20,7 @@ target_link_libraries(testhelpers)
|
|||
|
||||
macro (kpm_test name)
|
||||
add_executable(${name} ${ARGN})
|
||||
target_link_libraries(${name} testhelpers kpmcore)
|
||||
target_link_libraries(${name} testhelpers kpmcore Qt5::Core)
|
||||
endmacro()
|
||||
|
||||
###
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "backend/corebackendmanager.h"
|
||||
#include "util/externalcommand.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QThread>
|
||||
|
||||
|
@ -52,7 +52,7 @@ void run()
|
|||
|
||||
int main( int argc, char **argv )
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
QCoreApplication app(argc, argv);
|
||||
KPMCoreInitializer i(QStringLiteral("pmsfdiskbackendplugin"));
|
||||
|
||||
runcmd a;
|
||||
|
|
Loading…
Reference in New Issue