diff options
author | Kaj Grönholm <kaj.gronholm@qt.io> | 2019-11-28 10:05:04 +0200 |
---|---|---|
committer | Kaj Grönholm <kaj.gronholm@qt.io> | 2019-11-28 12:52:18 +0200 |
commit | 2977dfd540f6c2d65053a7da11a49363d7a38184 (patch) | |
tree | 7fbc3de8895cacfd892aab86c62efbcc88a4e1da /src | |
parent | 115151c68893ac02e6d4228d18894f4a8fc7217c (diff) |
Fix building & running runtime autotests
Building shouldn't change on mingw while enabling
QT3DS_AUTOTEST_EXPORT on other platforms like before a06fe05660.
Task-number: QT3DS-4014
Change-Id: Ic0f8ba487c3e8843312fa79f3f21d7c519ce71ce
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/foundation/Qt3DSPreprocessor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/foundation/Qt3DSPreprocessor.h b/src/foundation/Qt3DSPreprocessor.h index 98b60c6..066a38e 100644 --- a/src/foundation/Qt3DSPreprocessor.h +++ b/src/foundation/Qt3DSPreprocessor.h @@ -188,7 +188,15 @@ no definition - this will allow DLLs and libraries to use the exported API from #define QT3DS_FOUNDATION_API #endif +#if defined(QT3DS_AUTOTESTS_ENABLED) +#if defined(QT3DS_BUILDING_LIBRARY) +#define QT3DS_AUTOTEST_EXPORT Q_DECL_EXPORT +#else +#define QT3DS_AUTOTEST_EXPORT Q_DECL_IMPORT +#endif +#else #define QT3DS_AUTOTEST_EXPORT QT3DS_FOUNDATION_API +#endif /** Calling convention |