Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-03-27 02:49:54


Khassapov, Alex wrote:

> Thanks again!
>
> I'll try this. I just wonder how to pass the ".d" script to the
> generator? Add it ti the list of sources? dtrace needs the script (-s
> smth.d)

Yes, of course:

        type.register DTRACE_SCRIPT : d ;
        generators.register-composing dtrace.build : DTRACE_SCRIPT OBJ : DTRACE_OBJ ;

appear to clearly state that the dtrace.build generator accepts the .d source.
I have no logic to grab the .d source and put it in the right place on the
command line, prepended by -s, but that should be easy.

You can also define new feature, like dtrace-script, and use it to pass the
name of the script to the generator. This might be a bit cleaner than
fishing the .d source by a code.

- Volodya


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