aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/parser/qmljsglobal_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/parser/qmljsglobal_p.h')
-rw-r--r--src/lib/corelib/parser/qmljsglobal_p.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/corelib/parser/qmljsglobal_p.h b/src/lib/corelib/parser/qmljsglobal_p.h
index 5a875c01a..c3d198ea5 100644
--- a/src/lib/corelib/parser/qmljsglobal_p.h
+++ b/src/lib/corelib/parser/qmljsglobal_p.h
@@ -41,6 +41,15 @@
#include <QtCore/qglobal.h>
+// Force QML_PARSER_EXPORT to be always empty.
+#ifndef QT_CREATOR
+# define QT_CREATOR
+#endif
+#ifdef QML_BUILD_STATIC_LIB
+# undef QML_BUILD_STATIC_LIB
+#endif
+#define QML_BUILD_STATIC_LIB 1
+
#ifdef QT_CREATOR
# ifdef QMLJS_BUILD_DIR
# define QML_PARSER_EXPORT Q_DECL_EXPORT