Boost logo

Boost-Build :

Subject: Re: [Boost-build] Cannot add dependencies to alias
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2011-04-15 14:12:59


Could you recommend a way to add dependencies based on the contents of a file as it appears that you are saying that it is not possible with scanners to do this. I would like to support a target that will be built using a number of toolset derived from the contents of a C file. I have this so far:

alias type1 : toolset1 ;
alias type2 : toolset2 ;
alias type3 : toolset1 toolset 2 ;
alias type4 : toolset3 toolset 4 ;

alias toolset1 : <toolset>toolset1 ;
alias toolset2 : <toolset>toolset2 ;
alias toolset3 : <toolset>toolset3 ;
alias toolset4 : <toolset>toolset4 ;

alias build_required_toolsets : dynamically_selected_target ;

where dynamically_selected_target should be one of type1, type2, type3, type4 based upon a regex of the contents of a C file. I have tried doing this with a scanner and got stuck per below.



-----Original Message-----
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Steven Watanabe
Sent: Friday, April 15, 2011 10:55 AM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Cannot add dependencies to alias

Hash: SHA1


On 04/15/2011 08:51 AM, Nogradi, Chris wrote:
> I am trying to add a dependency to an alias from within a scanner's process rule but it is not doing anything. I tried the following simple example to verify the ability to add a dependency to a alias after it is declared but can't even get it to work:

> lib test : test.c ;
> alias t ;
> DEPENDS t : test ;
>> bjam.exe t
> ...found 1 target...
> What am I doing wrong?

t is a main target. DEPENDS (and scanners)
work with Jam level targets. i.e. you
can't do this.

In Christ,
Steven Watanabe
Version: GnuPG v1.4.11 (GNU/Linux)

Unsubscribe & other changes:

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.

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