From 9e95a2d876e131578abf834e170d1e887f29e232 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 8 Mar 2017 22:39:48 +0100 Subject: Don't install libmaildir as separate library It's not a generic maildir implementation and the library conflicts with what's installed from kdepim-runtime. --- examples/maildirresource/libmaildir/CMakeLists.txt | 8 ---- examples/maildirresource/libmaildir/maildir.cpp | 2 +- examples/maildirresource/libmaildir/maildir.h | 6 +-- .../maildirresource/libmaildir/maildir_export.h | 43 ---------------------- 4 files changed, 3 insertions(+), 56 deletions(-) delete mode 100644 examples/maildirresource/libmaildir/CMakeLists.txt delete mode 100644 examples/maildirresource/libmaildir/maildir_export.h (limited to 'examples/maildirresource/libmaildir') diff --git a/examples/maildirresource/libmaildir/CMakeLists.txt b/examples/maildirresource/libmaildir/CMakeLists.txt deleted file mode 100644 index e7803f5..0000000 --- a/examples/maildirresource/libmaildir/CMakeLists.txt +++ /dev/null @@ -1,8 +0,0 @@ -# add_subdirectory( tests ) - -set(maildir_LIB_SRCS keycache.cpp maildir.cpp) - -add_library(maildir ${LIBRARY_TYPE} ${maildir_LIB_SRCS}) -qt5_use_modules(maildir Core Network) -# set_target_properties(maildir PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS maildir ${INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/examples/maildirresource/libmaildir/maildir.cpp b/examples/maildirresource/libmaildir/maildir.cpp index a889ea2..203f6a6 100644 --- a/examples/maildirresource/libmaildir/maildir.cpp +++ b/examples/maildirresource/libmaildir/maildir.cpp @@ -1,5 +1,6 @@ /* Copyright (c) 2007 Till Adam + Copyright (c) 2017 Christian Mollekopf 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 @@ -24,7 +25,6 @@ #include #include #include -#include #include Q_LOGGING_CATEGORY(log, "maildir"); diff --git a/examples/maildirresource/libmaildir/maildir.h b/examples/maildirresource/libmaildir/maildir.h index c10b046..a72f2bc 100644 --- a/examples/maildirresource/libmaildir/maildir.h +++ b/examples/maildirresource/libmaildir/maildir.h @@ -1,5 +1,6 @@ /* Copyright (c) 2007 Till Adam + Copyright (c) 2017 Christian Mollekopf 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 @@ -20,9 +21,6 @@ #ifndef MAILDIR_H #define MAILDIR_H - -#include "maildir_export.h" - #include #include @@ -30,7 +28,7 @@ class QDateTime; namespace KPIM { -class MAILDIR_EXPORT Maildir +class Maildir { public: /** diff --git a/examples/maildirresource/libmaildir/maildir_export.h b/examples/maildirresource/libmaildir/maildir_export.h deleted file mode 100644 index b330fd0..0000000 --- a/examples/maildirresource/libmaildir/maildir_export.h +++ /dev/null @@ -1,43 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2007 David Faure - - 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 MAILDIR_EXPORT_H -#define MAILDIR_EXPORT_H - -/* needed for KDE_EXPORT and KDE_IMPORT macros */ -// #include - -#ifndef MAILDIR_EXPORT -// # if defined(KDEPIM_STATIC_LIBS) -// #<{(| No export/import for static libraries |)}># -# define MAILDIR_EXPORT -// # elif defined(MAKE_MAILDIR_LIB) -// #<{(| We are building this library |)}># -// # define MAILDIR_EXPORT KDE_EXPORT -// # else -// #<{(| We are using this library |)}># -// # define MAILDIR_EXPORT KDE_IMPORT -// # endif -#endif -// -// # ifndef MAILDIR_EXPORT_DEPRECATED -// # define MAILDIR_EXPORT_DEPRECATED KDE_DEPRECATED MAILDIR_EXPORT -// # endif - -#endif -- cgit v1.2.3