[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra] libs/basicflakes: Give the basicflakes lib its own basicflakes_export.h
From:       Friedrich W. H. Kossebau <kossebau () kde ! org>
Date:       2012-12-28 15:39:07
Message-ID: 20121228153907.1A6A1A6091 () git ! kde ! org
[Download RAW message or body]

Git commit 0aa30141277f3dc4ec2e21bb3184987921d2e8a7 by Friedrich W. H. Koss=
ebau.
Committed on 28/12/2012 at 16:37.
Pushed by kossebau into branch 'master'.

Give the basicflakes lib its own basicflakes_export.h

M  +1    -0    libs/basicflakes/CMakeLists.txt
A  +38   -0    libs/basicflakes/basicflakes_export.h     [License: LGPL (v2=
+)]
M  +2    -1    libs/basicflakes/tools/KoCreatePathTool.h

http://commits.kde.org/calligra/0aa30141277f3dc4ec2e21bb3184987921d2e8a7

diff --git a/libs/basicflakes/CMakeLists.txt b/libs/basicflakes/CMakeLists.=
txt
index 48dcdee..156cb73 100644
--- a/libs/basicflakes/CMakeLists.txt
+++ b/libs/basicflakes/CMakeLists.txt
@@ -22,6 +22,7 @@ install(TARGETS basicflakes  ${INSTALL_TARGETS_DEFAULT_AR=
GS})
 =

 install( FILES
     tools/KoCreatePathTool.h
+    basicflakes_export.h
 =

     DESTINATION
     ${INCLUDE_INSTALL_DIR}
diff --git a/libs/basicflakes/basicflakes_export.h b/libs/basicflakes/basic=
flakes_export.h
new file mode 100644
index 0000000..ca89f4e
--- /dev/null
+++ b/libs/basicflakes/basicflakes_export.h
@@ -0,0 +1,38 @@
+/*  This file is part of the KDE project
+    Copyright (C) 2006 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 Lice=
nse
+    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 BASICFLAKES_EXPORT_H
+#define BASICFLAKES_EXPORT_H
+
+/* needed for KDE_EXPORT and KDE_IMPORT macros */
+#include <kdemacros.h>
+
+#ifndef BASICFLAKES_EXPORT
+# if defined(MAKE_BASICFLAKES_LIB)
+/* We are building this library */
+#  define BASICFLAKES_EXPORT KDE_EXPORT
+#  define BASICFLAKES_TEST_EXPORT KDE_EXPORT
+# else
+/* We are using this library */
+#  define BASICFLAKES_EXPORT KDE_IMPORT
+#  define BASICFLAKES_TEST_EXPORT KDE_IMPORT
+# endif
+#endif
+
+#endif
diff --git a/libs/basicflakes/tools/KoCreatePathTool.h b/libs/basicflakes/t=
ools/KoCreatePathTool.h
index 5b0ae7e..b2ee56e 100644
--- a/libs/basicflakes/tools/KoCreatePathTool.h
+++ b/libs/basicflakes/tools/KoCreatePathTool.h
@@ -21,6 +21,7 @@
 #ifndef KOCREATEPATHTOOL_H
 #define KOCREATEPATHTOOL_H
 =

+#include "basicflakes_export.h"
 =

 #include <KoToolBase.h>
 =

@@ -36,7 +37,7 @@ class KoCreatePathToolPrivate;
 /**
  * Tool for creating path shapes.
  */
-class FLAKE_EXPORT KoCreatePathTool : public KoToolBase
+class BASICFLAKES_EXPORT KoCreatePathTool : public KoToolBase
 {
     Q_OBJECT
 public:
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic