|
Boost-Build : |
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2006-05-08 22:38:10
On 5/8/06, Rene Rivera <grafik.list_at_[hidden]> wrote:
> Felipe Magno de Almeida wrote:
> > Hello,
> >
> > Could anyone give me any insights about how bjam calculates file dependencies?
>
> I'm not sure what aspect of the dependency creation you want to know
> about. At the most basic level it uses a regular expression to search
> through the source files, recursively, and calls the preregistered
> scanner rule with the results.
Is this process cached or redone in every bjam invocation?
> > I would like to think a little more about using wave for dependency calculation.
> > I was thinking about caching too, but it doesnt seem feasible to cache
> > preprocessing with third-party preprocessors. Am I right?
> > It would be possible using wave or more possibly a tweaked version of
> > wave, that would integrate a preprocessing cache database for lookup
> > in include'd statements.
>
> I don't think using an "external" dependency generator is the right way
> to go. That is what make does with the usual "makedepend" targets and
> it's just terribly limiting. I hope this is not what you are thinking of.
I never used makedepend, but what are the issues?
I was thinking more like a gcc -MM thing, but more portable, and
possibly with dependency caching. It should really decrease built
times for incremental compiling I guess. Which seems usually big
nowadays.
> --
> -- Grafik - Don't Assume Anything
> -- Redshift Software, Inc. - http://redshift-software.com
> -- rrivera/acm.org - grafik/redshift-software.com
> -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
Thanks,
-- Felipe Magno de Almeida
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk