Ensure that the mkspec and source dirs are passed to moc on Windows
Those paths need not be in INCLUDEPATH: qmake always adds them to the compiler command-line and we should match the behavior if we expand INCLUDEPATH here. Change-Id: I89508d15ac534b54ae873a42c4ad9764408042b5 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
3c375a76a1
commit
93a895a41a
@ -21,12 +21,12 @@ win32:count(INCLUDEPATH, 40, >) {
|
||||
EOC = $$escape_expand(\\r\\h)
|
||||
}
|
||||
|
||||
RET = @echo -I$$QMAKESPEC > $$WIN_INCLUDETEMP $$EOC
|
||||
RET += @echo -I$$_PRO_FILE_PWD_ >> $$WIN_INCLUDETEMP $$EOC
|
||||
unset(INCFILELIST)
|
||||
RET =
|
||||
for(incfile, INCLUDEPATH) {
|
||||
INCFILELIST = -I$$incfile
|
||||
isEmpty(RET): RET += @echo $$INCFILELIST> $$WIN_INCLUDETEMP $$EOC
|
||||
else: RET += @echo $$INCFILELIST>> $$WIN_INCLUDETEMP $$EOC
|
||||
RET += @echo $$INCFILELIST>> $$WIN_INCLUDETEMP $$EOC
|
||||
}
|
||||
!isEmpty(INCFILELIST):RET += @echo $$INCFILELIST>> $$WIN_INCLUDETEMP $$EOC
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user