qmake: added WinRT and WinPhone configuration switch

qmakespec for either WinRT or WinPhone have to specify
QMAKE_PLATFORM with winrt and/or winphone.

Change-Id: Iea88277d6d9e019d43cf5c46a0c0d13971297bf6
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
qmake: added VCPROJ_ARCH variable.

It's a generic way to configure the Visual Studio Solution
architecture. It's added to support different project
architectures, ARM specifically. It may be a good idea
to replace the Win32 and x64 with VCPROJ_ARCH=Win32
and VCPROJ_ARCH=x64 defined in corresponding qmakespecs.

Change-Id: Idf34a198dcfb58b9f42a6bb0ecde4da9382882fe
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
qmake: enable default reference for all winphone targets

The change adds a new ItemGroup with a single library reference:
platform.winmd.

Change-Id: Iaffb7009c9928e1c5bbf3fd3e3ecffdf2e3111c0
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Use correct toolset version for winphone builds

Change-Id: I3b74d7b439b6abb8682854cc7756fffbe76ee216
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
qmake: added CompileAsWinRT switch to the VCCLCompilerTool (the cl /ZW option)

Change-Id: Ia84ebbf43983782d700cc613b1884ab1258f5fad
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
qmake: added support for WindowsMetadataFile

In order to be able to use the linker's /WINMD
and /WINMDFILE options

Change-Id: I025a499d29930fff59c757919e525680ffcfa7ef
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
qmake: added file deployment support for winrt and winphone targets

The user needs to specify the DEPLOYMENT variable. The syntax
is the same as previously used for DEPLOYMENT. For more info
please refer to the qmake documentation. The change adds
a new itemgroup, "Deployment Files". All files in this
itemgroup are marked as DeploymentContent and are then
packaged with the application either as XAP or the WinRT
specific file format.

Change-Id: I4e92020c068ae31c6ed4fd8f60f0cea122ab3fd2
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
qmake: added WMAppManifest generation for winphone target

Platform specific qmakespec needs to enable: autogen_wmappmanifest and winphone. Manifest will be generated once and only for the application template.

The Manifest will generated from following variables:
* PRODUCTID - the GUID (application specific)
* PUBLISHERID - GUID (publisher specific)
* TARGET - short application name (executable)
* AUTHOR
* PUBLISHER
* DESCRIPTION - application description

Change-Id: I27a60fc96c6957120b00724fa1e422f154110cfa
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Create clean makefiles for winrt builds

Change-Id: I5ed4cf20ed4479119a2ab36ce3164fcd9507434f
build system support for WinRT

Done-With: Andrew Knight
Done-With: Oswald Buddenhagen

Change-Id: I6508fc649723f2f1ffe276535f172dd6087ccc13
winrt global basics

Change-Id: I74f90b52760e9239e0bd8c9fc570e7a719d1c46e
add fake environment for winrt

Change-Id: I74d77955eb2bae2d780a7f7b483d4bd766fdd6b4
call winrt WSAStartup/WSACleanup

Change-Id: I7159052c1e6cf0d5bd0e7233bcfad4828a591ea0
Initial cmdline argument support for winrt

Change-Id: I454d7737cf7e59b8e13e4752f3e7f89690a9e9a4
winmain for winrt

WinRT passes the executable and Appx server info to the CRT main, and
supports several additional activation arguments as well. This handles the
arguments passed to main as well as the case where a modern app is
launched from an external application (e.g. Qt Creator).

Finally, the current (.) directory is added to applicationLibPaths for
WinRT because the application directory is not an effective library search
path while the releative path is.

Task-number: QTBUG-30198
Change-Id: Ib4f9eddba9ac5f05d8681d756f3fc9dd41aa57b1
Done-with: Kamil Trzcinski
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
fix build of widgets for winrt

Change-Id: I6dc7d160078c0da343d6d39d2a0d52112c6f9f59
threading support for winrt

Change-Id: Ife296e15ddf727c3f53ab3d3d84634b5c7bbf85c
Done-with: Maurice Kalinowski
fontdatabase: when font fname starts with ':' read all and passthru to addTTFile

The change is required to allow fonts to be read from resource files.

Change-Id: I8164729411e899b61b3528c06ad900968dcce9cd
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
libpng: fix missing ExitProcess() use abort() instead

Change-Id: I99ca5636d03c39b0a05b7f75f13522d012fdec07
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Fixed sqlite build for WinRT

Change-Id: Idf5bfa8b55e8d7db46207e55de1e9176def503a6
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>