Boost logo

Boost-Build :

From: Ilya Sokolov (fal_delivery_at_[hidden])
Date: 2006-06-14 10:08:34


Klaus Nowikow wrote:
> Ilya Sokolov wrote:
>
>>Klaus Nowikow wrote:
>>
>>>I created a little tool file for running xpidl (the interface
>>>generator from the mozilla project) following
>>>http://boost.org/boost-build2/doc/html/bbv2/extender.html :
>>>
>>><code>
>>>import type ;
>>>type.register XPIDL : idl ;
>>>
>>>import generators ;
>>>generators.register-standard xpidl.xpidl : XPIDL : H ;
>>>
>>>actions xpidl
>>>{
>>> xpidl -m header -Ic:/cygwin/opt/mingw/idl -w $(>)
>>>}
>>></code>
>>>
>>>and tried to test it with this jamfile:
>>>
>>><code>
>>>lib vtk-wrapper
>>> : vtkIVisualizationFrame.idl plugin.cpp
>>> : <link>shared ;
>>></code>
>>>
>>>where plugin.cpp contains only
>>>'#include "vtkIVisualizationFrame.h"'. Running
>>>
>>>[snip]
>
> >
>
>>see
>>http://boost.org/boost-build2/doc/html/bbv2/reference/jamfiles.html#bbv2.reference.headers
>
>
> hm. But I have only one main target (a lib). The cited page says
>
> <quote>
> By default, Boost.Build handles such dependencies within one main
> target. For example, assume that main target "app" has two sources,
> "app.cpp" and "parser.y". The latter source is converted into "parser.c"
> and "parser.h". Then, if "app.cpp" includes "parser.h", Boost.Build will
> detect this dependency. Moreover, since "parser.h" will be generated
> into a build directory, the path to that directory will automatically
> added to include path.
> </quote>
>
> That is 'exe app : app.cpp parser.y ;'.
> From parser.y the tool creates parser.h and then app is built using
> app.cpp and parser.h.

oh, sorry for my prev post.

i found this in qt4.jam:

# Since this generator will return H target, the linking generator
# won't use it at all, and won't set any dependency on it.

now i see next alternatives:
- implement xpidl like generators in qt4 (it's not easy)
- try this:

h vtkIVisualizationFrame
   : vtkIVisualizationFrame.idl
   ;

lib vtk-wrapper
   : plugin.cpp
   : <implicit-dependency>vtkIVisualizationFrame
     <link>shared
   ;


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