Boost logo

Boost-Build :

From: Olivier Smeesters (olivier.smeesters_at_[hidden])
Date: 2006-10-05 05:37:36


Hi Phillip,

Thanks a lot for your fix. It indeed works much better.

However, for my CVS operation to be complete, it should also list the
include files. It currently reports only the .c[pp] files.

Also, if I'm referencing an executable that has a library dependency, it
does not list the files used to build this dependency.

As an example, I'm using something like this:
| project . ;
| lib tooling : src/tooling.cpp : <include>include : : <include>include ;
| exe tool : src/tool.cpp tooling ;
| cvs commit : tool : <cvs-action>commit ;

"bjam commit" would only report tool.cpp but not src/tooling.cpp neither
include/tooling.hpp or src/tooling-private.hpp .

Finally, it does not allow several sources in the same cvs target. When
I specify multiple sources, it fails with a error message. I tried the
--debug-generators as suggested but I can't see the reason. Attached
there are the outputs when it fails and when it succeeds (limited to the
processing of that target).

Thanks a lot in advance for your kind help,

Olivier

Phillip Seaver wrote:
> Olivier,
>
> See if this works for you. You had $(<) instead of $(>) for your
> sources -- I always get confused on which is which. I also changed it
> to define generated-targets instead of run and for the
> generators.register call, you had cvs.main instead of cvs.run.
>
> Phillip
>
> Olivier Smeesters wrote, on 10/4/2006 3:05 AM:
>> Hi Phillip,
>>
>> It was indeed inspired from that example and from the notfile rule.
>> My problem is that the itrace example does not show how it invokes
>> the tool, how it gets the file names.
>>
>> If you can help me there, I would be very interested.
>>
>> Thanks,
>>
>>
>> Olivier
>>
>>
>>> Date: Tue, 03 Oct 2006 11:00:43 -0400
>>> From: Phillip Seaver <phil_at_[hidden]>
>>> Subject: Re: [Boost-build] Integrating source control in boost.build
>>> To: "Boost.Build developer's and user's list"
>>> <boost-build_at_[hidden]>
>>> Message-ID: <45227B1B.1000503_at_[hidden]>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>> It looks like you might want something more like the itrace
>>> example:
>>> http://www.boost.org/doc/html/bbv2/extending/tools.html#id2859013
>>>
>>> Phillip
>>>
>>>
>>> Olivier Smeesters wrote, on 9/26/2006 7:22 AM:
>>>
>>>> > Hi All,
>>>> >
>>>> > I'm trying to convert a previous build system, based on Ant, to >
>>>> Boost.Build. One nice feature of this previous system was that it >
>>>> could run cvs commands on the sources (eg. to find out if all files
>>>> > are up-to-date or to tag all files that make a release). I'm
>>>> trying to > reproduce this functionality.
>>>> >
>>>> > The ultimate goal would be to create rule where items to be
>>>> managed > under version control would be declared and,
>>>> automatically, several > main targets would be created like
>>>> "cvs-check", "cvs-update", > "cvs-commit", "cvs-tag".
>>>> >
>>>> > As a first try, I wanted to create a generator which would allow
>>>> me to > do something like this:
>>>> >
>>>> > | exe foo : foo.c ;
>>>> > | cvs commit : foo : <cvs-action>commit ;
>>>> >
>>>> > And calling "bjam commit" would commit all the files used to
>>>> build foo.
>>>> >
>>>> > So I wrote the attached generator (derived from notfile).
>>>> >
>>>> > But currently, I don't get any source file name although I
>>>> checked > with an echo that $(leaves) is full of file-target
>>>> objects in the run > rule of the generator. Nevertheless, I only
>>>> get something like:
>>>> >
>>>> > | cvs.run <l./gcc/debug/cvs-action-commit>commit
>>>> > | Action: commit
>>>> > | Sources: <l./gcc/debug/cvs-action-commit>commit
>>>> >
>>>> > Any idea how I can get the file names in the cvs.run action ? or
>>>> how I > should do that CVS thingy ?
>>>> >
>>>> > Thanks in advance,
>>>> >
>>>> >
>>>> > Olivier
>>>>
>>>
>>>
>>>
>>
>>

-- 
Olivier Smeesters
Embedded Software Engineer
Newtec (LLN Office)
Avenue Einstein, 2A
B-1348 Louvain-la-Neuve
Tel: +32 (0)10 45.31.06
Fax: +32 (0)10 84.32.54





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