278152fffd
Commit 773dd01
introduced a general mingw platform scope, which
is cleaner and more flexible than matching the spec name.
Change-Id: Ie3a9cb791a83f7c8a51bc4e23069190c452ab521
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
15 lines
466 B
Plaintext
15 lines
466 B
Plaintext
CONFIG -= console
|
|
contains(TEMPLATE, ".*app"){
|
|
QMAKE_LFLAGS += $$QMAKE_LFLAGS_WINDOWS $$QMAKE_LFLAGS_EXE
|
|
mingw:DEFINES += QT_NEEDS_QMAIN
|
|
|
|
qt:for(entryLib, $$list($$unique(QMAKE_LIBS_QT_ENTRY))) {
|
|
isEqual(entryLib, -lqtmain): {
|
|
CONFIG(debug, debug|release): QMAKE_LIBS += $${entryLib}$${QT_LIBINFIX}d
|
|
else: QMAKE_LIBS += $${entryLib}$${QT_LIBINFIX}
|
|
} else {
|
|
QMAKE_LIBS += $${entryLib}
|
|
}
|
|
}
|
|
}
|