Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-05-17 08:50:15

On Wednesday 10 May 2006 12:11, Johan Nilsson wrote:
> Hi,

Hi Johan,

> I'm looking for a resolution or at least a reasonable workaround for ticket
> #83 - "add support for specifying files with same name but different
> subdirectories". Basically, I'm using path.glob to get sources added
> automatically to projects, e.g. "[ path.glob . : *.cpp */*.cpp ]".
> Is there anyway to fix this without resorting to explicitly using the obj
> rule - e.g. add the subpath to the objects' output path automagically?

First of all, why do you have identically named files in subdirectories? For
now, I don't understand why this is a such a recurring problem for users --
we had several reports already.

Implementation-wise, here are my thoughts:

1. For a Jamfile with a single source location, we can, for all source files
below that source location, retain the relative path, no problem.

2. For a Jamfile with several source locations, it's not clear what do to.
Say, /foo/src and /bar/src are source locations for one Jamroot, and there
are both /foo/src/class.cpp and /bar/src/class.cpp. In this case, we'd need
to get those "foo/src" and "bar/src" to the target path?

- Volodya

Vladimir Prus
Boost.Build V2:

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