Boost logo

Boost-Build :

From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2008-04-29 06:52:59


   Hi Xavier.

> lib A
> :
> A.cpp
> : :
> : <include>. ;
>
> lib B
> :
> B.cpp
> : :
> : <include>. ;
>
>
> alias libAB
> :
> .//A
> .//B
> : ;
>
>
> exe program : program.cpp libAB ;
> ------------------
>
> With this configuration I can generate "program" dynamically and
> statically with the libraries A,B.
>
> But I would like to have also the possibility to generate a dynamic
> program linked dynamically to libAB (only this library).
>
> Is there some way to do it without create a lib instance repeating the
> sources from A and B?

   I am not sure I understand the question...

   As I see it ... there is no 'library libAB' in the above
definition... You have libraries A & B and an alias libAB. And your
alias is simply a shorthand for referencing libraries A & B together as
well as adding some sort of a <include> requirement property.

   So what do you want to do? Repackage libraries A & B into a single
library containing everything from A & B?

   Whatever the case is... try getting the behaviour you need
duplicating whatever it takes... and then ask yourself (or this list)
how to remove the duplication. Working code will be a much better
explanation of what you want it to do...

   Hope this helps.

   Best regards,
     Jurko Gospodnetić


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