aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qdeferredpointer_p.h
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2022-03-24 15:37:56 +0100
committerMaximilian Goldstein <max.goldstein@qt.io>2022-03-25 13:12:32 +0100
commitdc6b39fb2e30705a8a46569a60094370a641f82d (patch)
treea8072a162b6a9cd38d43ccb48e90a3ae3c9cc1b8 /src/qmlcompiler/qdeferredpointer_p.h
parenta7d3ac7c2d46c7a56d2472e4fc7f8964d454f9a1 (diff)
Turn qmlcompiler into a shared library
Converts qmlcompiler into a shared library so it isn't duplicated when statically linked in tools and so that plugins can link against it. Change-Id: I91e13cc588796f71a5463dbdce21e42a74120565 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qmlcompiler/qdeferredpointer_p.h')
-rw-r--r--src/qmlcompiler/qdeferredpointer_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qmlcompiler/qdeferredpointer_p.h b/src/qmlcompiler/qdeferredpointer_p.h
index 5c496529ba..6c9e380100 100644
--- a/src/qmlcompiler/qdeferredpointer_p.h
+++ b/src/qmlcompiler/qdeferredpointer_p.h
@@ -39,6 +39,8 @@
//
// We mean it.
+#include <qtqmlcompilerexports.h>
+
#include <QtCore/private/qglobal_p.h>
#include <QtCore/qsharedpointer.h>
@@ -56,7 +58,7 @@ template<typename T>
class QDeferredWeakPointer;
template<typename T>
-class QDeferredSharedPointer
+class Q_QMLCOMPILER_EXPORT QDeferredSharedPointer
{
public:
using Factory = QDeferredFactory<std::remove_const_t<T>>;
@@ -186,7 +188,7 @@ private:
};
template<typename T>
-class QDeferredWeakPointer
+class Q_QMLCOMPILER_EXPORT QDeferredWeakPointer
{
public:
using Factory = QDeferredFactory<std::remove_const_t<T>>;