Boost logo

Boost-Build :

Subject: Re: [Boost-build] Injecting usage-requirements into generated targets
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2011-01-04 20:33:51

On Tue, Jan 4, 2011 at 4:55 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> On 1/4/2011 3:56 PM, Emil Dotchevski wrote:
>> I'm trying to make a system that automatically verifies that all
>> header files that belong to a given Boost Build project compile when
>> included first in a cpp file.
>> I got to a point where I automatically generate a target per header
>> file, which uses the compile rule to test the header.
>> My question is, how do I inject the usage-requirements of the project
>> the headers belong to into each of the generated targets, so that
>> include folders and stuff get passed to the compiler when compiling
>> each individual header?
> I assume you mean the requirements, not the usage-requirements.
> It should just work as long as the targets are created in the
> right project.  I did this a while ago for the Units library.
> (in libs/units/test_headers).  I don't recall having any trouble with
> features.

No, I mean the usage-requirements. What is being tested is that a
dependent project including a header file does not get a compile error
in the header file.

Emil Dotchevski
Reverge Studios, Inc.

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