Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f445c750 authored by Laurent Montel's avatar Laurent Montel 😁

Create a lib for the future

parent 43331761
......@@ -74,7 +74,7 @@ set(pimsettingexporter_blogilo_SRCS
blogilo/importblogilojob.cpp
)
set(pimsettingexporter_SRCS
set(pimsettingexporter_LIB_SRCS
${pimsettingexporter_widget_SRCS}
${pimsettingexporter_xml_SRCS}
${pimsettingexporter_notes_SRCS}
......@@ -101,6 +101,36 @@ set(pimsettingexporter_SRCS
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
kde4_add_library(pimsettingexporterprivate ${LIBRARY_TYPE} ${pimsettingexporter_LIB_SRCS})
target_link_libraries(pimsettingexporterprivate
${KDE4_KFILE_LIBS}
${KDE4_KIO_LIBS}
${KDEPIMLIBS_AKONADI_LIBS}
${KDEPIMLIBS_AKONADI_KMIME_LIBS}
${KDEPIMLIBS_KMIME_LIBS}
${KDEPIMLIBS_KPIMUTILS_LIBS}
${KDEPIMLIBS_MAILTRANSPORT_LIBS}
${AKONADI_COMMON_LIBRARIES}
${KDEPIMLIBS_KALARMCAL_LIBS}
${QT_QTXML_LIBRARY}
mailimporter
mailcommon
pimcommon
kdepim
messagecomposer
)
set_target_properties(pimsettingexporterprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
install(TARGETS pimsettingexporterprivate ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
set(pimsettingexporter_SRCS
main.cpp)
kde4_add_executable(pimsettingexporter ${pimsettingexporter_SRCS})
target_link_libraries(pimsettingexporter
......@@ -119,8 +149,10 @@ target_link_libraries(pimsettingexporter
pimcommon
kdepim
messagecomposer
pimsettingexporterprivate
)
install(TARGETS pimsettingexporter ${INSTALL_TARGETS_DEFAULT_ARGS} )
install(FILES
......
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library 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 PIMSETTINGEXPORT_EXPORT_H
#define PIMSETTINGEXPORT_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef PIMSETTINGEXPORT_EXPORT
# if defined(KDEPIM_STATIC_LIBS)
/* No export/import for static libraries */
# define PIMSETTINGEXPORT_EXPORT
# elif defined(MAKE_PIMSETTINGEXPORT_LIB)
/* We are building this library */
# define PIMSETTINGEXPORT_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define PIMSETTINGEXPORT_EXPORT KDE_IMPORT
# endif
#endif
# ifndef PIMSETTINGEXPORT_EXPORT_DEPRECATED
# define PIMSETTINGEXPORT_EXPORT_DEPRECATED KDE_DEPRECATED PIMSETTINGEXPORT_EXPORT
# endif
#endif
......@@ -20,6 +20,7 @@
#define PIMSETTINGEXPORTERWINDOW_H
#include <kxmlguiwindow.h>
#include "utils.h"
#include "pimsettingexporter_export.h"
class LogWidget;
class AbstractImportExportJob;
class KRecentFilesAction;
......@@ -27,7 +28,7 @@ class KUrl;
class ArchiveStorage;
class KAction;
class PimSettingExporterWindow: public KXmlGuiWindow
class PIMSETTINGEXPORT_EXPORT PimSettingExporterWindow: public KXmlGuiWindow
{
Q_OBJECT
public:
......
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