From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2006-10-11 18:56:05
On Oct 11, 2006, at 8:39 AM, Rene Rivera wrote:
> Vladimir Prus wrote:
>> On Wednesday 11 October 2006 01:23, K. Noel Belcourt wrote:
>>> and header
>>> files necessary to build a target?
>> No, since header scanning is done only when building targets.
> Hm, it might still be possible. It would be possible to collect all
> header scans in a target variable and have that target do the copy of
> all the files in that var. It would require writing your own
> target, and
> action to do the copy.
Okay, I think I see how this works and it seems reasonable. If the
user wants a distribution, the rule's action copies the source but
doesn't build anything. If the user doesn't ask for a distribution,
then the rule could just forward to the standard exe and lib rules
and build the requested targets.
> It would be tricky to get that working correctly. Although I did
> somewhat more nasty things with the first implementation of the --help
> code which shanghaied the header scanning to parse the jam files for
> help comments :-)
I wondered how that worked? I found that documentation in my Jamroot
was ignored so I created a Jamfile.v2, put the documentation in there
and mysteriously, bjam picked it up and outputs it before the rest of
the help text.
Anyway, thanks for making that work.
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