Boost logo

Boost-Build :

From: Achim Domma (achim.domma_at_[hidden])
Date: 2002-05-17 02:23:33


> A minimal Jamfile which does this sort of thing for v2 might be:
>
> subproject libs/python/test ;
>
> # bring in the rules for python
> SEARCH on <module@>python.jam = $(BOOST_BUILD_PATH) ;
> include <module@>python.jam ;
> local PYTHON_PROPERTIES = $(BOOST_PYTHON_V2_PROPERTIES) ;
>
> extension my_ext : my_cpp1.cpp my_cpp2.cpp <dll>../bpl
> : # any additional requirements, e.g. <define>MY_LIB
> ;

I just managed to build my first python extension with bpl and bjam, and of
course I have more questions now:

- How can I tell bjam to link with third party libraries, which are not
build with bjam ? The statement <dll>../bpl seems to rely on the bjam folder
structure.

- Is there an easy way to use bjam outside the boost source tree? As far as
I understand, bjam walks up the tree to find some jamfiles, but that would
fail if I invoke it outside the boost tree.

greetings
Achim

PS.: I crossposted to c++-sig_at_[hidden] and jamboost_at_[hidden]
because the original thread started in c++-sig, but is becoming more and
more jamboost specific.

 


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