kcontrol: generate export header

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-28 12:53:19 +03:00
parent 4e00e3acfc
commit 9ae9cae894
6 changed files with 8 additions and 36 deletions

View file

@ -29,10 +29,10 @@
#include <QtCore/QSet> #include <QtCore/QSet>
#include <QtDBus/QtDBus> #include <QtDBus/QtDBus>
#include <KJob> #include <KJob>
#include <kdemacros.h>
#include "Family.h" #include "Family.h"
#include "Folder.h" #include "Folder.h"
#include "FontinstIface.h" #include "FontinstIface.h"
#include "kfontinst_export.h"
#define FONTINST_PATH "/FontInst" #define FONTINST_PATH "/FontInst"
@ -41,7 +41,7 @@
namespace KFI namespace KFI
{ {
class KFONTINST_EXPORT FontInst : public QObject class KDE_EXPORT FontInst : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.fontinst") Q_CLASSINFO("D-Bus Interface", "org.kde.fontinst")

View file

@ -5,6 +5,8 @@ add_library(kfontinst SHARED ${kfontinst_LIB_SRCS})
target_link_libraries(kfontinst ${KDE4_KDECORE_LIBS} ${QT_QTXML_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTCORE_LIBRARY} ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES}) target_link_libraries(kfontinst ${KDE4_KDECORE_LIBS} ${QT_QTXML_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTCORE_LIBRARY} ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES})
set_target_properties(kfontinst PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) set_target_properties(kfontinst PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
generate_export_header(kfontinst)
add_library(kfontinstui SHARED ${kfontinstui_LIB_SRCS}) add_library(kfontinstui SHARED ${kfontinstui_LIB_SRCS})
target_link_libraries(kfontinstui ${KDE4_KIO_LIBS} ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${X11_X11_LIB} ${X11_Xft_LIB} kfontinst) target_link_libraries(kfontinstui ${KDE4_KIO_LIBS} ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${X11_X11_LIB} ${X11_Xft_LIB} kfontinst)
set_target_properties(kfontinstui PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) set_target_properties(kfontinstui PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})

View file

@ -27,6 +27,7 @@
#include <QtCore/QSet> #include <QtCore/QSet>
#include <QtCore/QMetaType> #include <QtCore/QMetaType>
#include <QtDBus/QtDBus> #include <QtDBus/QtDBus>
#include <kdemacros.h>
#include "kfontinst_export.h" #include "kfontinst_export.h"
#include "Style.h" #include "Style.h"

View file

@ -25,6 +25,7 @@
#define __FC_H__ #define __FC_H__
#include <KUrl> #include <KUrl>
#include <kdemacros.h>
#include <fontconfig/fontconfig.h> #include <fontconfig/fontconfig.h>
#include "kfontinst_export.h" #include "kfontinst_export.h"
#include "KfiConstants.h" #include "KfiConstants.h"

View file

@ -27,10 +27,10 @@
#include <QtCore/QSet> #include <QtCore/QSet>
#include <QtCore/QMetaType> #include <QtCore/QMetaType>
#include <QtDBus/QtDBus> #include <QtDBus/QtDBus>
#include "kfontinst_export.h"
#include <QDomElement> #include <QDomElement>
#include <QTextStream> #include <QTextStream>
#include <kdemacros.h>
#include "kfontinst_export.h"
namespace KFI namespace KFI
{ {

View file

@ -1,32 +0,0 @@
/* This file is part of the KDE project
Copyright (C) 2006 Matthias Kretz <kretz@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KFONTINST_EXPORT_H
#define KFONTINST_EXPORT_H
/* needed for KDE_EXPORT macros */
#include <kdemacros.h>
#define KFONTINST_EXPORT KDE_EXPORT
#endif // KFONTINST_EXPORT_H