|
Boost-Build : |
Subject: Re: [Boost-build] [Build] problem including jamfiles
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-22 23:00:53
AMDG
Lee Winter wrote:
> On Tue, Apr 21, 2009 at 9:58 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
>
>> I really suggest using import, as it is much better behaved than include
>
> I don't doubt it. However, neither include nor import are documented
> AFAICT. So lexical inclusion is preferred because it is hard to
> misunderstand. And brute force inclusion allows the building up of a
> syntactic construct from fragements that may cross file boundaries.
> Import appears to require that the file boundaries also be syntactic
> boundaries. Is that assumption invalid?
>
> When import is documented I'll be happy to convert.
>
bjam --help modules.import
Generally, the usage of import will look like this
# xxx.jam
rule some-rule ( ) {
ECHO "xxx" ;
}
# Jamfile
import xxx ; # loads xxx.jam
xxx.some-rule ;
If you're using Boost.Build, you need to understand that much about
import, because there you cannot safely include any of the modules
defined by Boost.Build. You must use import.
In Christ,
Steven Watanabe
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