path: root/src/printsupport
diff options
authorMaurice Kalinowski <>2017-01-12 11:31:17 +0100
committerJani Heikkinen <>2017-01-13 10:41:06 +0000
commitcfd069181c01bbade16c173a96100819aa719613 (patch)
treef6b4cd29acff9de63e637177d4543f2dc26fc3ca /src/printsupport
parentbe00e37bb35eadcb990b1b9a71b668c83cb89eaf (diff)
winrt: Fix Qt5PrintSupport(d).lib generation
With QT_NO_PRINTER set via the feature system there is no symbol exported at all in a packaging build. This implies that no .lib is generated. When an application has QT+=printsupport the build will fail due to a missing file. For android and ios it only worked as there is no separation and linker works against the .so file Task-number: QTBUG-56321 Change-Id: I389adaca61669b302b6c431effed2ef6d1c499a3 Reviewed-by: Simon Hausmann <> Reviewed-by: Friedemann Kleint <>
Diffstat (limited to 'src/printsupport')
1 files changed, 4 insertions, 0 deletions
diff --git a/src/printsupport/kernel/qprinter.cpp b/src/printsupport/kernel/qprinter.cpp
index 6d6d61b343..7824d28ac5 100644
--- a/src/printsupport/kernel/qprinter.cpp
+++ b/src/printsupport/kernel/qprinter.cpp
@@ -2326,4 +2326,8 @@ QPrinter::PrintRange QPrinter::printRange() const
+#elif defined(Q_OS_WINRT)
+bool Q_PRINTSUPPORT_EXPORT qt_winrt_export_lib_creation_variable;
#endif // QT_NO_PRINTER