Boost logo

Boost-Build :

Subject: Re: [Boost-build] #include with macro
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-09-28 10:29:38


AMDG

On 09/27/2016 03:09 PM, Rene Rivera wrote:
>
> 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
> code).
>

  I don't think it won't work. HDRMACRO is designed
to work with the original Jam HDRRULE which doesn't
distinguish between #include <x> and #include "x".
c-scanner in src/tools/types/cpp.jam won't understand
the input that HDRMACRO gives it.

In Christ,
Steven Watanabe


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