qt5base-lts/tools/configure
Girish Ramakrishnan 0074cc5d34 Fix detection of default platform plugin.
Let configure generate the QT_QPA_DEFAULT_PLATFORM_NAME in
qconfig.h. This allows us to override the platform name
using a configure argument.

This commit adds -qpa <platform> that lets the user specify
the default platform at configure time. Note that the default
platform is not checked against the tree since plugins are
allowed to exist outside the Qt source tree.

In the absence of -qpa argument, configure checks the mkspec
for a variable named QT_QPA_DEFAULT_PLATFORM. This check is
implemented only in the unix configure because it will be primarily
used in custom mkspecs (devices, boards).

If -qpa argument is absent and the mkspec variable is absent,
the default value is determined based on the OS as below:
    Unix - "xcb"
    Windows - "windows"
    Mac - "cocoa"
    QNX - "qnx"

Done-with: Jørgen Lind

Change-Id: I0df31811a1b901a3242bfada1232e596ebda04f4
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
2012-04-19 16:40:29 +02:00
..
configure_pch.h QHash security fix (1/2): add global QHash seed 2012-04-03 19:12:13 +02:00
configure.pro Remove -DQT_NO_STL from the bootstrapped builds 2012-04-07 05:19:56 +02:00
configureapp.cpp Fix detection of default platform plugin. 2012-04-19 16:40:29 +02:00
configureapp.h Sync configure with Unix version (-make/-nomake) 2012-03-27 03:36:30 +02:00
environment.cpp Remove -arch argument and #define QT_ARCH from configures 2012-03-13 12:27:44 +01:00
environment.h Remove -arch argument and #define QT_ARCH from configures 2012-03-13 12:27:44 +01:00
main.cpp Remove -arch argument and #define QT_ARCH from configures 2012-03-13 12:27:44 +01:00
Makefile.mingw Remove -DQT_NO_STL from the bootstrapped builds 2012-04-07 05:19:56 +02:00
Makefile.win32 Remove -DQT_NO_STL from the bootstrapped builds 2012-04-07 05:19:56 +02:00
tools.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
tools.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00