summaryrefslogtreecommitdiffstats
path: root/src/winmain/winmain.pro
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2013-09-12 23:18:26 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-14 15:42:24 +0200
commitf6e6dde369be8428b074c7135096b73248bdc8ae (patch)
tree6bd2803dbf82973f0e37e7aa4abdf541dca265ee /src/winmain/winmain.pro
parent384ca58e33eb1406243b7fece57ff01bd9675779 (diff)
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). Task-number: QTBUG-30198 Change-Id: Ia843e98c7843d5705f5f6d1c809de0b6bcdb5d26 Done-with: Kamil Trzcinski Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'src/winmain/winmain.pro')
-rw-r--r--src/winmain/winmain.pro7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/winmain/winmain.pro b/src/winmain/winmain.pro
index b8c920b8e6..4303c3bc12 100644
--- a/src/winmain/winmain.pro
+++ b/src/winmain/winmain.pro
@@ -16,7 +16,12 @@ win32-msvc*:QMAKE_CFLAGS_DEBUG *= -Z7
win32-msvc*:QMAKE_CXXFLAGS_DEBUG *= -Z7
win32-g++*: DEFINES += QT_NEEDS_QMAIN
-SOURCES = qtmain_win.cpp
+winrt {
+ QMAKE_LFLAGS += /ENTRY:wmainCRTStartup
+ SOURCES = qtmain_winrt.cpp
+} else {
+ SOURCES = qtmain_win.cpp
+}
load(qt_installs)