mirror of
https://github.com/boostorg/python.git
synced 2026-01-19 04:22:16 +00:00
Also port some "glaringly obvious" bugfixes from HEAD. Hope it doesn't cause problems. [SVN r35237]
83 lines
2.2 KiB
Plaintext
83 lines
2.2 KiB
Plaintext
# Copyright David Abrahams 2003-2006. Distributed under the Boost
|
|
# Software License, Version 1.0. (See accompanying
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
# 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_started1 -------
|
|
|
|
# Declare a Python extension called getting_started1
|
|
extension getting_started1
|
|
: # sources
|
|
getting_started1.cpp
|
|
|
|
# requirements and dependencies for Boost.Python extensions
|
|
<template>@boost/libs/python/build/extension
|
|
;
|
|
|
|
# Declare a test for the extension module
|
|
boost-python-runtest test1
|
|
: # Python test driver
|
|
test_getting_started1.py
|
|
# extension modules to use
|
|
<pyd>getting_started1 ;
|
|
|
|
|
|
|
|
# ----- getting_started2 -------
|
|
|
|
# Declare a Python extension called getting_started2
|
|
extension getting_started2
|
|
: # sources
|
|
getting_started2.cpp
|
|
|
|
# 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>getting_started2 ;
|
|
|
|
# ----- std_pair -------
|
|
|
|
# Declare a Python extension called std_pair
|
|
extension std_pair_ext
|
|
: # sources
|
|
std_pair.cpp
|
|
|
|
# requirements and dependencies for Boost.Python extensions
|
|
<template>@boost/libs/python/build/extension
|
|
;
|
|
|
|
# Declare a test for the extension module
|
|
boost-python-runtest test3
|
|
: # Python test driver
|
|
test_std_pair.py
|
|
# extension modules to use
|
|
<pyd>std_pair_ext ;
|