|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-31 09:20:12
On Tuesday 31 May 2005 17:03, Reece Dunn wrote:
> >Yup. I've noticed this one too and I find that very useful.
> >I looked at the code and it seemed pretty simple to do it even with the
> >recent changes.
> >Volodya: is there some not so straightforward reason to disallow this?
> > E.g. renaming would break names embedded in DLLs, etc.
>
> What about creating C/C++-based CGI programs (mycgi.exe --> mycgi.cgi), or
> DLLs that use different prefixes (e.g. .ocx)? Is there a way to set these
> in the lib/exe, e.g.:
>
> exe mycgi : ... : <name>mycgi.cgi ;
>
> ? If not, this would have to be done on an install/stage.
I would suggest writing:
type.register CGI : : EXE ;
and then
cgi mycgi : ........ ;
I did consider allowing <name> on any target, modifying the target name,
but did not work out all the details.
> Does the custom
> naming facility support this type of renaming (i.e. changing the
> extension?)
Sure. The rule passed via <tag> feature can strip suffix from "exe" target and
add some other.
- 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