Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-31 10:43:26


On Tuesday 31 May 2005 19:26, Larry Evans wrote:

> So, tried new Jamfile.v2:
>
> <Jamfile.v2>
> import type ;
>
> type.register OUTPUT : output ;

This creates main target rule called "output", in global namespace.

> rule output ( target : exe )
> {
> }

This creates a local rule 'output', that does nothing, and hide
the global one.

> output test_out
>
> : test_exe
>
> ;

And this does nothing. What about this:

import type ;
type.register OUTPUT : output ;

import generators ;

generators.register-standard $(__name__).capture-output : EXE : OUTPUT ;

actions capture-output
{
echo "capture"
}

exe a : a.cpp ;
output a.output : a ;

I've tested it now and it seem to work.

-- 
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