From 99eecab83d4a4c79979aa0b1fcf1f58c14dcf526 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 4 Feb 2014 13:56:45 +0100 Subject: Automatically link printsupport plugins to static applications. Add the required printsupport plugins to the QTPLUGIN variable as is done for the QPA plugin. [ChangeLog][QtPrintSupport] Made the Qt buildsystem automatically include the necessary plugins so that static applications can print. Task-number: QTBUG-29663 Change-Id: I0e2e3b0f25dd5714bd187711c85893926b0c4e85 Reviewed-by: Thiago Macieira --- tools/configure/configureapp.cpp | 14 +++++++++++--- tools/configure/configureapp.h | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index e04bd57b7f..868acc7b90 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -3291,8 +3291,10 @@ void Configure::generateQConfigPri() if (!dictionary["QT_NAMESPACE"].isEmpty()) configStream << "#namespaces" << endl << "QT_NAMESPACE = " << dictionary["QT_NAMESPACE"] << endl; - if (dictionary[ "SHARED" ] == "no") - configStream << "QT_DEFAULT_QPA_PLUGIN = q" << qpaPlatformName() << endl; + if (dictionary[ "SHARED" ] == "no") { + configStream << "QT_DEFAULT_QPA_PLUGIN = q" << qpaPlatformName() << endl + << "QT_DEFAULT_PRINTSUPPORTPLUGIN = " << qpaPrintSupportPluginName() << endl; + } if (!configStream.flush()) dictionary[ "DONE" ] = "error"; @@ -3474,7 +3476,8 @@ void Configure::generateConfigfiles() for (int i = 0; i < qconfigList.count(); ++i) tmpStream << addDefine(qconfigList.at(i)); - tmpStream<<"#define QT_QPA_DEFAULT_PLATFORM_NAME \"" << qpaPlatformName() << "\""<