compile fix for WinRT

WinRT does not use IDs anymore for locale related items. Instead
constant strings are preferred.

Change-Id: Iac6f7571d6388bb0a87feb9c191c20350c857703
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
WinRT related locale changes

Emulate GetLocaleInfo for a WinRT build and use locale strings in case
no ID is specified.

Change-Id: I01a9918121d26e25ff2ac7802dc98d9712b5a35a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
WinRT related locale changes

Change-Id: If4014e66349c90395466d4ddc8078a2b9bf651a5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Replace with successor function on WinRT

Change-Id: I8d8d90034363d6e39f8bf6ee33250e11a28415c0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
compile fix for WinRT

- WinRT does not have LoadLibrary, instead uses LoadPackagedLibrary to
 load something from within the app bundle.
- Loading external libraries is not allowed. Hence QSystemLibrary does
 not make sense on this platform.

Change-Id: I71e89651a9c0695ca9caf6a001c3856192167c36
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
use successor functions for WinRT

qsettings_win need to be updated still or most likely be rewritten for
WinRT as accessing the registry is not allowed anymore.

Change-Id: I905407685d56fe579bea89b727632a5bfa2f8eb9
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
WinRT cannot handle library loading outside application bundle.

Change-Id: I575eebfb4a478633e45a306b52e1dc620180e2cd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
winrt specific updates

Thread priority management is not possible as there are not threads.

Change-Id: I77e2e1064aaa963a0abf811ef676759e9c037784
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Use standard functions on WinRT

CreateFile and friends do not exist on WinRT. Instead of using the
asynchronous version, use the standard c versions for now.

Change-Id: I70810edf801ef43c5aacf1d4526bad528fb34e3b
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
use a static array on WinRT

store apps cannot allocate buffers inside FormatMessage, also LocalFree
is not available. Hence you must provide a fixed buffer already to
FormatMessage. Size seems a bit arbitrary but describes what most people
use apparently.

Change-Id: I6b91d5f3fc1aa7bdc7f4f63c4b9642d154aa51df
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Initial mkspec and platform detection for WinRT

This establishes a foundation for a WinRT mkspec, along with notes
on which directives need to be enabled/disabled as unsupported Windows API
codepaths are removed/replaced.

The following configuration was compiled using MSVC 2012. Note that this
is a cross-compile because the tools themselves should use the normal
win32-msvc2012 mkspec:
.\configure -developer-build -xplatform winrt-msvc2012
 -no-widgets -no-accessibility -no-opengl -no-sql-sqlite
 -no-rtti -opensource -confirm-license -nomake tests -nomake demos
 -nomake examples -no-qml-debug

Change-Id: I2827c9996e7bd5d434bf8fd596b376c9f206f02a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Updated winmain for use in WinRT

Adds a WinRT application launcher to winmain.
Note the use of hard-coded command line paramaters. This should be fixed,
but it may also be necessary to give a default platform name and path
elsewhere.

Change-Id: Ic754964214f88590ba0bd305977d2da948e595a7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Fixed paths in winrt mkspec

Change-Id: I0834cb863c11229271f5a2fdb2f3fe67f66aaa7b
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
temporarily disable JIT allocation

Executable VirtualAlloc is not allowed in WinRT. I have no idea, if pcre
allows a non jit version. That would be the preferred solution. For now,
disable the allocation and let it fail.

Change-Id: I2c53235e318b8ae275ae4da170d3826a6e296c52
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Windows RT and Windows Phone preliminary support

Change-Id: I4352629a3f40da65df6038a46fad415d808d6db3
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
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>
pcre: comment out missing methods

winrt doesn't support:
* VirtualAlloc, VirtualFree, GetSystemInfo
* replace CreateMutex with CreateEventEx

Change-Id: I43358e0f78a555a4767bc8117af050023564d0af
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Unbreak build on non Windows platforms

Revert "core: fix qwineventnotifier.h moc compiler"

This reverts commit 8e2af3d92a40f3807ce9c56c75860c0490f448d2

Change-Id: I6b3562be06f3a9486978082f14da749d5ab6a149
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Removed hard coded path

Change-Id: I4e5d233d871820533752d39ca045618b5b3f3afd
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Use proper condition instead of duplicate code in qt.prf

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