Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-09-23 06:40:53


On Friday 23 September 2005 14:56, Reece Dunn wrote:

> > > rule pch ( name : header : source ? )
> > > {
> > > # How do we implement this??

> >If fact, you don't have to implement this at all.
> >
> >1. Define type PCH. This will automatically define main target rule "pch".
> >2. The rule will be able to accept as many sources as you pass to it.
> >3. For msvc, define the generator like this:
> >
> > generators.register-standard msvc.pch : CPP HPP : PCH : <toolset>msvc
> > ;
>
> Cool! Is this in the BBv2 documents somewhere... something like this would
> be great as a simple example to see how types, generators and rules fit
> together, so you have that "aha!" moment when it all starts to fit together

That's suppoed to be documented at
http://boost.org/boost-build2/doc/html/bbv2/extending/rules.html

If there's anything you think can be improved on that page, let me known.

- 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