add export macro
This commit is contained in:
parent
067c3c6577
commit
ed718884cc
|
@ -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.
|
||||
|
|
1
lib.pro
1
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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue