Boost logo

Boost-Build :

Subject: Re: [Boost-build] Specific platform source
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2010-07-06 02:39:43


The same, with better formatting:

# Start of jamroot code
project : requirements <conditional>@platform-source ;

rule platform-source ( properties * )
{
   local platform-dir = ;
   if <target-os>windows in $(properties)
   {
      platform-dir = win ;
   }
   if <target-os>darwin in $(properties)
   {
      platform-dir = mac ;
   }
   local result = ;
   if $(platform-dir)
   {
      local cpps = [ glob $(platform-dir)/*.cpp ] ;
      result = <source>$(cpps) ;
   }
   return $(result) ;
}
# End of jamroot code

Gevorg


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