Boost logo

Boost-Build :

Subject: Re: [Boost-build] multiple generated targets from a single source file
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2012-04-03 11:24:21


On Tue, Apr 3, 2012 at 10:19 AM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
>
> 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 ]
> ;

You can also do:

lib shared:
  foo.compil/<compile-type>main
  foo.compil/<compile-type>partial ;

But that's theoretical in that I don't know if you will get duplicate
source errors by having the same source with different variants.

--
--
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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