subproject libs/python ; # bring in the rules for python SEARCH on python.jam = $(BOOST_BUILD_PATH) ; include python.jam ; PYTHON_PROPERTIES += <*>"-inline deferred" <*>$(BOOST_ROOT)/boost/compatibility/cpp_c_headers ; local export-bpl ; if $(NT) { # Stick this in the property set to deal with gcc export-bpl = export-bpl-logic ; rule export-bpl-logic ( toolset variant : properties * ) { if $(toolset) != gcc { properties += BOOST_PYTHON_EXPORT=__declspec(dllexport) ; } else { properties += BOOST_PYTHON_EXPORT= ; } return $(properties) ; } } dll bpl : src/converter/body.cpp src/converter/handle.cpp src/converter/registry.cpp src/converter/wrapper.cpp src/converter/unwrap.cpp src/converter/unwrapper.cpp src/converter/type_id.cpp src/object/class.cpp src/object/function.cpp : $(PYTHON_PROPERTIES) $(export-bpl) # BOOST_PYTHON_TRACE ; extension m1 : test/m1.cpp bpl # BOOST_PYTHON_TRACE : <*>BOOST_PYTHON_EXPORT= : debug-python ; extension m2 : test/m2.cpp bpl # BOOST_PYTHON_TRACE : <*>BOOST_PYTHON_EXPORT= : debug-python ; boost-python-runtest try : test/newtest.py m1 m2 : : debug-python ;