|
Boost-Build : |
From: Frank Birbacher (bloodymir.crap_at_[hidden])
Date: 2008-05-09 20:05:36
Jurko GospodnetiÄ schrieb:
> I which case the duplication becomes more apparent but it can be
> reduced to the previous example by introducing 2 additional alias for
> library A and library B sources:
>
> alias libASources
> :
> A1.cpp
> A2.cpp
> A3.cpp ;
>
> alias libBSources
> :
> B1.cpp
> B2.cpp
> B3.cpp ;
>
> lib A
> :
> libASources
> : :
> : <include>. ;
>
> lib B
> :
> libBSources
> : :
> : <include>. ;
>
> lib AB
> :
> libASources
> libBSources
> : :
> : <include>. ;
>
> And duplication again goes back to minimum.
Ok, now I would reject this approach because:
Suppose the three libraries where defined in different Jamfiles which of
course are located in different directories. BJam will now compile all
of the sources twice: all of them to build libAB, half of them to build
libA, and the second half to build libB.
I would like to specify: compile *.cpp to *.obj instead of an "alias".
See my post "How to build project comprising of sources in different
dirs" from May 6th.
Regards,
Frank
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