Boost logo

Boost-Build :

From: rameysb (Ramey_at_[hidden])
Date: 2003-12-31 12:32:05


I'm building a library which has modules
that really only should be compiled for
configurations which support wide character
i/o. That is, these modules (and tests)
should really be built (and tests run)
if and only if the boost configiuration
macro BOOST_NO_STD_WSTREAMBUF is not
defined.

I've been unable to figure out how to do
this with bjam.

Ideally I would love to have te BOOST
configuration macros available as bjam
variables. However, it doesn't seem that
this is possible.

Another idea is to make a small test case which
fails if wide char i/o isn't available. However,
this would flunk the whole library. I suppose
I could divide the library into two pieces -
one dependent on wide char i/o and the other
not. I'd prefer not to do that but I'm sitll
considering it.

I've also looked at "unrolling" all the relevant
#defines in the configuration header files. This
looks too messy and would create a neverending
task for myself. (This what I'm currently doing)

can anyone give me a suggestion?

Robert Ramey

 


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