Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-02-27 10:53:17

Vladimir Prus <ghost_at_[hidden]> writes:

> David Abrahams wrote:
>> I was just reading through boost_build_v2.html, and even though I was
>> in on the design of these features, I've forgotten a lot, so I here
>> are my remarks:
>> 1. target/Project IDs are mentioned without any introduction. Some
>> introductory description needs to be written. I'd do it, but I'm
>> not clear on the concepts anymore ;-S
> I'll do this later today, offline.

Done yet? ;-) (no rush).

>> 2. The example shows:
>> use-project /lib1 : lib/lib1 ;
>> exe app : app.cpp @/lib1/lib1 ;
>> What's the meaning of the initial slash?
> It means that /lib1 is global project id.
>> What would it mean if I wrote:
>> use-project lib1 : lib/lib1 ;
>> exe app : app.cpp @lib/lib1 ;
> In theory, this should declare local project id.

Is that relative to the root of the current project, or something
else? What's the scope of this name? IOW, in which Jamfiles can I
use the name @lib/lib1 and have it mean the same thing as it does

> In practice, this is not
> supposed to work.

I don't understand what you mean. If you'd said "in practice, this
doesn't work" it would make sense to me. What's "supposed to
work" usually corresponds to what "should happen in theory."

>> 3. What's the scope of these target IDs? Suppose two different
>> projects do "use-project /lib1"?
> Since they try to declare /lib1, which is global project-id, they better
> associate it with the same Jamfile.

We had some discussion of local project renaming at one point, didn't
we? The idea, IIRC, was to have some kind of backdoor for dealing
with conflicts at the top level, and possibly for dealing with
different versions of the same project.

Dave Abrahams
Boost Consulting

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at