Boost logo

Boost-Build :

Subject: Re: [Boost-build] Different builds for XP and Vista/7
From: Artem Alimarine (brakoziabr_at_[hidden])
Date: 2011-04-14 22:43:23


On 13-4-2011 11:41, Juraj Ivančić wrote:
> lib foo_lib : foo_xp.cpp : <target-os-windows:flavor>xp ;
> lib foo_lib : foo_vista.cpp : <target-os-windows:flavor>vista ;

By the way, a feature fails in the same way as a subfeature.

feature.feature target-os-flavor : vista xp : composite optional ;
feature.compose <target-os-flavor>vista : <define>_WIN32_WINNT=0x0600 ;
feature.compose <target-os-flavor>xp : <define>_WIN32_WINNT=0x0501 ;

lib foo_lib
     : foo_xp.cpp
     : <target-os>windows
         <target-os-flavor>xp
     ;
lib foo_lib
     : foo_vista.cpp
     : <target-os>windows
         <target-os-flavor>vista
     ;


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