Boost logo

Boost-Build :

Subject: Re: [Boost-build] Generated header files.
From: Mathias Lorente (mathias.lorente_at_[hidden])
Date: 2008-12-05 03:20:41


Vladimir Prus wrote:
> On Thursday 04 December 2008 17:56:25 Mathias Lorente wrote:
>
>> Vladimir Prus wrote:
>>
>>> Mathias Lorente wrote:
>>>
>>>
>>>
>>>
>>>> First the header files are generated, then my library is built.
>>>> New definition to build my library:
>>>>
>>>> lib my_lib
>>>> : [ glob-tree *.cpp : .svn ]
>>>> : <implicit-dependency>../utils//gen
>>>> <link>static
>>>> <define>BUILDING_LIBRARY
>>>> <variant>debug:<define>ENABLE_DEBUG_LOG
>>>> ;
>>>>
>>>>
>>> 'implicit-dependency' should refer to the header target, not the utility
>>> that generates it.
>>>
>>> - Volodya
>>>
>> In fact my input and generated files are in subdirectories. When I try:
>> <implicit-dependency>my_subdir/header.h I got following error messages:
>>
>> c:/travail/boost_1_37_0/tools/build/v2/build\virtual-target.jam:1047:
>> in virtual-target.register-actual-name from module virtual-target
>> error: Duplicate name of actual target: <p.>res\header.h
>> error: previous virtual target {
>> Jamfile</c:/travail/tests/bjam/lib>%Jamfile</c:/travail/tests/bjam/lib>.generate-header-res/header.h.H
>> { gcc%gcc.link-gen.exe.EXE { gcc%gcc.compile.c++-gen.o.OBJ {
>> gen.cpp.CPP } } } { res/header.txt. } }
>>
>
> Do you think you can send me a minimal but complete archived project that reproduces
> this problem?
>
> Thanks,
> Volodya
>
Hello,

I have tried to send you an email directly without success... So I send
it again to this mailing list.

In the attached file you will have to modify 'boost-build.jam' file (I
think you know it better than me).
Then you can launch bjam from lib subdirectory.
If you edit 'lib/jamfile.jam' you can get a working example.
I've tested this example with mingw on MSWindows XP SP3.

Regards,
Mathias




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