Boost logo

Boost-Build :

From: Franz (fschnyder_at_[hidden])
Date: 2007-10-16 10:32:27


Hello

I use boost.build to build Code for VxWorks, therefore I created a toolset which
inherits from the gcc toolset. This works fine. Now I have to also support a
newer version of VxWorks and I would like to do this with the version support of
the toolset. My Problem is now that its not enough to change some variables for
the actions but I need completely different actions for compiling and linking
but I couldn't figure out how I would define different actions for different
toolset versions.

I would like to do something like this:

# vxworks.jam
...
actions link.v5 bind LIBRARIES # linking with version 5
{
   A B C;
}

actions link.v6 bind LIBRARIES # linking with version 6
{
   X Y Z;
}
...
 
Is this possible or do I need to create separate toolsets for each version?
I would like to only use one toolset because then I would not need to change all
the usages like

lib my_lib : $(sources) $(vx_sources) : <toolset>vxworks ;
lib my_lib : $(sources) $(win_sources) : ;

Because if I use two toolsets I have to change this to:

lib my_lib : $(sources) $(vx_sources) : <toolset>vxworks5 ;
lib my_lib : $(sources) $(vx_sources) : <toolset>vxworks6 ;
lib my_lib : $(sources) $(win_sources) : ;

Thanks,

- Franz


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