Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90492

Automatically create q${module}global.h headers

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.2
    • 6.0.0
    • Build System: CMake
    • None
    • All
    • d2f701518 (dev), 3b534905c (dev), e5d7c1508 (dev), 4f68ed4c2 (dev), c10e56bdb (dev), c521359de (dev), fb0ee24b9 (dev), 276c13441 (dev), 91654a54e (dev), 581e01811 (dev), c2e4b184c (dev), f6bbc0858 (dev), 73d5bf51f (dev), f36097b31 (dev), 776946919 (dev)

    Description

      We have those q${module}global.h headers containing export macros like this:

      #ifndef QTWIDGETSGLOBAL_H
      #define QTWIDGETSGLOBAL_H
      
      #include <QtGui/qtguiglobal.h>
      #include <QtWidgets/qtwidgets-config.h>
      
      QT_BEGIN_NAMESPACE
      
      #ifndef QT_STATIC
      #  if defined(QT_BUILD_WIDGETS_LIB)
      #    define Q_WIDGETS_EXPORT Q_DECL_EXPORT
      #  else
      #    define Q_WIDGETS_EXPORT Q_DECL_IMPORT
      #  endif
      #else
      #  define Q_WIDGETS_EXPORT
      #endif
      
      QT_END_NAMESPACE
      
      #endif // QTGUIGLOBAL_H
      

      They're almost the same for every macro and could be automatically generated by CMake.

      Attachments

        For Gerrit Dashboard: QTBUG-90492
        # Subject Branch Project Status CR V

        Activity

          People

            semlanik Alexey Edelev
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are 26 open Gerrit changes