Boost logo

Boost-Build :

Subject: Re: [Boost-build] Injecting usage-requirements into generated targets
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-04 19:55:29


AMDG

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.

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