Fix export macros for the QML parser export.
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 2 Apr 2013 05:44:32 +0000 (22:44 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 3 Apr 2013 05:40:14 +0000 (07:40 +0200)
These classes are in the QtQml library. They shouldn't be defined to
export (even if it's autotest export) when compiling other libraries,
notably QtQuick.

Change-Id: Id76d2b2f2c60355240edabb7875db3e97fb0da17
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/qml/qml/parser/qqmljsglobal_p.h

index 3aecc86..c53e12e 100644 (file)
 #  if defined(QT_BUILD_QMLDEVTOOLS_LIB) || defined(QT_QMLDEVTOOLS_LIB)
      // QmlDevTools is a static library
 #    define QML_PARSER_EXPORT
-#  else
+#  elif defined(QT_BUILD_QML_LIB)
 #    define QML_PARSER_EXPORT Q_AUTOTEST_EXPORT
+#  else
+#    define QML_PARSER_EXPORT
 #  endif
 #endif // QT_CREATOR