Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-17 17:23:23


Alexey Pakhunov wrote:
> Reece Dunn wrote:
>> I think it is when you have another IDL file dependant on the first
>> (see rabbit3.zip) - that is essentially the only thing I didn't try
>> with your rabbit example.
>
> Aha! I found it. midl.exe does not always create 'xxx_proxy.c' and
> 'xxx_dlldata.c' files. This behavior depends on contents of an .idl
> file. So now I just create these files if midl.exe doesn't.

It works! Yay!!

> BTW, the generator for .idl files is registered by the following command:
>
> generators.register-c-compiler msvc.compile.idl : IDL : MSTYPELIB H
> C(%_i) C(%_proxy) C(%_dlldata) : <toolset>msvc ;
>
> Is it possible to make the output files 'C(%_proxy)' and 'C(%_dlldata)'
> optional? So that if these files are missing bjam will not try to
> recreate them.

You could have:

    generators.register-c-compiler msvc.compile.idl : IDL : MSTYPELIB H
    C(%_i) : <toolset>msvc ;

...but then you would need some crazy logic to work out the _proxy.c and
_dlldata.c files...

...unless you can do something cool with the C(%_i) target to get the
_proxy.c and _dlldata.c names.

- Reece


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