summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/win32/windows.prf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/features/win32/windows.prf')
-rw-r--r--mkspecs/features/win32/windows.prf15
1 files changed, 15 insertions, 0 deletions
diff --git a/mkspecs/features/win32/windows.prf b/mkspecs/features/win32/windows.prf
new file mode 100644
index 0000000..f037c1a
--- /dev/null
+++ b/mkspecs/features/win32/windows.prf
@@ -0,0 +1,15 @@
+CONFIG -= console
+contains(TEMPLATE, ".*app"){
+ QMAKE_LFLAGS += $$QMAKE_LFLAGS_WINDOWS
+ win32-g++:DEFINES += QT_NEEDS_QMAIN
+ win32-borland:DEFINES += QT_NEEDS_QMAIN
+
+ qt:for(entryLib, $$list($$unique(QMAKE_LIBS_QT_ENTRY))) {
+ isEqual(entryLib, -lqtmain): {
+ CONFIG(debug, debug|release): QMAKE_LIBS += $${entryLib}d
+ else: QMAKE_LIBS += $${entryLib}
+ } else {
+ QMAKE_LIBS += $${entryLib}
+ }
+ }
+}