[RFC] Suport for distcc, icecream and ccche

Andreas Pakulat apaku at gmx.de
Thu Jan 25 16:01:12 UTC 2007


On 25.01.07 14:50:28, Christian Schneider wrote:
> Am Dienstag, den 23.01.2007, 01:26 +0100 schrieb Andreas Pakulat:
> > As a short followup, what you want to do can be done more easily and
> > without changing any code.
> > 
> > Look at the .desktop files in languages/cpp/compiler/gccoptions. By
> > adding a couple of new .desktop files for icecream-gcc,
> > ccache-distcc-gcc and distcc-gcc with apropriate Exec values in them the
> > user can choose the combinations from the drop-down list on the
> > configure options page.
> 
> This is a cool feature. Could we have something similar for the QMake
> build-system too?

No. 

> Currently, I set QMAKE_CXX, QMAKE_LINK and
> QMAKE_LINK_SHLIB as custom variables to achieve the same effect, but a
> drop-down list with predefined compilers is more elegant. For example, I
> need to change the vars by hand when I work at a different computer with
> different compilers, or when compiling the project under Windows.

Well thats what scope's are for. If you're using qmake from Qt4 it
solves all your problems. Add a scope for each machine you need to
change the variables. Set the variables in each scope apropriately. Now
all you need to do is change the lineedit with custom config values in
the subproject settings dialog. Or to use it globally stuff a line like

CONFIG += <scope>

into .qmake.cache and put the file into the top-level project.

And if you use a versioning system, make it ignore the .qmake.cache and
instead add a template to the version control system. Then on a new
machine checkout the project, rename the template change the scope and
be happy. 

Andreas

-- 
Truth will out this morning.  (Which may really mess things up.)




More information about the KDevelop-devel mailing list