|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-09-30 12:41:54
On Monday 25 September 2006 12:40, Michael Krasnyk wrote:
> Bojan Resnik wrote:
> > You could use the <conditional> feature to add requirements
> >dynamically. More information about this feature can be found at
>
> Thanks, it works for me.
>
> But one more question. Is it possible
> to use some "global" properties and initialize global path variable, like
> path-constant STAGE_DIR : $(stage-locate) ;
I don't quite understand this question. Do you want 'stage-locate' to be
dynamically computed? No, that's no possible:
http://boost.org/boost-build2/doc/html/bbv2/faq.html#id2579924
> I need it, because in subprojects the variable is used as:
> install stage
>
> : $(lang)
> : <location>$(STAGE_DIR)/locale/$(lang)/LC_MESSAGES
>
> <name>bar.mo
> ;
Again, you can use conditional requirements. To avoid duplicating those
requirements everywhere, you can either use project requirements, or new main
target rule 'my-stage' that does that:
http://boost.org/boost-build2/doc/html/bbv2/extending/rules.html
HTH,
Volodya
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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