Boost logo

Boost-Build :

From: Alexey Syomichev (asyomichev_at_[hidden])
Date: 2004-12-24 15:46:11


Hi,
I need to preprocess some header files with a perl script. Say, I have
"a.cpp" that includes "a.hpp", which needs to be created first from
"a.h". I need to 1) run the perl script taking a.h and creating a.hpp
and then to 2) compile a.cpp as part of the library. Also I need to keep
track of the dependency between a.h and a.cpp.
It looks like I canot register a new generator, because the suffix ".h"
is already assigned to a type "H". I do not own the ".h" files, thus
renaming files with a different suffix is not an option.
It's no easier with the dependency: header scanner does not help,
because a.hpp may not exist at a time of dependency calculation, so I
think I need to state this dependency a.cpp->a.h explicitly in a
Jamfile, but not sure how.
Any ideas?
Thanks in advance.
--Alexey

 


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