|
Boost-Build : |
From: Mark Elston (m.elston_at_[hidden])
Date: 2004-06-23 22:02:54
One last question (that I can think of).
Can I stack those conditions in a conditional property? For
example,
<os>LINUX:<variant>debug:<cxxflags>-whatever
I haven't had a chance to try this out yet but I will probably
get back to it tomorrow. Too many meetings today. Sigh.
Ok. One more. Is there somewhere in the code I can look at
to find out more about this behavior (either C or Jam code)?
Thanks again.
Mark
> -----Original Message-----
> From: Vladimir Prus [mailto:ghost_at_[hidden]]On Behalf Of Vladimir
> Prus
> Sent: Tuesday, June 22, 2004 11:48 PM
> To: jamboost_at_[hidden]
> Subject: Re: [jamboost] Project setup - again
>
> ...
>
> > project
> >
> > : requirements
> >
> > <include>./inc
> > # Other include directories
> >
> > # The following are Linux-specific settings.
> > # I need to add settings for Windows-specific
> > # compilation and linking as well that will be common
> > # to all sub-projects. I also need to specify a
> > # different set based on Release/Debug/Purify configurations.
> > <cxxflags>-w <cxxflags>-fpic
> > <linkflags>-fpic
>
> You should use conditional properties:
>
> <variant>release:<cxxflags>-optimize
> <variant>debug:<cxxflags>-pessimize
>
> This works for platforms, too.
>
> <os>LINUX:<cxxflags>-linux
>
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