Update the export macros in qtdeclarative.git
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 17 Jan 2012 13:37:27 +0000 (11:37 -0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 19:24:05 +0000 (21:24 +0200)
Use the new, simpler QT_STATIC macro.

Change-Id: I86d9d1a0e2812896594bfb0e6945b194f896d775
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
src/particles/qtquickparticlesglobal_p.h
src/qml/qtqmlglobal.h
src/qmltest/quicktestglobal.h
src/quick/qtquickglobal.h

index d7814f7..8b23fa4 100644 (file)
 
 // We only have private exports from this library
 
-#if defined(Q_OS_WIN)
-#  if defined(QT_MAKEDLL) /* create a Qt DLL library */
-#    if defined(QT_BUILD_QUICKPARTICLES_LIB)
-#      define Q_QUICKPARTICLES_PRIVATE_EXPORT Q_DECL_EXPORT
-#    else
-#      define Q_QUICKPARTICLES_PRIVATE_EXPORT Q_DECL_IMPORT
-#    endif
-#  elif defined(QT_DLL) /* use a Qt DLL library */
-#    define Q_QUICKPARTICLES_PRIVATE_EXPORT Q_DECL_IMPORT
-#  endif
-#endif
-
-#if !defined(Q_QUICKPARTICLES_PRIVATE_EXPORT)
-#  if defined(QT_SHARED)
+#ifndef QT_STATIC
+#  if defined(QT_BUILD_QUICKPARTICLES_LIB)
 #    define Q_QUICKPARTICLES_PRIVATE_EXPORT Q_DECL_EXPORT
 #  else
-#    define Q_QUICKPARTICLES_PRIVATE_EXPORT
+#    define Q_QUICKPARTICLES_PRIVATE_EXPORT Q_DECL_IMPORT
 #  endif
+#else
+#  define Q_QUICKPARTICLES_PRIVATE_EXPORT
 #endif
 
 #endif // QTQUICKPARTICLESGLOBAL_P_H
index 65277e6..3744ed2 100644 (file)
 
 #include <QtCore/qglobal.h>
 
-#if defined(Q_OS_WIN)
-#  if defined(QT_MAKEDLL) /* create a Qt DLL library */
-#    if defined(QT_BUILD_QML_LIB)
-#      define Q_QML_EXPORT Q_DECL_EXPORT
-#    else
-#      define Q_QML_EXPORT Q_DECL_IMPORT
-#    endif
-#  elif defined(QT_DLL) /* use a Qt DLL library */
-#    define Q_QML_EXPORT Q_DECL_IMPORT
-#  endif
-#endif
-
-#if !defined(Q_QML_EXPORT)
-#  if defined(QT_SHARED)
+#ifndef QT_STATIC
+#  if defined(QT_BUILD_QML_LIB)
 #    define Q_QML_EXPORT Q_DECL_EXPORT
 #  else
-#    define Q_QML_EXPORT
+#    define Q_QML_EXPORT Q_DECL_IMPORT
 #  endif
+#else
+#  define Q_QML_EXPORT
 #endif
 
 #endif // QTQMLGLOBAL_H
index 59bd643..f7633a6 100644 (file)
 
 QT_BEGIN_HEADER
 
-#if defined(Q_OS_WIN)
-#  if defined(QT_NODLL)
-#    undef QT_MAKEDLL
-#    undef QT_DLL
-#  elif defined(QT_MAKEDLL)        /* create a Qt DLL library */
-#    if defined(QT_DLL)
-#      undef QT_DLL
-#    endif
-#    if defined(QT_BUILD_QMLTEST_LIB)
-#        define Q_QUICK_TEST_EXPORT Q_DECL_EXPORT
-#    else
-#        define Q_QUICK_TEST_EXPORT Q_DECL_IMPORT
-#    endif
-#  elif defined(QT_DLL) /* use a Qt DLL library */
+#ifndef QT_STATIC
+#  if defined(QT_BUILD_QMLTEST_LIB)
+#    define Q_QUICK_TEST_EXPORT Q_DECL_EXPORT
+#  else
 #    define Q_QUICK_TEST_EXPORT Q_DECL_IMPORT
 #  endif
-#endif
-#if !defined(Q_QUICK_TEST_EXPORT)
-#   if defined(QT_SHARED)
-#       define Q_QUICK_TEST_EXPORT Q_DECL_EXPORT
-#   else
-#       define Q_QUICK_TEST_EXPORT
-#   endif
+#else
+#  define Q_QUICK_TEST_EXPORT
 #endif
 
 QT_END_HEADER
index a1d8c71..ad85b2e 100644 (file)
 
 #include <QtCore/qglobal.h>
 
-#if defined(Q_OS_WIN)
-#  if defined(QT_MAKEDLL) /* create a Qt DLL library */
-#    if defined(QT_BUILD_QUICK_LIB)
-#      define Q_QUICK_EXPORT Q_DECL_EXPORT
-#    else
-#      define Q_QUICK_EXPORT Q_DECL_IMPORT
-#    endif
-#  elif defined(QT_DLL) /* use a Qt DLL library */
-#    define Q_QUICK_EXPORT Q_DECL_IMPORT
-#  endif
-#endif
-
-#if !defined(Q_QUICK_EXPORT)
-#  if defined(QT_SHARED)
+#ifndef QT_STATIC
+#  if defined(QT_BUILD_QUICK_LIB)
 #    define Q_QUICK_EXPORT Q_DECL_EXPORT
 #  else
-#    define Q_QUICK_EXPORT
+#    define Q_QUICK_EXPORT Q_DECL_IMPORT
 #  endif
+#else
+#  define Q_QUICK_EXPORT
 #endif
 
 #endif // QTQUICKGLOBAL_H