2011-04-27 10:05:43 +00:00
|
|
|
CONFIG -= console
|
2014-10-02 13:11:18 +00:00
|
|
|
QMAKE_LFLAGS += $$replace(QMAKE_LFLAGS_WINDOWS, @QMAKE_SUBSYSTEM_SUFFIX@, $$QMAKE_SUBSYSTEM_SUFFIX)
|
|
|
|
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))) {
|
|
|
|
isEqual(entryLib, -lqtmain): {
|
2014-04-29 17:24:00 +00:00
|
|
|
!contains(QMAKE_DEFAULT_LIBDIRS, $$QT.core.libs): \
|
|
|
|
QMAKE_LIBS += -L$$QT.core.libs
|
2011-04-27 10:05:43 +00:00
|
|
|
CONFIG(debug, debug|release): QMAKE_LIBS += $${entryLib}$${QT_LIBINFIX}d
|
|
|
|
else: QMAKE_LIBS += $${entryLib}$${QT_LIBINFIX}
|
|
|
|
} else {
|
|
|
|
QMAKE_LIBS += $${entryLib}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|