Boost logo

Boost-Build :

Subject: [Boost-build] lib rule, could <name> requirment be conditional?
From: Dmitry Timoshenko (dimentiy2k_at_[hidden])
Date: 2010-03-03 20:24:28


Hello.

I wanted to ask. Is it possible to write something like this in order to
use different library names depending on e.g. <target-os>?

lib xercesc
                :
                : <target-os>windows:<name>xerces-c_2D
                  <target-os>linux:<name>xerces-c
                        <search>$(XERCESC_ROOT)lib
                        <variant>debug
                :
                : <include>$(XERCESC_ROOT)include
                ;

When I had tried to do this, I got an __init__ rule argument error.

Thank you.


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