From 343f559bc7dd345ff8b03ddc8695bfe124310f6b Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Tue, 16 Oct 2012 16:01:51 -0300 Subject: Support other platform names on configure.exe Added three new methods, which are meant to be used internally to configureapp.cpp: - int platform(): returns an integer representing a platform - QString platformName(): returns the platform name string to be used when displaying the license agreement. - QString qpaPlatformName(): returns the value to be defined as QT_QPA_DEFAULT_PLATFORM_NAME. Currently supported names are Windows, Windows CE, QNX, Blackberry, and Symbian*. Default platform name is "Windows". * Symbian is not present on the original Qt5 patch. Symbian is not supported on Qt5. cherry-picked from qt5 b87c5cff24229b1bcc77ac68699f2f03acabc9e7 Change-Id: I6a97e00d59cce36804c857aa57c5754a2f6277db Reviewed-by: Thiago Macieira Reviewed-by: Oswald Buddenhagen --- tools/configure/configureapp.cpp | 72 +++++++++++++++++++++++++++++++++++----- tools/configure/configureapp.h | 5 +++ 2 files changed, 68 insertions(+), 9 deletions(-) diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 21131b6..80dacb3 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -62,6 +62,14 @@ QT_BEGIN_NAMESPACE +enum Platforms { + WINDOWS, + WINDOWS_CE, + QNX, + BLACKBERRY, + SYMBIAN +}; + std::ostream &operator<<(std::ostream &s, const QString &val) { s << val.toLocal8Bit().data(); return s; @@ -3543,6 +3551,9 @@ void Configure::generateConfigfiles() if (dictionary[ "QT_SXE" ] == "no") tmpStream<<"#define QT_NO_SXE"< dictionary; -- cgit v0.12