subproject libs/python ; # bring in the rules for python SEARCH on python.jam = $(BOOST_BUILD_PATH) ; include python.jam ; { local BOOST_PYTHON_V2_PROPERTIES = $(PYTHON_PROPERTIES) <*>"-inline deferred" <*>$(BOOST_ROOT)/boost/compatibility/cpp_c_headers BOOST_PYTHON_DYNAMIC_LIB BOOST_PYTHON_V2 ; local gcc-release-properties = speed -fomit-frame-pointer on -foptimize-sibling-calls ; local PYTHON_PROPERTIES = $(BOOST_PYTHON_V2_PROPERTIES) $(gcc-release-properties) ; dll bpl : src/converter/from_python.cpp src/converter/registry.cpp src/converter/type_id.cpp src/object/class.cpp src/object/function.cpp src/object/inheritance.cpp src/object/life_support.cpp src/errors.cpp src/module.cpp src/objects.cpp src/converter/builtin_converters.cpp : $(BOOST_PYTHON_V2_PROPERTIES) BOOST_PYTHON_SOURCE ; # -------- general test ------- extension m1 : test/m1.cpp bpl : : ; extension m2 : test/m2.cpp bpl : : ; boost-python-runtest try : test/newtest.py m1 m2 : : ; # ----------- builtin converters ----------- extension builtin_converters_ext : test/test_builtin_converters.cpp bpl : : ; boost-python-runtest test_builtin_converters : test/test_builtin_converters.py builtin_converters_ext : : ; # ----------- pointer adoption ----------- extension test_pointer_adoption_ext : test/test_pointer_adoption.cpp bpl : : ; boost-python-runtest test_pointer_adoption : test/test_pointer_adoption.py test_pointer_adoption_ext : : ; } unit-test indirect_traits_test : test/indirect_traits_test.cpp : $(BOOST_ROOT) ; unit-test destroy_test : test/destroy_test.cpp : $(BOOST_ROOT) ; unit-test pointer_type_id_test : test/pointer_type_id_test.cpp : $(BOOST_ROOT) ; unit-test select_from_python_test : test/select_from_python_test.cpp src/converter/type_id.cpp src/converter/registry.cpp # MWerks needs this for some reason : $(PYTHON_PROPERTIES) ;