Commit 2b61b00d authored by Nicolas Fella's avatar Nicolas Fella

Don't install headers and libs for systemsettingsview

We don't have any known users of this API.
Instead use static linking for the internal lib.

BUG: 339294
parent 1e18d69f
......@@ -13,7 +13,6 @@ include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDEClangFormat)
include(GenerateExportHeader)
include(ECMQMLModules)
include(ECMQtDeclareLoggingCategory)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
......
......@@ -21,7 +21,6 @@
#define BASEDATA_H
#include <QObject>
#include "systemsettingsview_export.h"
class QString;
class MenuItem;
......@@ -35,7 +34,7 @@ class KConfigGroup;
*
* @author Ben Cooksley <bcooksley@kde.org>
*/
class SYSTEMSETTINGSVIEW_EXPORT BaseData : public QObject
class BaseData : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(BaseData)
......
......@@ -21,7 +21,6 @@
#define BASEMODE_H
#include <QObject>
#include "systemsettingsview_export.h"
#include <KService>
......@@ -46,7 +45,7 @@ template<typename T> class QList;
* @author Ben Cooksley <bcooksley@kde.org>
* @author Mathias Soeken <msoeken@informatik.uni-bremen.de>
*/
class SYSTEMSETTINGSVIEW_EXPORT BaseMode : public QObject
class Q_DECL_EXPORT BaseMode : public QObject
{
Q_OBJECT
......
......@@ -10,18 +10,7 @@ set(systemsettingsview_LIB_SRCS
ki18n_wrap_ui( systemsettingsview_LIB_SRCS externalModule.ui )
set(systemsettingsview_LIB_HDRS
${CMAKE_CURRENT_BINARY_DIR}/systemsettingsview_export.h
MenuItem.h
MenuModel.h
MenuProxyModel.h
BaseData.h
BaseMode.h
ModuleView.h
)
add_library( systemsettingsview ${systemsettingsview_LIB_SRCS} )
generate_export_header(systemsettingsview)
add_library( systemsettingsview STATIC ${systemsettingsview_LIB_SRCS} )
target_link_libraries( systemsettingsview
KF5::ItemViews
......@@ -33,8 +22,4 @@ target_link_libraries( systemsettingsview
KF5::Activities
)
set_target_properties( systemsettingsview PROPERTIES SOVERSION 3 )
install( TARGETS systemsettingsview ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES ${systemsettingsview_LIB_HDRS} DESTINATION ${KDE_INSTALL_INCLUDEDIR}/systemsettingsview COMPONENT Devel )
install( FILES systemsettingsview.desktop systemsettingsexternalapp.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR} )
......@@ -22,8 +22,6 @@
#ifndef MENUITEM_H
#define MENUITEM_H
#include "systemsettingsview_export.h"
#include <KService>
class QString;
......@@ -47,7 +45,7 @@ template<typename T> class QList;
* @author Ben Cooksley <bcooksley@kde.org>
* @author Will Stephenson <wstephenson@kde.org>
*/
class SYSTEMSETTINGSVIEW_EXPORT MenuItem
class MenuItem
{
public:
/**
......
......@@ -22,7 +22,6 @@
#define MENUMODEL_H
#include <QAbstractItemModel>
#include "systemsettingsview_export.h"
class MenuItem;
......@@ -36,7 +35,7 @@ class MenuItem;
* @author Ben Cooksley <bcooksley@kde.org>
* @author Will Stephenson <wstephenson@kde.org>
*/
class SYSTEMSETTINGSVIEW_EXPORT MenuModel : public QAbstractItemModel
class MenuModel : public QAbstractItemModel
{
Q_OBJECT
......
......@@ -22,7 +22,6 @@
#define MENUPROXYMODEL_H
#include <KCategorizedSortFilterProxyModel>
#include "systemsettingsview_export.h"
/**
* @brief Provides a filter model for MenuModel
......@@ -36,7 +35,7 @@
* @author Will Stephenson <wstephenson@kde.org>
* @author Ben Cooksley <bcooksley@kde.org>
*/
class SYSTEMSETTINGSVIEW_EXPORT MenuProxyModel : public KCategorizedSortFilterProxyModel
class MenuProxyModel : public KCategorizedSortFilterProxyModel
{
Q_OBJECT
......
......@@ -24,7 +24,6 @@
#include <KPageView>
#include <QWidget>
#include <QModelIndex>
#include "systemsettingsview_export.h"
class KAboutData;
class KCModuleInfo;
......@@ -47,7 +46,7 @@ class KPageWidgetItem;
* @author Mathias Soeken <msoeken@informatik.uni-bremen.de>
* @author Ben Cooksley <bcooksley@kde.org>
*/
class SYSTEMSETTINGSVIEW_EXPORT ModuleView : public QWidget
class ModuleView : public QWidget
{
Q_OBJECT
......
Markdown is supported
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