Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
6.0.0
-
None
-
-
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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-90492 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
379587,1 | Migrate to autogenerated cpp exports | dev | qt/qtnetworkauth | Status: NEW | -1 | 0 |
521833,3 | Remove GENERATE_CPP_EXPORTS argument | dev | qt/qtbase | Status: NEW | 0 | 0 |
521836,3 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
521839,2 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtquick3d | Status: NEW | 0 | 0 |
521841,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtmultimedia | Status: NEW | 0 | 0 |
521846,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtcoap | Status: NEW | 0 | 0 |
521847,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtconnectivity | Status: NEW | +2 | 0 |
521849,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtdatavis3d | Status: NEW | 0 | 0 |
521895,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtgraphs | Status: NEW | +2 | 0 |
521896,8 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtgrpc | Status: NEW | +2 | 0 |
521898,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qthttpserver | Status: NEW | 0 | 0 |
522036,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtmqtt | Status: NEW | 0 | 0 |
522103,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtnetworkauth | Status: NEW | 0 | 0 |
522109,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtopcua | Status: NEW | 0 | 0 |
522110,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtpositioning | Status: NEW | +2 | 0 |
522134,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtremoteobjects | Status: NEW | 0 | 0 |
522137,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtscxml | Status: NEW | +2 | 0 |
522138,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtsensors | Status: NEW | 0 | 0 |
522139,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtserialbus | Status: NEW | +2 | 0 |
522140,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtserialport | Status: NEW | 0 | 0 |
522141,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtshadertools | Status: NEW | 0 | 0 |
522143,2 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtsvg | Status: NEW | +2 | 0 |
522152,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtwayland | Status: NEW | 0 | 0 |
522153,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtwebchannel | Status: NEW | 0 | 0 |
522155,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtwebsockets | Status: NEW | 0 | 0 |
522158,1 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtwebengine | Status: NEW | +2 | 0 |
356214,14 | Implement generating of a module cpp export header | dev | qt/qtbase | Status: MERGED | +2 | 0 |
356295,8 | Migrate to autogenerated cpp exports | dev | qt/qtbase | Status: MERGED | +2 | 0 |
356746,3 | Migrate to autogenerated cpp exports | dev | qt/qtbase | Status: MERGED | +2 | 0 |
357091,8 | Migrate to autogenerated cpp exports | dev | qt/qtcharts | Status: MERGED | -1 | 0 |
357092,4 | Migrate to autogenerated cpp exports | dev | qt/qtcoap | Status: MERGED | +2 | 0 |
357093,8 | Migrate to autogenerated cpp exports | dev | qt/qtconnectivity | Status: MERGED | +2 | 0 |
357094,5 | Migrate to autogenerated cpp exports | dev | qt/qtlocation | Status: ABANDONED | 0 | 0 |
357095,5 | Migrate to autogenerated cpp exports | dev | qt/qtmqtt | Status: MERGED | +2 | 0 |
357096,6 | Migrate to autogenerated cpp exports | dev | qt/qtopcua | Status: MERGED | +2 | 0 |
357097,8 | Migrate to autogenerated cpp exports | dev | qt/qtquicktimeline | Status: MERGED | +2 | 0 |
357099,4 | Migrate to autogenerated cpp exports | dev | qt/qtremoteobjects | Status: MERGED | +2 | 0 |
357100,10 | Migrate to autogenerated cpp exports | dev | qt/qtscxml | Status: MERGED | +2 | 0 |
357101,7 | Migrate to autogenerated cpp exports | dev | qt/qtsensors | Status: MERGED | +2 | 0 |
357102,6 | Migrate to autogenerated cpp exports | dev | qt/qtserialbus | Status: MERGED | +2 | 0 |
357104,6 | Migrate to autogenerated cpp exports | dev | qt/qtserialport | Status: MERGED | +2 | 0 |
357105,9 | Migrate to autogenerated cpp exports | dev | qt/qtshadertools | Status: MERGED | +2 | 0 |
357106,10 | Migrate to autogenerated cpp exports | dev | qt/qtsvg | Status: MERGED | +2 | 0 |
357110,8 | Migrate to autogenerated cpp exports | dev | qt/qtwebsockets | Status: MERGED | +2 | 0 |
357111,7 | Migrate to autogenerated cpp exports | dev | qt/qtwebchannel | Status: MERGED | +2 | 0 |
357269,8 | Exclude 'global' headers from QT_BEGIN_NAMESPACE check in syncqt.pl | dev | qt/qtbase | Status: MERGED | +2 | 0 |
357282,3 | Adjust the naming of the cpp export macro | dev | qt/qtcharts | Status: ABANDONED | -1 | 0 |
357286,5 | Migrate to autogenerated cpp exports | dev | qt/qtdatavis3d | Status: MERGED | +2 | 0 |
357339,10 | Migrate to autogenerated cpp exports | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
362718,15 | Implement generating of private cpp exports | dev | qt/qtbase | Status: MERGED | +2 | 0 |
367237,1 | Implement generating of private cpp exports | 6.2 | qt/qtbase | Status: ABANDONED | 0 | 0 |
370384,7 | Expose cpp export related arguments for qt_internal_add_module users | dev | qt/qtbase | Status: MERGED | +2 | 0 |
370386,7 | Migrate to autogenerated cpp exports in qqc2 | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
370387,9 | Generate cpp exports for QML Compiler | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
370667,6 | Add missing private cpp exports template to install set | dev | qt/qtbase | Status: MERGED | +2 | 0 |
370681,3 | Migrate to generated cpp exports in QmlDom module | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
370721,3 | Migrate to autogenerated cpp exports | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
370952,12 | Add explicit install rules for the autogenerated cpp exports | dev | qt/qtbase | Status: MERGED | +2 | 0 |
371154,5 | Add extra define to indicate that module is static library | dev | qt/qtbase | Status: ABANDONED | +1 | 0 |
371349,3 | Do not generate cpp exports for pure STATIC modules | dev | qt/qtbase | Status: MERGED | +2 | 0 |
379516,3 | Migrate to autogenerated cpp exports in the ChartsQml module | dev | qt/qtcharts | Status: MERGED | +2 | 0 |
379520,2 | Migrate to autogenerated cpp exports | dev | qt/qtpositioning | Status: MERGED | +2 | 0 |
379536,5 | Migrate to autogenerated cpp exports | dev | qt/qt3d | Status: ABANDONED | -1 | 0 |
379576,4 | Migrate to autogenerated cpp exports | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
379592,2 | Migrate to autogenerated cpp exports | dev | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
382724,5 | Migrate to autogenerated cpp exports | dev | qt/qtlocation | Status: MERGED | +2 | 0 |
394326,1 | Invert the GENERATE_CPP_EXPORTS flag | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |
521827,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtlanguageserver | Status: MERGED | +2 | 0 |
521828,6 | Introduce NO_GENERATE_CPP_EXPORTS argument for qt_internal_add_module | dev | qt/qtbase | Status: MERGED | +2 | 0 |
521834,7 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
521838,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
521842,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qt5compat | Status: MERGED | +2 | 0 |
521844,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtactiveqt | Status: MERGED | +2 | 0 |
521845,3 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtcharts | Status: MERGED | +2 | 0 |
521848,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtdatavis3d | Status: MERGED | +2 | 0 |
522032,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtlocation | Status: MERGED | +2 | 0 |
522033,2 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtlocation | Status: MERGED | +2 | 0 |
522035,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtlottie | Status: MERGED | +2 | 0 |
522107,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtopcua | Status: MERGED | -1 | 0 |
522118,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtquick3dphysics | Status: MERGED | +2 | 0 |
522120,4 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtquicktimeline | Status: MERGED | +2 | 0 |
522133,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtremoteobjects | Status: MERGED | +2 | 0 |
522142,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtspeech | Status: MERGED | +2 | 0 |
522147,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qttools | Status: MERGED | +2 | 0 |
522149,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
522150,2 | Remove the use of GENERATE_CPP_EXPORTS argument | dev | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
522151,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtwayland | Status: MERGED | +2 | 0 |
522154,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtwebsockets | Status: MERGED | +2 | 0 |
522156,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtwebview | Status: MERGED | +2 | 0 |
522157,3 | Use NO_GENERATE_CPP_EXPORTS explicitly | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
548852,2 | QuickTest: Use generated C++ export macros | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |