From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-03-01 07:55:00
On Wednesday 01 March 2006 13:29, Jaroslav Gresula wrote:
> Is there a way how one can change extension of a binary built by a lib
> target (e.g. instead of .dll/.so I would like to have .pyd)?
Take a look at how it's done in python.jam:
type.register PYTHON_EXTENSION : : SHARED_LIB ;
# We can't give "dll" suffix to PYTHON_EXTENSION, because
# we would not know what "a.dll" is: python extenstion or
# ordinary library. Therefore, we specify only suffixes
# used for generation of targets.
type.set-generated-target-suffix PYTHON_EXTENSION : : so ;
type.set-generated-target-suffix PYTHON_EXTENSION : <os>NT : dll ;
type.set-generated-target-suffix PYTHON_EXTENSION : <os>CYGWIN : so ;
With the above, if you use:
python-extension whatever : a.cpp ;
the extension will be determined by the statements above. You can adapt this
to your case.
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