Boost logo

Boost-Build :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-08-07 01:15:30


>From http://www.boost.org/doc/html/bbv2/advanced.html I read:

import module ;
import module : rule ;
The first form imports the specified bjam module. All rules from that module
are made available using the qualified name: module.rule. The second form
imports the specified rules only, and they can be called using unqualified
names.

So this seems to give one the option of sharing rules between Jamfiles -
which is what I want to do.
I have a Jamfile.v2 which looks like:

project libs/serialization/performance
: default-build release
;
# import rules from the boost serialization test
import ../util/test ;

...

test-suite "performance" :
[ ../util/test.test-bsl-run-no-lib performance_iterators ]
;

But when I execute bjam I get an error message

$ bjam -n --dump-tests --toolset=gcc-3.3
...
Jamfile.v2:60: in modules.load
rule ../util/test.test-bsl-run-no-lib unknown in module
Jamfile</C:/Boost134/lib
s/serialization/performance>.
C:/Boost134/tools/build/v2/build\project.jam:312: in load-jamfile
C:/Boost134/tools/build/v2/build\project.jam:68: in load
C:/Boost134/tools/build/v2/build\project.jam:170: in project.find
C:/Boost134/tools/build/v2\build-system.jam:237: in load
C:\Boost134\tools\build\v2/kernel\modules.jam:261: in import
C:\Boost134\tools\build\v2/kernel/bootstrap.jam:132: in boost-build
C:\Boost134\boost-build.jam:9: in module scope

As always, any suggestions appreciated.

Robert Ramey


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