[Patch] Qmake project manager Qt module include paths

Sean Harmer sean.harmer at maps-technology.com
Thu Apr 9 16:34:24 UTC 2009


Hmmm, not sure why my first email never arrived. Here is the missing text from 
it:

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.

On Thursday 09 April 2009 17:26:18 Sean Harmer wrote:
> Hi,
>
> On Thursday 09 April 2009 14:22:26 Sean Harmer wrote:
> > Could somebody please review the patch please?
>
> I have improved the patch a little more so that it now also resolves
> environment variables in the INCLUDEPATH qmake variable. Updated patch
> attached for review.
>
> Cheers,
>
> Sean





More information about the KDevelop-devel mailing list