Lines 60-140
Link Here
|
60 |
|
60 |
|
61 |
if [ python.configured ] |
61 |
if [ python.configured ] |
62 |
{ |
62 |
{ |
63 |
py2-version = [ py-version 2 ] ; |
63 |
lib boost_mpi_python |
64 |
py3-version = [ py-version 3 ] ; |
64 |
: # Sources |
65 |
|
65 |
python/serialize.cpp |
66 |
# These library names are synchronized with those defined by Boost.Python, see libs/python/build/Jamfile. |
66 |
: # Requirements |
67 |
lib_boost_python(2) = boost_python ; |
67 |
<library>boost_mpi |
68 |
lib_boost_python(3) = boost_python3 ; |
68 |
<library>/mpi//mpi [ mpi.extra-requirements ] |
69 |
|
69 |
<library>/boost/python//boost_python |
70 |
lib_boost_python($(py2-version)) = $(lib_boost_python(2)) ; |
70 |
<link>shared:<define>BOOST_MPI_DYN_LINK=1 |
71 |
lib_boost_python($(py3-version)) = $(lib_boost_python(3)) ; |
71 |
<link>shared:<define>BOOST_MPI_PYTHON_DYN_LINK=1 |
72 |
|
72 |
<link>shared:<define>BOOST_PYTHON_DYN_LINK=1 |
73 |
lib_boost_mpi_python(2) = boost_mpi_python ; |
73 |
<define>BOOST_MPI_PYTHON_SOURCE=1 |
74 |
lib_boost_mpi_python(3) = boost_mpi_python3 ; |
74 |
-<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag |
75 |
|
75 |
<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).python-tag |
76 |
lib_boost_mpi_python($(py2-version)) = $(lib_boost_mpi_python(2)) ; |
76 |
: # Default build |
77 |
lib_boost_mpi_python($(py3-version)) = $(lib_boost_mpi_python(3)) ; |
77 |
<link>shared |
78 |
|
78 |
: # Usage requirements |
79 |
for local N in 2 3 |
79 |
<library>/mpi//mpi [ mpi.extra-requirements ] |
80 |
{ |
80 |
; |
81 |
if $(py$(N)-version) |
81 |
libraries += boost_mpi_python ; |
82 |
{ |
82 |
|
83 |
lib $(lib_boost_mpi_python($(py$(N)-version))) |
83 |
python-extension mpi |
84 |
: # Sources |
84 |
: # Sources |
85 |
python/serialize.cpp |
85 |
python/collectives.cpp |
86 |
: # Requirements |
86 |
python/py_communicator.cpp |
87 |
<library>boost_mpi |
87 |
python/datatypes.cpp |
88 |
<library>/mpi//mpi [ mpi.extra-requirements ] |
88 |
python/documentation.cpp |
89 |
<library>/boost/python//$(lib_boost_python($(py$(N)-version))) |
89 |
python/py_environment.cpp |
90 |
<link>shared:<define>BOOST_MPI_DYN_LINK=1 |
90 |
python/py_nonblocking.cpp |
91 |
<link>shared:<define>BOOST_MPI_PYTHON_DYN_LINK=1 |
91 |
python/py_exception.cpp |
92 |
<link>shared:<define>BOOST_PYTHON_DYN_LINK=1 |
92 |
python/module.cpp |
93 |
<define>BOOST_MPI_PYTHON_SOURCE=1 |
93 |
python/py_request.cpp |
94 |
-<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag |
94 |
python/skeleton_and_content.cpp |
95 |
<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).python-tag |
95 |
python/status.cpp |
96 |
<python-debugging>on:<define>BOOST_DEBUG_PYTHON |
96 |
python/py_timer.cpp |
97 |
<python>$(py$(N)-version) |
97 |
: # Requirements |
98 |
: # Default build |
98 |
<library>/boost/python//boost_python |
99 |
<link>shared |
99 |
<library>boost_mpi_python |
100 |
: # Usage requirements |
100 |
<library>boost_mpi |
101 |
<library>/mpi//mpi [ mpi.extra-requirements ] |
101 |
<library>/mpi//mpi [ mpi.extra-requirements ] |
102 |
; |
102 |
<link>shared:<define>BOOST_MPI_DYN_LINK=1 |
103 |
|
103 |
<link>shared:<define>BOOST_MPI_PYTHON_DYN_LINK=1 |
104 |
python-extension mpi |
104 |
<link>shared:<define>BOOST_PYTHON_DYN_LINK=1 |
105 |
: # Sources |
105 |
<link>shared <runtime-link>shared |
106 |
python/collectives.cpp |
106 |
; |
107 |
python/py_communicator.cpp |
|
|
108 |
python/datatypes.cpp |
109 |
python/documentation.cpp |
110 |
python/py_environment.cpp |
111 |
python/py_nonblocking.cpp |
112 |
python/py_exception.cpp |
113 |
python/module.cpp |
114 |
python/py_request.cpp |
115 |
python/skeleton_and_content.cpp |
116 |
python/status.cpp |
117 |
python/py_timer.cpp |
118 |
: # Requirements |
119 |
<library>/boost/python//$(lib_boost_python($(py$(N)-version))) |
120 |
<library>$(lib_boost_mpi_python($(py$(N)-version))) |
121 |
<library>boost_mpi |
122 |
<library>/mpi//mpi [ mpi.extra-requirements ] |
123 |
<link>shared:<define>BOOST_MPI_DYN_LINK=1 |
124 |
<link>shared:<define>BOOST_MPI_PYTHON_DYN_LINK=1 |
125 |
<link>shared:<define>BOOST_PYTHON_DYN_LINK=1 |
126 |
<link>shared <runtime-link>shared |
127 |
<python-debugging>on:<define>BOOST_DEBUG_PYTHON |
128 |
<python>$(py$(N)-version) |
129 |
; |
130 |
|
131 |
libraries += $(lib_boost_mpi_python($(py$(N)-version))) ; |
132 |
} |
133 |
else |
134 |
{ |
135 |
alias $(lib_boost_mpi_python($(N))) ; |
136 |
} |
137 |
} |
138 |
} |
107 |
} |
139 |
} |
108 |
} |
140 |
else if ! ( --without-mpi in [ modules.peek : ARGV ] ) |
109 |
else if ! ( --without-mpi in [ modules.peek : ARGV ] ) |