diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-03-25 10:24:52 +0100 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-03-26 13:05:03 +0100 |
commit | 4eefefed7f4ceae137fb5173cff5a484ca830af0 (patch) | |
tree | 0e850feb2205d79c520b8608571abca836608e94 /src | |
parent | 3e5ad834d770909642b70589d24c6b7a4103048e (diff) |
Export symbols correctly.
Diffstat (limited to 'src')
-rw-r--r-- | src/coroutine.h | 4 | ||||
-rw-r--r-- | src/coroutine_global.h | 12 | ||||
-rw-r--r-- | src/src.pro | 5 |
3 files changed, 20 insertions, 1 deletions
diff --git a/src/coroutine.h b/src/coroutine.h index 87a448a..bd33c4e 100644 --- a/src/coroutine.h +++ b/src/coroutine.h @@ -1,7 +1,9 @@ #ifndef INCLUDE_COROUTINE_H #define INCLUDE_COROUTINE_H -class Coroutine +#include "coroutine_global.h" + +class COROUTINE_EXPORT Coroutine { public: enum Status diff --git a/src/coroutine_global.h b/src/coroutine_global.h new file mode 100644 index 0000000..35f7cd8 --- /dev/null +++ b/src/coroutine_global.h @@ -0,0 +1,12 @@ +#ifndef COROUTINE_GLOBAL_H +#define COROUTINE_GLOBAL_H + +#include <QtCore/qglobal.h> + +#if defined(COROUTINE_LIBRARY) +# define COROUTINE_EXPORT Q_DECL_EXPORT +#else +# define COROUTINE_EXPORT Q_DECL_IMPORT +#endif + +#endif // COROUTINE_GLOBAL_H diff --git a/src/src.pro b/src/src.pro index 027e51e..436105c 100644 --- a/src/src.pro +++ b/src/src.pro @@ -1,9 +1,14 @@ TEMPLATE = lib +CONFIG += dll +DEFINES += COROUTINE_LIBRARY +unix: CONFIG += hide_symbols + DESTDIR = ../lib TARGET = coroutine HEADERS += \ coroutine.h \ + coroutine_global.h \ coroutinebuilddeclaration_p.h \ coroutinebuilddefinition_p.h \ coroutinestoredfunctioncall_p.h |