2011-04-27 10:05:43 +00:00
|
|
|
CONFIG -= console
|
2016-06-27 14:21:25 +00:00
|
|
|
QMAKE_LFLAGS += $$QMAKE_LFLAGS_WINDOWS
|
2014-10-02 13:11:18 +00:00
|
|
|
contains(TEMPLATE, ".*app") {
|
|
|
|
QMAKE_LFLAGS += $$QMAKE_LFLAGS_EXE
|
2014-01-08 13:12:17 +00:00
|
|
|
mingw:DEFINES += QT_NEEDS_QMAIN
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
qt:for(entryLib, $$list($$unique(QMAKE_LIBS_QT_ENTRY))) {
|
2016-01-06 12:01:22 +00:00
|
|
|
isEqual(entryLib, -lqtmain) {
|
2018-12-19 11:46:52 +00:00
|
|
|
lib = $$QT.core.libs/$${QMAKE_PREFIX_STATICLIB}qtmain$$QT_LIBINFIX$$qtPlatformTargetSuffix().$$QMAKE_EXTENSION_STATICLIB
|
|
|
|
PRE_TARGETDEPS += $$lib
|
|
|
|
QMAKE_LIBS += $$lib
|
2011-04-27 10:05:43 +00:00
|
|
|
} else {
|
|
|
|
QMAKE_LIBS += $${entryLib}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|