Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2002-07-08 14:09:08


>
> > 2. How Jam find what needs to be done to update the command?
>
> That question is totally unintelligible to me.
I meant update the target.

Would the following statement be correct:
Actions that were attached during parsing stage and have "the target" as
one of the argument will be executed during update stage to update this
target.

> > 5. Is there way to define an action but for internal use only, i.e. so
> that
> > user would not be able to invoke it?
>
> Use a funky name they'd never think of.

What about local rule syntax?

>
> > 6. Could somebody explain in simple words deal with "grist"?

bin
 +-proj_root
 | +-A
 | | +-Jamfile
 | +-B
 | | +-Jamfile

Let imagine that both A and B directories have a Jamfiles that defines
library my_lib that builds from my_source.cpp. Let say we are in the
directory A.

lib my_lib : my_source.cpp ;

What will bjam command line be to do a follwing tasks:

1. build debug version of my_lib that in a directory A
2. build debug version of my_lib that in a directory B
3. build spead optimazed version of my_source.o in a directory A

Would it be correct to say that:

1. Target names in dependancy tree does not coinside with the names user
specify in Jamfile. Instead they are gristed using following information:
subproject name, variant and subvariant. Also bjam during pasring stage adds
dependancy between user targets and real gristed targets.
2. Term main target means gristed user target
3. Gristed name for target that builds all size optimazed libraries in
subproject root/proj1/subproj2 would be:
<proj1!subproj2/optimization-size>lib

In source list we see <lib>some_lib. What is <lib> there? Grist? How jam
find real target name? What about requirenment syntax, is it also grists?

7. Let say:
X = a b c d ;
How many times the some-rule will be invoked here:

some-rule $(X)

Let define some-rule like this:

rule some-rule ( arg )
{
    return $(arg) ;
}

What will be the value of following expression:

[ some-rule $(X) ]

The same question by some-rule defined like this:

rule some-rule ( arg + )
{
    return $(arg[1]) ;
}

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk