|
Boost-Build : |
From: Matt Shepcar (scabby5uk_at_[hidden])
Date: 2004-02-21 11:01:23
Hi,
Is it possible to redefine the default values for features? For
instance, I would like rtti off without having to have an rtti-off
subdirectory in my build.
Also I want to have a 'design' set of builds and a 'non-design' set.
All the design build will do is add <define>DESIGN but I'd like to
have a 'design-on' subfolder appear in my build tree then, much like
the <rtti> or <link> features do. Is there any way to accomplish
this?
My current workaround (which achieves mostly the result i want) is
this:
variant defdebug : debug : <link>static <rtti>off ;
variant defrelease : release : <link>static <rtti>off ;
variant designdebug : defdebug : <define>_DESIGN ;
variant designrelease : defrelease : <define>_DESIGN ;
variant dx9debug : defdebug : <toolset>msvc ;
variant dx9release : defrelease : <toolset>msvc ;
variant dx9designdebug : designdebug : <toolset>msvc ;
variant dx9designrelease : designrelease : <toolset>msvc ;
variant pspdebug : defdebug : <toolset>pspsnc ;
variant psprelease : defrelease : <toolset>pspsnc ;
variant pspdesigndebug : designdebug : <toolset>pspsnc ;
variant pspdesignrelease : designrelease : <toolset>pspsnc ;
project GameEngine
: build-dir bin
: requirements
<include>c:/dev3rdparty/boost_1_31_0
<toolset>msvc:<include>c:/dxsdk/include
<toolset>msvc:<define>PLATFORM_DX9
<toolset>pspsnc:<include>c:/sce/psp/include
<toolset>pspsnc:<define>PLATFORM_PSP
: default-build
dx9designdebug
;
I'm sure there must be a better way to do this? :)
Regards
Matt
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