Debian Codegraph @

vendor/btl_bloomfilter/pythonInterface/Jamroot

raw
1 # Copyright David Abrahams 2006. Distributed under the Boost
2 # Software License, Version 1.0. (See accompanying
3 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5 import python ;
6
7 if ! [ python.configured ]
8 {
9 ECHO "notice: no Python configured in user-config.jam" ;
10 ECHO "notice: will use default configuration" ;
11 using python ;
12 }
13
14 # Specify the path to the Boost project. If you move this project,
15 # adjust this path to refer to the Boost root directory.
16 use-project boost
17 : /projects/btl/hkhan/source/boost_1_60_0 ;
18
19 # Set up the project-wide requirements that everything uses the
20 # boost_python library from the project whose global ID is
21 # /boost/python.
22 project
23 : requirements <library>/boost/python//boost_python
24 <implicit-dependency>/boost//headers
25 : usage-requirements <implicit-dependency>/boost//headers
26 ;
27
28 # Declare the three extension modules. You can specify multiple
29 # source files after the colon separated by spaces.
30 python-extension bloomfilter_ext : BloomFilter_pythonwrapper.cpp ;
31
32 # Put the extension and Boost.Python DLL in the current directory, so
33 # that running script by hand works.
34 install convenient_copy
35 : bloomfilter_ext
36 : <install-dependencies>on <install-type>SHARED_LIB <install-type>PYTHON_EXTENSION
37 <location>.
38 ;
39
40 # A little "rule" (function) to clean up the syntax of declaring tests
41 # of these extension modules.
42 local rule run-test ( test-name : sources + )
43 {
44 import testing ;
45 testing.make-test run-pyd : $(sources) : : $(test-name) ;
46 }
47
48 # Declare test targets
49 run-test Bloom : bloomfilter_ext bloomfilter.py ;