Boost logo

Boost-Build :

Subject: Re: [Boost-build] Exclude source files based on <target-os>
From: Juraj Ivančić (juraj.ivancic_at_[hidden])
Date: 2010-11-03 04:21:36


On 1.11.2010 20:21, Sherwood Hu wrote:

> I wonder whether it is possible to exclude files based on <target-os>,
> such as the one below:
>
> exe test-file : [ glob-tree *.c *.cpp ]
> :
> <target-os> linux:<exclude-file>iowin32.cpp
> ;
>
> Is it possible in current boost.build?

No, but it is possible to exclude files from glob and then include them
based on <target-os>

exe test-file
:
     [ glob-tree *.c *.cpp : iowin32.cpp ]
:
     <target-os>windows:<source>iowin32.cpp
;

Hope this helps


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