Boost logo

Boost-Build :

From: Jeremy Pack (rostovpack_at_[hidden])
Date: 2008-06-27 11:43:43


Will,
Boost.Extension does this:
http://svn.boost.org/trac/boost/browser/sandbox/libs/extension/examples/Jamfile.v2

The important lines:

import type : change-generated-target-suffix
type.change-generated-target-suffix SHARED_LIB : : extension ;

Hope that helps!

Jeremy Pack

2008/6/27 william marié <william.marie_at_[hidden]>:

> Hi,
>
> Actually, i'm not sure but i think i found a way to do that using :
>
> # Plug Type creation
> import type ;
> type.register PLUG : : SHARED_LIB ;
> type.set-generated-target-suffix PLUG : : plg ;
>
> But i don't know how to tell the lib rule to use my type instead of the
> standard <link>shared...
>
>
> 2008/6/27 Jurko Gospodnetiæ <jurko.gospodnetic_at_[hidden]>:
>
> Hi __Will__.
>>
>> For my application i'm using a plugin system and i would like my plugins
>>> (
>>> dlls ) to have a special extension : .plg but i can't find anything to do
>>> that, if i try something like that :
>>> lib myplug.plg : a.cpp : <link>shared ; it automatically replaces the
>>> .plg
>>> by a .dll really annoying ...
>>> If someone knows hot to do that ?
>>>
>>
>> Hmmm... not really sure if you can do that easily.
>>
>> There should be a way to do this change using the install rule in case
>> you know where you want those plugins to end up.
>>
>> I guess one could implement a derived target type from LIB which would
>> use a customized extension but I am not sure how to do this and do not have
>> time to look into it at the moment. I believe the python library does
>> something similar with its python extension DLLs, so that might be a good
>> place to look.
>>
>> Hope this helps.
>>
>> Best regards,
>> Jurko Gospodnetiæ
>>
>> _______________________________________________
>> Unsubscribe & other changes:
>> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>



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