Boost logo

Boost-Build :

From: Renaud Lepere (renaud.lepere_at_[hidden])
Date: 2007-05-24 12:30:50


>
> > Do you know, how can i access this rule from a jamfile, i have
> > tried in my-ext.jam.
> > import project ;
> > rule my-lib ( project : sources * )
> > {
> > lib $(project) : $(sources) ;
> > project-rules.explict $(project) ;
> > }
>
> "project-rules" ?
> "explict" again ?
>
> Please post a real non-working sample. I think "someone" more
> knowledgeable
> than I am will be able to answer the question.
>

In my jamroot

#
import modules ;
path-constant bbv2-ext-path : utils ;
local boost-build-path = [ modules.peek : BOOST_BUILD_PATH ] ;
boost-build-path += $(bbv2-ext-path) ;
modules.poke : BOOST_BUILD_PATH : $(boost-build-path) ;

import alma ;

project dummy ;

exe dummy : dummy.cpp ;

alma-install install-dummy : abo//abo ;

and in utils/alma.jam

import feature ;
import type ;
import virtual-target ;

rule alma-install ( install-name : project-name )
{
     install $(install-name)-exe : $(project-name)
                                 : <location>./build/bin
                                 : <install-type>EXE ;
     install $(install-name)-bin : $(project-name)
                                 : <location>./build/bin
                                 : <install-type>SHARED_LIB ;
     install $(install-name)-lib : $(project-name)
                                 : <location>./build/lib
                                 : <install-type>IMPORT_LIB ;
     alias $(install-name) :
           $(install-name)-exe
           $(install-name)-bin
           $(install-name)-lib ;
     explicit $(install-name)
              $(install-name)-exe
              $(install-name)-bin
              $(install-name)-lib ;
}
...
IMPORT $(__name__) : alma-install : : alma-install ;
...

When i try to
"bjam msvc-8.0 debug install-dummy"
i get the following error

c:/Renaud/Alma/utils\alma.jam:21: in alma-install
rule explicit unknown in module alma.
jamroot:19: in modules.load
c:/Renaud/Alma/tools/boost-build-2.0-m11/boost-build/build\project.jam:312: in load-jamfile
c:/Renaud/Alma/tools/boost-build-2.0-m11/boost-build/build\project.jam:68: in load
c:/Renaud/Alma/tools/boost-build-2.0-m11/boost-build/build\project.jam:170: in project.find
c:/Renaud/Alma/Tools/boost-build-2.0-m11/boost-build\build-system.jam:148: in load

I would like that the explicit rule become available in utils/alma.jam.

Thanks

Renaud


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