[Pkg-owncloud-commits] [qtkeychain] 13/115: add export macro
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Mar 15 19:25:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository qtkeychain.
commit ed718884cc26a29da78c4e5b01e701a6e586af06
Author: Frank Osterfeld <frank.osterfeld at kdab.com>
Date: Fri Oct 28 21:27:03 2011 +0200
add export macro
---
keychain.h | 4 +++-
lib.pro | 1 +
qkeychain_export.h | 17 +++++++++++++++++
3 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/keychain.h b/keychain.h
index 7d368c9..8c205c8 100644
--- a/keychain.h
+++ b/keychain.h
@@ -9,6 +9,8 @@
#ifndef KEYCHAIN_H
#define KEYCHAIN_H
+#include "qkeychain_export.h"
+
#include <QtCore/QString>
namespace QKeychain {
@@ -22,7 +24,7 @@ namespace QKeychain {
*
* TODO we don't guarantee anything
*/
-class Keychain {
+class QKEYCHAIN_EXPORT Keychain {
public:
/**
* Creates a Keychain object.
diff --git a/lib.pro b/lib.pro
index b631a7b..ddca34c 100644
--- a/lib.pro
+++ b/lib.pro
@@ -7,6 +7,7 @@ HEADERS += keychain.h \
keychain_p.h
SOURCES += keychain.cpp
+DEFINES += QKEYCHAIN_BUILD_QKEYCHAIN_LIB
macx {
LIBS += -framework Security -framework CoreFoundation
diff --git a/qkeychain_export.h b/qkeychain_export.h
new file mode 100644
index 0000000..1bb1669
--- /dev/null
+++ b/qkeychain_export.h
@@ -0,0 +1,17 @@
+#ifndef QKEYCHAIN_EXPORT_H
+#define QKEYCHAIN_EXPORT_H
+
+#include <qglobal.h>
+
+# ifdef QKEYCHAIN_STATICLIB
+# undef QKEYCHAIN_SHAREDLIB
+# define QKEYCHAIN_EXPORT
+# else
+# ifdef QKEYCHAIN_BUILD_QKEYCHAIN_LIB
+# define QKEYCHAIN_EXPORT Q_DECL_EXPORT
+# else
+# define QKEYCHAIN_EXPORT Q_DECL_IMPORT
+# endif
+# endif
+
+#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git
More information about the Pkg-owncloud-commits
mailing list