Move Q_AUTOTEST_EXPORT to qtconfigmacros.h
The include statements for qconfig*.h can now be moved there too. Task-number: QTBUG-99313 Change-Id: I65f564fc48b9074861b0f8b50046062c2e83090c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
32df595275
commit
11ee62bf76
|
|
@ -22,14 +22,6 @@
|
|||
#endif
|
||||
|
||||
#include <QtCore/qtversionchecks.h>
|
||||
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
#include <QtCore/qconfig-bootstrapped.h>
|
||||
#else
|
||||
#include <QtCore/qconfig.h>
|
||||
#include <QtCore/qtcore-config.h>
|
||||
#endif
|
||||
|
||||
#include <QtCore/qtconfigmacros.h>
|
||||
#include <QtCore/qtcoreexports.h>
|
||||
|
||||
|
|
@ -56,19 +48,6 @@ inline void qt_noop(void) {}
|
|||
#ifndef __ASSEMBLER__
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
/*
|
||||
No, this is not an evil backdoor. QT_BUILD_INTERNAL just exports more symbols
|
||||
for Qt's internal unit tests. If you want slower loading times and more
|
||||
symbols that can vanish from version to version, feel free to define QT_BUILD_INTERNAL.
|
||||
*/
|
||||
#if defined(QT_BUILD_INTERNAL) && defined(QT_BUILDING_QT) && defined(QT_SHARED)
|
||||
# define Q_AUTOTEST_EXPORT Q_DECL_EXPORT
|
||||
#elif defined(QT_BUILD_INTERNAL) && defined(QT_SHARED)
|
||||
# define Q_AUTOTEST_EXPORT Q_DECL_IMPORT
|
||||
#else
|
||||
# define Q_AUTOTEST_EXPORT
|
||||
#endif
|
||||
|
||||
#define Q_INIT_RESOURCE(name) \
|
||||
do { extern int QT_MANGLE_NAMESPACE(qInitResources_ ## name) (); \
|
||||
QT_MANGLE_NAMESPACE(qInitResources_ ## name) (); } while (false)
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
#ifndef QTCONFIGMACROS_H
|
||||
#define QTCONFIGMACROS_H
|
||||
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
#include <QtCore/qconfig-bootstrapped.h>
|
||||
#else
|
||||
#include <QtCore/qconfig.h>
|
||||
#include <QtCore/qtcore-config.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
The Qt modules' export macros.
|
||||
The options are:
|
||||
|
|
@ -31,6 +38,19 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
No, this is not an evil backdoor. QT_BUILD_INTERNAL just exports more symbols
|
||||
for Qt's internal unit tests. If you want slower loading times and more
|
||||
symbols that can vanish from version to version, feel free to define QT_BUILD_INTERNAL.
|
||||
*/
|
||||
#if defined(QT_BUILD_INTERNAL) && defined(QT_BUILDING_QT) && defined(QT_SHARED)
|
||||
# define Q_AUTOTEST_EXPORT Q_DECL_EXPORT
|
||||
#elif defined(QT_BUILD_INTERNAL) && defined(QT_SHARED)
|
||||
# define Q_AUTOTEST_EXPORT Q_DECL_IMPORT
|
||||
#else
|
||||
# define Q_AUTOTEST_EXPORT
|
||||
#endif
|
||||
|
||||
/*
|
||||
The QT_CONFIG macro implements a safe compile time check for features of Qt.
|
||||
Features can be in three states:
|
||||
|
|
|
|||
Loading…
Reference in New Issue