From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2006-12-11 22:31:03
Phillip Seaver wrote:
> The <forced-include> would translate to the -include option for gcc and
Instead of having to add a new feature you could add <cxxflags> and/or
<cflags> to the usage requirements.
> It also helps with my goal of modifying third-party library
> distributions as little as possible. :-)
I have the same goal in the third-party libs I use and build.
> If someone could give me some pointers, I'd really appreciate it.
For the generation of the file itself take a look at the wxWidgets
support I wrote in the vault
It creates the wx/setup.h dynamically using the built in "make" target.
With the added <implicit-dependency> the directory where the generated
header is added to the include path automatically so you only need to
specify the name of the header file, without the path, in the flags. I
have more complicated example of using this technique to also generate
source files to compile that do things like predef and include other
sources so that I can do things like disable and rewrite parts of the
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
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