Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-10-17 12:50:59


On Tuesday 17 October 2006 20:28, Rene Rivera wrote:

> > Is there an easy way to do this? Note that __BASE_FILE__ is not supported
> > by msvc.
>
> I'm assuming that you want the define to change for each file compiled
> in the library target?
>
> The only global way I can think of would be to make your own CPP->OBJ
> generator that adds the define. Other than that would be hand specifying
> each source object compile and add defines for each one (very tedious I
> would think).
>
> Volodya may have a more detailed answer ;-)

"may" is a key word. I think we don't have any mechanism that allows one to
set define per each compiled file like this. At the level of main target and
requirements, we don't even have a way to say something about individual
file.

And the standard compile generators don't add anything on per-file basis.

- Volodya


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