don't use qt_module_config for winmain

it is not really a Qt module, and pretending causes some messups.

Change-Id: Id0980f7c00d6d176dd4937f8b265b8b571aa1277
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
Oswald Buddenhagen 2012-04-13 17:46:42 +02:00
parent 0b76b7ab8a
commit 0b37ec3321

View File

@ -1,24 +1,32 @@
load(qt_module)
# Additional Qt project file for qtmain lib on Windows
TEMPLATE = lib
TARGET = qtmain
QT =
CONFIG += staticlib warn_on
CONFIG -= qt shared
win32 {
win32-msvc*:QMAKE_CFLAGS_DEBUG -= -Zi
win32-msvc*:QMAKE_CXXFLAGS_DEBUG -= -Zi
win32-msvc*:QMAKE_CFLAGS_DEBUG *= -Z7
win32-msvc*:QMAKE_CXXFLAGS_DEBUG *= -Z7
win32-g++*:DEFINES += QT_NEEDS_QMAIN
win32-borland:DEFINES += QT_NEEDS_QMAIN
SOURCES = qtmain_win.cpp
CONFIG += png
INCLUDEPATH += tmp $$QT.core.includes
}
!win32:error("$$_FILE_ is intended only for Windows!")
load(qt_module_config)
TEMPLATE = lib
TARGET = qtmain
DESTDIR = $$QT.core.libs
CONFIG += static warn_on depend_includepath
CONFIG -= fix_output_dirs
QT = # qt.prf is still needed for some DEFINES, etc.
contains(QT_CONFIG, build_all):CONFIG += build_all
win32-msvc*:QMAKE_CFLAGS_DEBUG -= -Zi
win32-msvc*:QMAKE_CXXFLAGS_DEBUG -= -Zi
win32-msvc*:QMAKE_CFLAGS_DEBUG *= -Z7
win32-msvc*:QMAKE_CXXFLAGS_DEBUG *= -Z7
win32-g++*|win32-borland:DEFINES += QT_NEEDS_QMAIN
INCLUDEPATH += $$QT.core.includes
SOURCES = qtmain_win.cpp
load(qt_installs)
TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end
load(qt_targets)
wince*:QMAKE_POST_LINK =