Boost logo

Boost-Build :

Subject: [Boost-build] Feature does not create folder
From: Templie Cédric (cedric.templie_at_[hidden])
Date: 2008-12-10 09:35:24


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 ;

#Feature usage (either in project or target requirements)
<domain>$(DOMAIN) <cryptoengine>$(CRYPTOGRAPHY_ENGINE)

I though that folders would be created using features, but it is not the
case.

What have I done wrong ?

Thanks in advance for answers.


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