@@ -4,14 +4,18 @@ subproject libs/python ;
44SEARCH on <module@>python.jam = $(BOOST_BUILD_PATH) ;
55include <module@>python.jam ;
66
7- PYTHON_PROPERTIES
8- += <metrowerks><*><cxxflags>"-inline deferred"
9- <cxx><*><include>$(BOOST_ROOT)/boost/compatibility/cpp_c_headers
10- <define>BOOST_PYTHON_DYNAMIC_LIB
11- <define>BOOST_PYTHON_V2
12- ;
137
148{
9+ local BOOST_PYTHON_V2_PROPERTIES
10+ = $(PYTHON_PROPERTIES)
11+ <metrowerks><*><cxxflags>"-inline deferred"
12+ <cxx><*><include>$(BOOST_ROOT)/boost/compatibility/cpp_c_headers
13+ <define>BOOST_PYTHON_DYNAMIC_LIB
14+ <define>BOOST_PYTHON_V2
15+ ;
16+
17+ local PYTHON_PROPERTIES = $(BOOST_PYTHON_V2_PROPERTIES) ;
18+
1519 dll bpl
1620 :
1721 src/converter/from_python.cpp
@@ -26,7 +30,7 @@ PYTHON_PROPERTIES
2630 src/objects.cpp
2731 src/converter/builtin_converters.cpp
2832 :
29- $(PYTHON_PROPERTIES )
33+ $(BOOST_PYTHON_V2_PROPERTIES )
3034 <define>BOOST_PYTHON_SOURCE
3135 ;
3236
@@ -67,4 +71,20 @@ PYTHON_PROPERTIES
6771 :
6872 : debug-python
6973 ;
74+
7075}
76+
77+ unit-test indirect_traits_test
78+ : test/indirect_traits_test.cpp : <include>$(BOOST_ROOT) ;
79+ unit-test destroy_test
80+ : test/destroy_test.cpp : <include>$(BOOST_ROOT) ;
81+ unit-test pointer_type_id_test
82+ : test/pointer_type_id_test.cpp : <include>$(BOOST_ROOT) ;
83+
84+ unit-test select_from_python_test
85+ : test/select_from_python_test.cpp
86+ src/converter/type_id.cpp
87+ src/converter/registry.cpp # MWerks needs this for some reason
88+ : $(PYTHON_PROPERTIES)
89+ ;
90+
0 commit comments