[Patch] Qmake project manager Qt module include paths

Sean Harmer sean.harmer at maps-technology.com
Thu Apr 9 13:22:26 UTC 2009


Hi All,

This is my first post to this list. 

I have been trying to use kdevelop trunk with some of our work projects which 
use the qmake build manager and I was forever getting problems reported about 
the preprocessor not being able to resolve Qt #includes. 

Upon investigation this turns out to be because the qmake manager was telling 
the preprocessor to add $$[QT_INSTALL_HEADERS] to the include search path but 
this variable is internal to qmake. However it can be resolved by calling 
qmake -query QT_INSTALL_HEADERS so that is what I have done in the attached 
patch.

Whilst in there I have also implemented the TODO which appends the various 
subdirs under QT_INSTALL_HEADERS depending upon which modules are specified 
via the CONFIG variable in the .pro file.

Could somebody please review the patch please?

Kind regards,

Sean

ps Great work on the autocompletion BTW.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt-module-include-paths.patch
Type: text/x-patch
Size: 4595 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090409/bddd9678/attachment.patch>


More information about the KDevelop-devel mailing list