Boost logo

Boost-Build :

Subject: Re: [Boost-build] Feature does not create folder
From: Gavin Ridgway (ridgway_at_[hidden])
Date: 2008-12-10 11:35:42


Templie Cédric wrote:
> Hello,
>
> I have been using Boost Build system for 4 years, and I am very happy
> with the system.
>
> Today in my source tree, some projects need to be built with different
> source files. Typically public keys that depend on a domain and a
> cryptography engine.
>
> In order to choose the desired domain and cryptography engine, I use
> variables DOMAIN and CRYPTOGRAPHY_ENGINE given to the build system using
> -s option of bjam.
>
> In my jamfile I have:
> local domainCryptoFiles = [ glob
> ./$(DOMAIN)/$(CRYPTOGRAPHY_ENGINE)/*.cpp ] ;
>
> This works quite fine, even if it is maybe not the optimized solution
> (BTW if another, better way to proceed exists, I will be glad to know :))
>
> My problem is when I decide to build for 2 Domains, one after the other,
> the results are simply overwritten in build path
> (msvc-8.0/release/threading-multi)
>
> In order to overcome that problem, I have tried to use features like that:
>
> # Feature declaration
> feature domain : Domain1 Domain2 ;
> feature cryptoengine : Crypto1 Crypto2 ;
>
We had a need for something similar to this. I found that marking the
feature like the following adds an output directory named with the
feature name:

feature domain : Domain1 Domain2 : implicit propagated link-incompatible ;

feature cryptoengine : Crypto1 Crypto2 : implicit propagated link-incompatible ;

This seems to work OK with 'bjam' 3.1.16.

Cheers,

Gavin


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