|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-07-29 16:36:41
"Roberto Aguilar" <roberto.c.aguilar_at_[hidden]> writes:
> Hello,
>
> I just started working with Boost and became interested in using the
> Boost.Build system for all the source code I'm maintaining. The code
> is a mix of C, C++, Python, Perl and Fortran. I decided to start
> working with Boost.Build v2 and tried to see if I can build a python
> program. I created a tree structure like so:
>
> top/
> |
> +-- Jamroot
> |
> +-- apps/
> | |
> | +-- pytest/
> | | -- Jamfile
> | | -- pytest (this is a python script)
> |
> +-- libs/
> | |
> | +-- pylib/
> | | | -- Jamfile
> | | | -- pylib.py
> | |
> | +-- cpplib/
> | | | -- Jamfile
> | | | -- cpplib.cpp (this is a Boost.Python "wrapper")
>
> First, I checked ${BOOST_ROOT}/tools/build/v2/tools and saw that there
> is a python.jam file, but it looks like it is strictly for building
> Python C++ extensions.
We also use it to build embedding applications. Just put
/boost/python//boost_python in your list of sources. Or if you want
the static library, use /boost/python//boost_python/<link>static and
add <define>BOOST_PYTHON_STATIC_MODULE to your list of
requirements... but it doesn't look like that's what you're trying to
do. I think your question is not in my domain of expertise. Volodya?
-- Dave Abrahams Boost Consulting www.boost-consulting.com
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