core: don't export unnecessary symbol in static build

User binary has this export when Qt is build statically,
we should only export it in shared Qt builds.

Change-Id: Iaa08e2a668bee6f094a49f20a0033c5eecdc1cbc
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Zhao Yuhang 2025-04-11 19:46:30 +08:00
parent 687422abde
commit a0484f629c

View File

@ -13,7 +13,7 @@
QT_BEGIN_NAMESPACE
#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
Q_DECL_EXPORT int qRegisterNormalizedMetaType_qfloat16(const QByteArray &)
Q_CORE_EXPORT int qRegisterNormalizedMetaType_qfloat16(const QByteArray &)
{
return QMetaType::Float16;
}