|
Boost-Build : |
From: John Reid (j.reid_at_[hidden])
Date: 2007-05-14 06:57:45
Hi,
I'm still struggling with an antlr generator for boost.build.
I have 2 antlr files: Base.gl and Simple.gl.
From Base.gl antlr builds:
BaseLexer.cpp
BaseLexer.hpp
BaseTokenTypes.hpp
BaseTokenTypes.txt
and from Simple.gl antlr builds:
SimpleLexer.cpp
SimpleLexer.hpp
SimpleTokenTypes.hpp
SimpleTokenTypes.txt
I have a custom generator that I think tells boost.build all it needs to
know to build these files. Unfortunately I can't get dependencies to
work. Simple.gl essentially includes BaseTokenTypes.txt and I can't work
out how to use the INCLUDES rule to get boost.build to create
BaseTokenTypes.txt when required.
I've tried adding the simple:
INCLUDES Simple.gl : BaseTokenTypes.txt ;
in the generator and other permutations but I can't see what I'm
missing. The documentation suggests that the INCLUDES rule should accept
the filenames. Do I need to set up the LOCATE variable on the built
targets, in particular BaseTokenTypes.txt? I haven't managed to get this
to work either :(
I attach the jam code.
Thanks,
John.
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