Add QMAKESPEC_ORIGINAL to the INCLUDEPATH when needed

This commit is contained in:
Marius Storm-Olsen 2011-01-14 21:35:58 -06:00 committed by axis
parent 95137041ab
commit 56ec511c6a

View File

@ -11,6 +11,11 @@ win32 {
} }
contains(DEFINES, QT_MAKEDLL)|contains(DEFINES, QT_DLL):QMAKE_QT_DLL = 1 contains(DEFINES, QT_MAKEDLL)|contains(DEFINES, QT_DLL):QMAKE_QT_DLL = 1
} }
# Some files include qplatformdefs.h, which lives in the individual mkspec directory
# However, if QMAKESPEC_ORIGINAL is set, the module/app is outside of the QtBase
# directory, and using the default profile. So we add the original mkspecs directory
# to the include path
!isEmpty(QMAKESPEC_ORIGINAL):INCLUDEPATH += $$QMAKESPEC_ORIGINAL
} }
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG
no_keywords:DEFINES += QT_NO_KEYWORDS no_keywords:DEFINES += QT_NO_KEYWORDS