|
Lines 115-122
Link Here
|
| 115 |
; |
115 |
; |
| 116 |
} |
116 |
} |
| 117 |
|
117 |
|
| 118 |
libraries = boost_python ; |
118 |
rule lib_boost_numpy |
|
|
119 |
{ |
| 120 |
local python_major_version = [ MATCH "^([^.]+)" : [ feature.values python ] ] ; |
| 121 |
local python2 ; |
| 122 |
if $(python_major_version) = 2 |
| 123 |
{ |
| 124 |
python2 = true ; |
| 125 |
} |
| 126 |
|
| 127 |
numpy-include = [ python.numpy-include ] ; |
| 128 |
lib boost_numpy |
| 129 |
: # sources |
| 130 |
numpy/dtype.cpp |
| 131 |
numpy/matrix.cpp |
| 132 |
numpy/ndarray.cpp |
| 133 |
numpy/numpy.cpp |
| 134 |
numpy/scalars.cpp |
| 135 |
numpy/ufunc.cpp |
| 136 |
: # requirements |
| 137 |
<link>static:<define>BOOST_NUMPY_STATIC_LIB |
| 138 |
<define>BOOST_NUMPY_SOURCE |
| 139 |
[ cond $(python2) : <cxxflags>-fno-strict-aliasing ] |
| 140 |
[ cond [ python.numpy ] : <library>/python//python ] |
| 141 |
[ unless [ python.numpy ] : <build>no ] |
| 142 |
<include>$(numpy-include) |
| 143 |
<library>boost_python |
| 144 |
<python-debugging>on:<define>BOOST_DEBUG_PYTHON |
| 145 |
|
| 146 |
-<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag |
| 147 |
<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).python-tag |
| 148 |
|
| 149 |
: # default build |
| 150 |
<link>shared |
| 151 |
: # usage requirements |
| 152 |
<link>static:<define>BOOST_NUMPY_STATIC_LIB |
| 153 |
<python-debugging>on:<define>BOOST_DEBUG_PYTHON |
| 154 |
; |
| 155 |
} |
| 156 |
|
| 157 |
libraries = boost_python boost_numpy ; |
| 119 |
|
158 |
|
| 120 |
lib_boost_python ; |
159 |
lib_boost_python ; |
|
|
160 |
lib_boost_numpy ; |
| 121 |
|
161 |
|
| 122 |
boost-install $(libraries) ; |
162 |
boost-install $(libraries) ; |