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) {
|
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}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|