Boost logo

Boost-Build :

Subject: Re: [Boost-build] multiple generated targets from a single source file
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-04-03 11:19:47


AMDG

On 04/02/2012 08:26 PM, George Georgiev wrote:
> Thank you Steven,
>
> This was helpful. There is only one think left.
>
> I would like to be able to mix generated sources from different types
> in the same library if possible. For example what I need to do now is:
>
> <snip>
>
> Is it possible some how I to be able to do (I tried this one it does not work):
>
> lib shared :
> <compil-type>main:foo.compil
> <compil-type>partial:foo.compil
> ;
>

I'm not sure why you would expect this to work.
This syntax is not documented anywhere. You
have to use an intermediate target:

lib shared :
  [ convert _ cpp : foo.compil : <compil-type>main ]
  [ convert _ cpp : foo.compil : <compil-type>partial ]
;

In Christ,
Steven Watanabe


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