From: Ali Azarbayejani (ali_at_[hidden])
Date: 2003-03-13 17:11:20
Here's a simple question...can I do "Conditional Sources" using the same
syntax as Conditional Properties?
lib mylib : foo.cxx bar.cxx <os>NT:ntbase.cxx ;
expressing that the file "ntbase.cxx" is compiled in only on the NT OS?
Or do I have to do something more convoluted like the following?
Sources = foo.cxx bar.cxx ;
if [ os.name ] = NT
Sources += ntbase.cxx ;
lib mylib : $(Sources) ;
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