Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2005-04-28 05:54:57


You can also use <tag> and declare a single target. E.g. (not tested),

static-lib myDialogs
: [ glob *.cpp ] [ glob *.h ] [ glob *.rc ]
: <variant>debug:<tag>d
;

This will append "d" to the name when building the debug variant.

Pedro

----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>
To: <jamboost_at_[hidden]>
Sent: Thursday, April 28, 2005 7:33 AM
Subject: Re: [jamboost] Re: bbv2-m10: Bug with static-lib and <variant>

> On Thursday 28 April 2005 03:21, DJB wrote:
>
>> Here is the Jamfile (parent Jamfile excluded to keep things simple).
>>
>> With 'bjam --v2 debug ...' command, this should not even attempt the
>> release build with the following Jamfile, correct?
>>
>> For some reason, it is attempting both the debug and release builds.
> ....
>> #release
>> static-lib myDialogs
>>
>> : [ glob *.cpp ] [ glob *.h ] [ glob *.rc ]
>> : <variant>release
>>
>> ;
>
> If you run "bjam --v2 debug", this main target will still be built, but in
> release mode. The target requirements override build request given on the
> command line. Is this what you asking about?
>
> If you also add:
>
> alias myDialogs : : <variant>debug ;
>
> then there would be two alternatives for myDialogs -- the first one will
> build
> static lib, but only if you've requested release build. The second
> ("alias")
> will do absolutely nothing, and used in debug mode.
>
>
> - Volodya
>
>
> --
> Vladimir Prus
> http://vladimir_prus.blogspot.com
> Boost.Build V2: http://boost.org/boost-build2
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

 


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