|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-05-11 10:49:43
John Reid wrote:
>
>
> Vladimir Prus wrote:
>> Precisely. If lexer.gl was a target, it would be built with
>> <antlr-name>SimpleLexer. Since it's just a file, there's nothing to
>> build, and therefore <antlr-name>SimpleLexer is not used.
>>
> Ok. What is the easiest way to specify this feature for each source file?
If you have a library that includes just single gl file, then what you've shown
earlier:
lib antlr_lib : lexer.gl : <antlr-name>SimpleLexer ;
seems fine to me. If you have several files, then...
> Can I do something like what is described in "How to change compilation
> flags for one file?"
> http://boost.sourceforge.net/boost-build2/doc/html/bbv2/faq/s08.html?
either the above, but with 'cpp' as the target kind:
cpp lexer : lexer.gl : : <antlr-name>SimpleLexer ;
cpp lexer2 : lexer2.gl : : <antlr-name>SimpleLexer2 ;
should work.
- 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