@@ -30,7 +30,7 @@ rule py-run ( sources * : input-file ? )
30
30
: $(input-file)
31
31
: #requirements
32
32
<define>BOOST_PYTHON_SUPPRESS_REGISTRY_INITIALIZATION
33
-
33
+
34
34
] ;
35
35
}
36
36
@@ -54,6 +54,18 @@ rule require-windows ( properties * )
54
54
55
55
if [ python.configured ]
56
56
{
57
+ alias base_deps : usage-requirements
58
+ <library>/boost/align//boost_align
59
+ <library>/boost/assert//boost_assert
60
+ <library>/boost/config//boost_config
61
+ <library>/boost/core//boost_core
62
+ <library>/boost/detail//boost_detail
63
+ <library>/boost/function//boost_function
64
+ <library>/boost/mpl//boost_mpl
65
+ <library>/boost/preprocessor//boost_preprocessor
66
+ <library>/boost/static_assert//boost_static_assert
67
+ <library>/boost/type_traits//boost_type_traits
68
+ ;
57
69
test-suite python
58
70
:
59
71
@@ -99,8 +111,8 @@ bpl-test crossmod_exception
99
111
[ bpl-test andreas_beyer ]
100
112
[ bpl-test wrapper_held_type ]
101
113
102
- [ bpl-test polymorphism2_auto_ptr
103
- : polymorphism2_auto_ptr.py polymorphism2.py polymorphism2_auto_ptr.cpp
114
+ [ bpl-test polymorphism2_auto_ptr
115
+ : polymorphism2_auto_ptr.py polymorphism2.py polymorphism2_auto_ptr.cpp
104
116
: [ requires auto_ptr ]
105
117
]
106
118
@@ -121,7 +133,7 @@ bpl-test crossmod_exception
121
133
[ bpl-test try : newtest.py m1.cpp m2.cpp ]
122
134
[ bpl-test const_argument ]
123
135
[ bpl-test keywords : keywords.cpp keywords_test.py ]
124
-
136
+
125
137
126
138
[ python-extension builtin_converters_ext : builtin_converters.cpp /boost/python//boost_python ]
127
139
[ bpl-test builtin_converters : test_builtin_converters.py builtin_converters_ext ]
@@ -194,13 +206,13 @@ bpl-test crossmod_opaque
194
206
# Whenever the cause for the failure of the polymorphism test is found
195
207
# and fixed, this should be retested.
196
208
<toolset>hp_cxx:<build>no ]
197
-
209
+
198
210
[ python-extension map_indexing_suite_ext
199
211
: map_indexing_suite.cpp int_map_indexing_suite.cpp a_map_indexing_suite.cpp
200
212
/boost/python//boost_python ]
201
- [ bpl-test
213
+ [ bpl-test
202
214
map_indexing_suite : map_indexing_suite.py map_indexing_suite_ext ]
203
-
215
+
204
216
[ run import_.cpp /boost/python//boost_python $(PY) : : import_.py ]
205
217
206
218
# if $(TEST_BIENSTMAN_NON_BUGS)
@@ -214,28 +226,29 @@ bpl-test crossmod_opaque
214
226
215
227
# --- unit tests of library components ---
216
228
217
- [ compile indirect_traits_test.cpp ]
218
- [ run destroy_test.cpp ]
229
+ [ compile indirect_traits_test.cpp : <use>base_deps ]
230
+ [ run destroy_test.cpp : : : <use>base_deps ]
219
231
[ py-run pointer_type_id_test.cpp ]
220
232
[ py-run bases.cpp ]
221
- [ run if_else.cpp ]
233
+ [ run if_else.cpp : : : <use>base_deps ]
222
234
[ py-run pointee.cpp ]
223
- [ run result.cpp ]
235
+ [ run result.cpp : : : <use>base_deps ]
224
236
225
- [ compile string_literal.cpp ]
237
+ [ compile string_literal.cpp : <use>base_deps ]
226
238
[ py-compile borrowed.cpp ]
227
239
[ py-compile object_manager.cpp ]
228
240
[ py-compile copy_ctor_mutates_rhs.cpp ]
229
241
230
242
[ py-run upcast.cpp ]
231
-
243
+
232
244
[ py-compile select_holder.cpp ]
233
-
234
- [ run select_from_python_test.cpp ../src/converter/type_id.cpp
235
- :
245
+
246
+ [ run select_from_python_test.cpp ../src/converter/type_id.cpp
247
+ :
236
248
:
237
249
: <define>BOOST_PYTHON_STATIC_LIB
238
250
<use>$(PY)
251
+ <use>base_deps
239
252
240
253
]
241
254
0 commit comments