Boost logo

Boost-Build :

From: Daniel Einspanjer (deinspanjer_at_[hidden])
Date: 2006-03-01 18:41:18

I'm still new to BBv2, but I think I can help point you the right way on
some of these questions:

"Kirill Lapshin" <kir_at_[hidden]> wrote in message
> I thought ok, fine I'll use path-constant!
> Problem -- I defined path-constant in Jamroot, but it is not visible in
> verbatim.jam.
> Fine, I'll hack my way for now and I moved all the code from
> verbatim.jam to Jamroot. That one sort of fixed the problem, except that
> build log looks a bit awkward (due to the fact that Jamroot's name
> consists of full path to the file), but that's a hack anyways, no big
> deal.
> First question: what is the proper fix for this problem?

I'm sorry, I don't have a ready answer. I know I've seen some testcases for
handling path constants in the boost-build/test directory, but I don't have
time tonight to dig them up. If you don't have an answer, I'll try to find
it tomorrow.
Just to make sure, you do know about making a rule with the same name as the
action to do BB logic (preparing variables and such) before the action
starts sending commands to the system, right?

> Second question: will lib rule pick up dependency on generated.hpp and
> realize that it has to regenerate it (if needed) before compiling
> util.cpp?

Just include this line to the requirements section of your lib util target.

> Third question: the whole setup currently does not work, because
> generated.hpp gets created in build directory, but that said directory
> is not added to includes when compiling util.cpp. What is the right way
> to fix that?

Implicit-dependency will fix that problem too.

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