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