|
Boost-Build : |
From: Andre Hentz (gclbb-jamboost_at_[hidden])
Date: 2003-03-26 06:55:40
On Wed, 26 Mar 2003, Vladimir Prus wrote:
> Andre Hentz wrote:
> > > Should it be recognized? I mean, I had no idea that Windows path names
> > > are usable under Cygwin. It we need to support windows syntax, the fix
> > > should be trivial. Can you please add
> > >
> > > os = NT ;
> > >
> > > after line 26 in path.jam (after closing brace) and try again? If it
> > > works, I'll make the fix.
> >
> > It doesn't really work because problems arise elsewhere. For
> > instance, MkDir1 tries to create 'sub\bin' which actually creates
> > 'subbin'. I guess using NT path names under Cygwin is correct but requires
> > several changes in order to escape de backslashes. Using UNIX path names
> > will only be a problem in cases where windows-specific toolsets
> > (msvc) are processed with bin.cygwinx86/bjam.exe. Since it is always
> > possible to use bin.ntx86/bjam.exe under cygwin, this is a minor problem.
>
> Let me see... will it be OK, if we
> (1) recognize windows absolute paths
> (2) use forward slashes in all paths passed to build tools "MkDir sub/bin" for
> example?
>
I think that would be sufficient in most situations. I think the
following will do the trick:
rule make-CYGWIN ( path )
{
return [ make-NT $(path) ] ;
}
rule native-CYGWIN ( path )
{
local result = $(path) ;
if [ regex.match "(^/.:)" : $(path) ] # win absolute
{
result = [ MATCH "^/?(.*)" : $(path) ] ; # remove leading '/'
}
return [ native-UNIX $(result) ] ;
}
> - Volodya
>
>
> To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
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