|
Boost-Build : |
Subject: Re: [Boost-build] Conditional src files
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-11-04 21:05:17
AMDG
Anant Rao wrote:
> How is it to handle diff files on diff OSs using bjam?
>
> What I mean is - say, file File1.cpp exists only Windows and File2.cpp exists only on Linux.
> Using a single Jamfile, is there a way to handle it i.e., conditionally add the files to the build, depending on the OS?
>
You can use conditional features:
<target-os>windows:<source>File1.cpp
<target-os>linux:<source>File2.cpp
In Christ,
Steven Watanabe
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