Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-24 09:38:09


On Friday 21 April 2006 02:52, Neil Gower wrote:

> I'm still new to boost-build, and I'm trying to set up a project in which
> the final output on Windows is a .mll file (Maya plug-in), which is just a
> dll with a different extension. On Linux, the build should produce a
> regular .so file. It doesn't matter to me whether this is done during
> linking or staging, but so far I've been unable to convince bjam to do
> either for me.
>
> Below are the interesting bits of what I've tried:
>
> # Create a type for .mll files?
> type.register MAYA_PLUGIN : mll : SHARED_LIB : main ;
> type.set-generated-target-suffix MAYA_PLUGIN : <os>NT : mll ;
> type.set-generated-target-suffix MAYA_PLUGIN : <os>UNIX : so ;
>
> # build
> lib MyExample
>
> : [ glob ./*.cpp ]
>
> ;
>
> # copy files
> stage MyExample_plugin
>
> : MyExample
> : <location>$(TOP)/install/maya_plugins
>
> <include-type>MAYA_PLUGIN
> <name>MyExample.mll
> ;
>
> Removing the <name> property from the stage rule and switching MAYA_PLUGIN
> back to SHARED_LIB, this builds fine on both Linux and Windows, but the
> resulting file is a .dll on Windows.

I believe there was a bug that prevented "set-generated-target-suffix" from
working for types derived from SHARED_LIB. Can you download the nightly build
from http://boost.org/boost-build2 and try with it?

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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