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


Steve,

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.

Thanks,

Chris

-----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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AMDG

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJNqGpIAAoJEDTBQuhymLHSUlkH/j9Vwp5O9WThyjKhyqYGrhD8
lY3cTb293g2W9s4jPPoqvvm70xQOeIAYmR1/40dDo80ofJacipYsmo/WWNWzXdWQ
OCGwAujNpTiaRmW0yVlpXrZxtV3SWIFTXgkraGlgdInkDUinn/fQt0aF6mu0wBeR
pJ4APEk3PH9btr21bzFrEKKntHCyOXaARqCrvjF8Yp/6MH4sMBXYYEV51os5DiFD
ydZz3Pz50UVgkynPU0ExNuL9plb+VM9MdOzTCil9O1kpnLq5ZNBzDPLCgg/8/mTX
KUFoqc+wdXftcnMzWPilKbuKJWhIlxTeIGwwF3yvOLwq8uhCIN4kIMLDcqELZk0=
=aCfu
-----END PGP SIGNATURE-----
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk