From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-31 12:03:52
----- Original Message -----
From: "Rene Rivera" <grafik666_at_[hidden]>
Sent: Sunday, March 31, 2002 11:52 AM
Subject: Re: [jamboost] Boost.Build V2, load behaviour part 2.
> On 2002-03-31 at 08:46 AM, david.abrahams_at_[hidden] (David Abrahams)
> >----- Original Message -----
> >From: "Rene Rivera" <grafik666_at_[hidden]>
> >> On 2002-03-30 at 09:21 PM, david.abrahams_at_[hidden] (David Abrahams)
> >> >Question: what is a "module-tag" supposed to be?
> >> It's the tag to use to identify the module as being loaded or not.
> >> "load-tag" is better? Any suggestions welcome :-)
> >Why can't it always be derived from the module-name? Every module
> >have a unique identifier anyway. I'm sure you have a reason, but
> >spell it out...
> To be specific, I need to call load to load the Jamfiles, but they
need to be
> in the module of the project-root...
Do they? What are the negative implications of doing otherwise? One
thing I see, which I rather like, is that even in large projects each
subproject would have its own variable namespace.
> modules.load <project-root-module> : <Jamfile> : <some-jamfile-dir> :
> <some-jamfile-dir>/<Jamfile> ;
> So it will include the Jamfile inside the <project-root-module> but
> <some-jamfile-dir>/<Jamfile> to decide wether it's been loaded already
> Maybe a name closer to C++ might help, how about "module-key"?
Naw, tag is fine, but it has nothing to do with the module. It is a file
identifier. Why don't you just derive that directly from the file (with
perhaps a little path normalization/simplification?)
> >> Question, is there a way to get the argument template of a rule?
> >I could
> >> print it as part of a rule's doc.
> >HDDRULE, HDRSCAN, baby. I'm telling you, doing doc dumps as build
> >actions has lots of advantages. You could even extract doc from
> >blocks, so there's no issue with interpretation of $() or
> >(though I guess strings work pretty well in Jam).
> :-) ... but you can't handle --help* with HD* ;-\
You just need to write an action which dumps the help, right?
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