Boost logo

Boost-Build :

From: Johannes Brunen (JBrunen_at_[hidden])
Date: 2005-08-08 02:19:28


Hi,

Sorry for reposting. But I can't see this entry in the gmane.comp.lib.boost.build group. Maybe it was lost.

I have the following problem:

I have a library which I want to be build on default without debug symbols,i.e. 'bjam debug' should yield in a library with feature <debug-symbols>off.
On request, I would like to build the library with debug symbols, i.e. 'bjam debug debug-symbols=on'.

Now I have build my jamfile this way:

project test
: requirements
<source>/site-config//win32
<link>static
: default-build <debug-symbols>off
: source-location src
: usage-requirements
<include>./inc
;

SOURCES = file1 file2 file3 ;

lib Test : $(SOURCES).cxx : <include>inc <tag>@$(__name__).my-tag ;

install Dist : Test : <variant>release:<location>../lib
<variant>debug:<location>../libd ;

Unfortunately, this does something different: 'bjam debug' results in the library with <debug-symbols>on.

Is it possible to do what I want? Can anyone show me the proper solution?

I also tried the following,

project test
: requirements
<source>/site-config//win32
<link>static
<debug-symbols>off
: source-location src
: usage-requirements
<include>./inc
;

SOURCES = file1 file2 file3 ;

lib Test : $(SOURCES).cxx : <include>inc <tag>@$(__name__).my-tag ;

install Dist : Test : <variant>release:<location>../lib
<variant>debug:<location>../libd ;

but then I got only the library with <debug-symbols>off independently on the command line I used (this was what I actually expected).

Regards,

Johannes

____________
Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.6489 from 08.08.2005
Virus news: www.antiviruslab.com

 


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