Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-05-11 10:49:43

John Reid wrote:

> Vladimir Prus wrote:
>> Precisely. If 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

        lib antlr_lib : : <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?"

either the above, but with 'cpp' as the target kind:

        cpp lexer : : : <antlr-name>SimpleLexer ;
        cpp lexer2 : : : <antlr-name>SimpleLexer2 ;

should work.

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at