Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-05-17 10:32:32


On Wednesday 03 May 2006 04:24, Matthew Herrmann wrote:

> exe myapp
>
> : [ glob myapp/*.cpp ]
> : utilities<version>1-0-0
>
> ;
>
> lib utilities
>
> : : : : <include>/usr/local/include/utilities-$(version)
>
> <linkflags>-L/usr/local/lib/utilities-$(version)
> <linkflags>-lutilities-$(version)
> ;
>
> Is there such a means available? Or a "right way?" to achieve this that
> I've missed?

This would be possible by writing module 'utilities.jam' that would define a
target with a custom generator to build it, which generator will respond to
the <version> feature and produce different usage requirements.

Kind of like stlport.jam works, only it defines main target class, and new
code would define new generator class instead.

If you're really going to implement this for your project, we can discuss the
approach in more details.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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