Boost logo

Boost-Build :

Subject: Re: [Boost-build] Most efficient way to alter staging path by variant
From: Jim Gallagher (jim_at_[hidden])
Date: 2008-09-24 11:55:19


I figured it out (I think):

rule my-rule ( properties * )
{
        local result ;
        if <variant>Foo32 in $(properties)
        {
                result += <location>$(STAGE)/$(HOST_OS)/Foo32/lib ;
    }

        if <variant>Bar32 in $(properties)
        {
                result += <location>$(STAGE)/$(HOST_OS)/Bar32/lib ;
    }

etc...

        return $(result) ;
}
        
install stage-proper
        : mylib
        : <conditional>@my-rule
;

Jim


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