Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-10-07 02:37:06


muchacho_30 wrote:

Hi Alain,

> I am writing a new generator for a new C compiler (ImageCraft) which is
> currently not supported by Boost-Build v2. I based it on gcc.jam which
> describes how to extend the toolset to support the GCC compiler.
> Everything works well except for the following:
>
> 1. The complier generates files that I would like to delete when 'bjam
> clean' is invoked. For example, I can't make it clean up the file
> 'bqueue.lis' and I don't know where to invoke the common.Clean rule

It's easy. If your compiler produces anything else besides OBJ, you need to
specify that when declaring generator.

> generators.register-c-compiler icc.compile.c : C : OBJ :
> <toolset>icc ;

This should become:

type.register LIS : lis ;
generators.register-c-compiler icc.compile.c : C : OBJ LIS : <toolset>icc ;

V2 will clean "lis" file automatically.

> 2. I would like to be able to add a PREFIX to the library name(just
> like in Classic Jam and Boost-Build v1, we could add PRELIB).

Do you want a specific prefix? Always? This can be done with

generators.register-composing icc.archive : OBJ :
STATIC_LIB(some_prefix_%) ;

If you want more flexible logic, could you please give more details?

- Volodya

 


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