aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport/qtsupport_global.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qtsupport/qtsupport_global.h')
-rw-r--r--src/plugins/qtsupport/qtsupport_global.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/qtsupport/qtsupport_global.h b/src/plugins/qtsupport/qtsupport_global.h
index aca20f5aa27..60c9bf0c128 100644
--- a/src/plugins/qtsupport/qtsupport_global.h
+++ b/src/plugins/qtsupport/qtsupport_global.h
@@ -12,3 +12,15 @@
#else
# define QTSUPPORT_EXPORT Q_DECL_IMPORT
#endif
+
+#if defined(WITH_TESTS)
+# if defined(QTSUPPORT_LIBRARY)
+# define QTSUPPORT_TEST_EXPORT Q_DECL_EXPORT
+# elif defined(QTSUPPORT_STATIC_LIBRARY)
+# define QTSUPPORT_TEST_EXPORT
+# else
+# define QTSUPPORT_TEST_EXPORT Q_DECL_IMPORT
+# endif
+#else
+# define QTSUPPORT_TEST_EXPORT
+#endif