Boost logo

Boost-Build :

Subject: Re: [Boost-build] Custom type generated headers and dependency scanning
From: Jim Hague (jim.hague_at_[hidden])
Date: 2009-12-17 11:56:34


On Thursday 17 Dec 2009 07:12:27 Vladimir Prus wrote:
> On Wednesday 16 December 2009 23:55:51 Jim Hague wrote:
> > I am dealing with an elderly proprietary scripting language. [...]
> >
> > Am I right? Is my only option to add the dependencies manually?
>
> Could you start with a small experiment? When you build, the .if files
> should be placed in a directory like bin/gcc/whatever
> Can you try adding that directory to include path, with the <include>
> requirement on the project? Does that make dependencies work right?

Yes, it did!

> If so, then your next step is to actually implement the magic for setting
> include paths automatically. Please take a look at
> builtin.jam:compile-action and builtin.jam:C-compiling-generator -- which
> is what is doing that magic for C++. I suspect you did not do this for
> your types. Once you do, I suspect things will just work for you, as soon
> as all targets are in the same project.

OK, I imitated the C++ magic, and lo! Everything is working. I thought I knew
that the build products directory was always included on the includes path.
So, this is actually only true for those items (like C compilers) that make it
so.

Wonderful. Thanks very much.

-- 
Jim Hague - jim.hague_at_[hidden]          Never trust a computer you can't lift.

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