Boost logo

Boost-Build :

Subject: Re: [Boost-build] #include with macro
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2016-09-27 17:09:06

On Tue, Sep 27, 2016 at 4:03 PM, Phillip Seaver <phil_at_[hidden]> wrote:

> On 9/27/16 7:10 AM, Rene Rivera wrote:
> > On Mon, Sep 26, 2016 at 2:49 PM, Phillip Seaver <phil_at_[hidden]
> > <mailto:phil_at_[hidden]>> wrote:
> >
> > I'm compiling FreeType with boost-build. It has many includes
> > like this
> > "#include FT_ERRORS_H" There's a file that defines those macros. It
> > looks like the underlying bjam code has support for it (in
> > hdrmacro.c &
> > headers.c), but I don't see a way to make use of it in boost-build.
> >
> > Am I missing something or is it just not exposed in a boost-build
> way?
> >
> >
> > Well.. Had to go investigate that one since I didn't remember where it
> > came from and is not used/exposed. Best explanation I found is from
> > where the extension came from, FTJam
> > <>.
> It would be really helpful if I could use it. boost-build doesn't
> recognize that it needs to rebuild files when one of those header
> changes, so we have to rebuild it manually.
> Any suggestions on a work-around or a way to use that feature?

I guess I wasn't obvious enough about it.. You should be able to use it as
is. Just call HDRMACRO some place in your Jamfiles like:

HDRMACRO /some/absolute/path/to/header/defs.h ;

Before anything else. And the regular include header scanning will use the
defs in that file to replace the scanned files auto-magically (probably --
have never done it myself but that's what I see from reading the engine

-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams -
-- rrivera/ (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

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