From 1b66cd9643f97d5dcd3dab3afecc47c0f24f6869 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 11 Dec 2006 05:02:35 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'RC_1_34_0'. [SVN r36324] --- example/Jamroot | 40 ++++++++++++++++++++++++++++++++++++++++ example/tutorial/Jamroot | 18 ++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 example/Jamroot create mode 100755 example/tutorial/Jamroot diff --git a/example/Jamroot b/example/Jamroot new file mode 100755 index 00000000..48c6e444 --- /dev/null +++ b/example/Jamroot @@ -0,0 +1,40 @@ +# Copyright David Abrahams 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) + +# Specify the path to the Boost project. If you move this project, +# adjust this path to refer to the Boost root directory. +use-project boost + : ../../.. ; + +# Set up the project-wide requirements that everything uses the +# boost_python library from the project whose global ID is +# /boost/python. +project + : requirements /boost/python//boost_python ; + +# Declare the three extension modules. You can specify multiple +# source files after the colon separated by spaces. +python-extension getting_started1 : getting_started1.cpp ; +python-extension getting_started2 : getting_started2.cpp ; +python-extension std_pair_ext : std_pair.cpp ; + +# A little "rule" (function) to clean up the syntax of declaring tests +# of these extension modules. +local rule run-test ( test-name : sources + ) +{ + import testing ; + testing.make-test run-pyd : $(sources) : : $(test-name) ; +} + +# Declare test targets +run-test test1 : getting_started1 test_getting_started1.py ; +run-test test2 : getting_started2 test_getting_started2.py ; +run-test test3 : std_pair_ext test_std_pair.py ; + +# A target that runs all the tests +alias test : test1 test2 test3 ; + +# Don't run tests by default +explicit test test1 test2 test3 ; + diff --git a/example/tutorial/Jamroot b/example/tutorial/Jamroot new file mode 100755 index 00000000..06522873 --- /dev/null +++ b/example/tutorial/Jamroot @@ -0,0 +1,18 @@ +# Copyright David Abrahams 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) + +# Specify the path to the Boost project. If you move this project, +# adjust this path to refer to the Boost root directory. +use-project boost + : ../../../.. ; + +# Set up the project-wide requirements that everything uses the +# boost_python library from the project whose global ID is +# /boost/python. +project + : requirements /boost/python//boost_python ; + +# Declare a Python extension called hello. +python-extension hello : hello.cpp ; +