|
Boost-Build :
|
- Next message: David Abrahams: "Re: [jamboost] [BB2] Modifiers, some progress towards version support..."
- Previous message: Jürgen Hunold: "Re: [jamboost] [Using V2] usage-requirements"
- In reply to: Rene Rivera: "Re: [jamboost] Re: [Boost-build] CVS: boost/tools/build/new modifiers.jam,NONE,1.1 symlink.jam,1.6,1.7"
- Next in thread: Rene Rivera: "Re: [jamboost] Re: [Boost-build] CVS: boost/tools/build/new modifiers.jam,NONE,1.1 symlink.jam,1.6,1.7"
- Reply: Rene Rivera: "Re: [jamboost] Re: [Boost-build] CVS: boost/tools/build/new modifiers.jam,NONE,1.1 symlink.jam,1.6,1.7"
Rene Rivera <grafik666_at_[hidden]> writes:
>>2. Looking at
>>
>> local path-to-source = [ path.relative-to
>> [ path.make [ on $(<) return $(LOCATE) ] ]
>> [ path.make [ on $(>) return $(LOCATE) ] ] ] ;
>>
>>I'm not sure it will work when building from subdir. If
>>$(>) is located at "../..", will path.relative-to work? I'll be offline
>>for 2-4 hours now, but will try to really break this when I'm back ;-)
>
> It should... can't say I tested it ;-) But I can't see a problem...
This is a perfect job for a __test__ rule in the path module
(HINT HINT HINT).
We should never add a simple rule like this without a battery of
tests in the module. It's so easy, and it helps nail down the
intended semantics.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
- Next message: David Abrahams: "Re: [jamboost] [BB2] Modifiers, some progress towards version support..."
- Previous message: Jürgen Hunold: "Re: [jamboost] [Using V2] usage-requirements"
- In reply to: Rene Rivera: "Re: [jamboost] Re: [Boost-build] CVS: boost/tools/build/new modifiers.jam,NONE,1.1 symlink.jam,1.6,1.7"
- Next in thread: Rene Rivera: "Re: [jamboost] Re: [Boost-build] CVS: boost/tools/build/new modifiers.jam,NONE,1.1 symlink.jam,1.6,1.7"
- Reply: Rene Rivera: "Re: [jamboost] Re: [Boost-build] CVS: boost/tools/build/new modifiers.jam,NONE,1.1 symlink.jam,1.6,1.7"
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