[C++-sig] Re: boost.Python/Jam with shared libraries
Aaron Bentley
abentley at panoramicfeedback.com
Tue Nov 9 23:14:58 CET 2004
Rene Rivera <grafik.list <at> redshift-software.com> writes:
>
> Which Jamfile?
>
> > Can anyone help?
>
> Probably. But we would need more information. Like answering the above
> question. And providing the Jamfile you have. At least.
>
Here's the Jamfile in question:
# Copyright David Abrahams 2003. See accompanying LICENSE for terms
# and conditions of use.
# This is the top of our own project tree
project-root ;
# Declares the following targets:
#
# 1. an extension module called "getting_started1", which is
# built from "getting_started1.cpp". Built by default
#
# 2. A test target called my-test.test which runs
# test_getting_started1.py with the extension module above. Built
# when out-of date, but only if invoked by name or if the global
# "test" target is invoked.
#
# 3. A test target called my-test.run wihch runs the above test
# unconditionally. Built only when invoked by name.
#
# To see verbose test output, add "-sPYTHON_TEST_ARGS=-v" to the bjam
# command-line before the first target.
#
# Include definitions needed for Python modules
import python ;
# ----- getting_started2 -------
# Declare a Python extension called pfengine
extension pfengine
: # sources
pfengine.cpp
#libraries
:
# <library-path> ../.libs
<library-file> /home/abentley/programming/.libs/libpanutil.so
# <library-file> libpantemplate.la
# <library-file> libpanpdfgen.la
# <library-file> libpancompile.la
# <library-file> libpanconsult.la
# <library-file> libpanelement.la
# <library-file> libpanlang.la
# <library-file> libpancore.la
# <library-file> libpanexport.la
# <library-file> libpanreport.la
# <library-file> libpancgi.la
# <library-file> libchart.la
# <library-file> libecommerce.la
# requirements and dependencies for Boost.Python extensions
<template>@boost/libs/python/build/extension
;
# Declare a test for the extension module
boost-python-runtest test2
: # Python test driver
test_getting_started2.py
# extension modules to use
<pyd>pfengine ;
# arch-tag: ae55dfed-2576-4667-953f-d7d8f777f7c4
More information about the Cplusplus-sig
mailing list