From b87c5cff24229b1bcc77ac68699f2f03acabc9e7 Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Fri, 8 Jun 2012 15:20:35 +0200 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 and Blackberry. Default is "Windows". Change-Id: Ifa4d1b9c02cda956be9becdf8db195d3d494f1d5 Reviewed-by: Oswald Buddenhagen --- tools/configure/configureapp.cpp | 61 ++++++++++++++++++++++++++++++++++++---- tools/configure/configureapp.h | 5 ++++ 2 files changed, 60 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 8c06a158cf..5a24e9b266 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -64,6 +64,13 @@ QT_BEGIN_NAMESPACE +enum Platforms { + WINDOWS, + WINDOWS_CE, + QNX, + BLACKBERRY +}; + std::ostream &operator<<(std::ostream &s, const QString &val) { s << val.toLocal8Bit().data(); return s; @@ -2961,7 +2968,7 @@ void Configure::generateConfigfiles() if (dictionary[ "QT_SXE" ] == "no") tmpStream<<"#define QT_NO_SXE"< dictionary; -- cgit v1.2.3