]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpi/build/Jamfile.v2
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / mpi / build / Jamfile.v2
1 # Copyright (C) 2005, 2006 The Trustees of Indiana University.
2 # Copyright (C) 2005 Douglas Gregor <doug.gregor -at- gmail.com>
3
4 # Use, modification and distribution is subject to the Boost Software
5 # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
7
8 # Authors: Douglas Gregor
9 # Andrew Lumsdaine
10
11 import mpi ;
12 import indirect ;
13 import python ;
14
15 libraries = ;
16
17 if [ mpi.configured ]
18 {
19
20 project boost/mpi
21 : source-location ../src
22 ;
23
24 lib boost_mpi
25 :
26 broadcast.cpp
27 communicator.cpp
28 computation_tree.cpp
29 content_oarchive.cpp
30 environment.cpp
31 exception.cpp
32 graph_communicator.cpp
33 group.cpp
34 intercommunicator.cpp
35 mpi_datatype_cache.cpp
36 mpi_datatype_oarchive.cpp
37 packed_iarchive.cpp
38 packed_oarchive.cpp
39 packed_skeleton_iarchive.cpp
40 packed_skeleton_oarchive.cpp
41 point_to_point.cpp
42 request.cpp
43 text_skeleton_oarchive.cpp
44 timer.cpp
45 : # Requirements
46 <library>../../serialization/build//boost_serialization
47 <library>/mpi//mpi [ mpi.extra-requirements ]
48 <define>BOOST_MPI_SOURCE=1
49 <link>shared:<define>BOOST_MPI_DYN_LINK=1
50 : # Default build
51 <link>shared
52 : # Usage requirements
53 <library>../../serialization/build//boost_serialization
54 <library>/mpi//mpi [ mpi.extra-requirements ]
55 ;
56
57 libraries += boost_mpi ;
58
59 if [ python.configured ]
60 {
61 lib boost_mpi_python
62 : # Sources
63 python/serialize.cpp
64 : # Requirements
65 <library>boost_mpi
66 <library>/mpi//mpi [ mpi.extra-requirements ]
67 <library>/boost/python//boost_python
68 <link>shared:<define>BOOST_MPI_DYN_LINK=1
69 <link>shared:<define>BOOST_MPI_PYTHON_DYN_LINK=1
70 <link>shared:<define>BOOST_PYTHON_DYN_LINK=1
71 <define>BOOST_MPI_PYTHON_SOURCE=1
72 -<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
73 <tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).python-tag
74 : # Default build
75 <link>shared
76 : # Usage requirements
77 <library>/mpi//mpi [ mpi.extra-requirements ]
78 ;
79 libraries += boost_mpi_python ;
80
81 python-extension mpi
82 : # Sources
83 python/collectives.cpp
84 python/py_communicator.cpp
85 python/datatypes.cpp
86 python/documentation.cpp
87 python/py_environment.cpp
88 python/py_nonblocking.cpp
89 python/py_exception.cpp
90 python/module.cpp
91 python/py_request.cpp
92 python/skeleton_and_content.cpp
93 python/status.cpp
94 python/py_timer.cpp
95 : # Requirements
96 <library>/boost/python//boost_python
97 <library>boost_mpi_python
98 <library>boost_mpi
99 <library>/mpi//mpi [ mpi.extra-requirements ]
100 <link>shared:<define>BOOST_MPI_DYN_LINK=1
101 <link>shared:<define>BOOST_MPI_PYTHON_DYN_LINK=1
102 <link>shared:<define>BOOST_PYTHON_DYN_LINK=1
103 <link>shared <runtime-link>shared
104 ;
105 }
106 }
107 else if ! ( --without-mpi in [ modules.peek : ARGV ] )
108 {
109 message boost_mpi
110 : "warning: skipping optional Message Passing Interface (MPI) library."
111 : "note: to enable MPI support, add \"using mpi ;\" to user-config.jam."
112 : "note: to suppress this message, pass \"--without-mpi\" to bjam."
113 : "note: otherwise, you can safely ignore this message."
114 ;
115 }
116
117 boost-install $(libraries) ;
118