# Copyright David Abrahams 2001-2006. Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # # Boost.Python library Jamfile # declare the location of this subproject relative to the root subproject libs/python/build ; # bring in the rules for python import python ; if [ check-python-config ] { local bpl-linkflags ; if $(UNIX) && ( $(OS) = AIX ) { bpl-linkflags = "-e initlibboost_python" ; } # Enabling intrinsics (/0i) or maximize speed (/02) seem to cause # internal compiler errors with this toolset. local msvc-stlport-workarounds = off "-Ogty -O1 -Gs" ; local sources = numeric.cpp list.cpp long.cpp dict.cpp tuple.cpp str.cpp slice.cpp aix_init_module.cpp converter/from_python.cpp converter/registry.cpp converter/type_id.cpp object/enum.cpp object/class.cpp object/function.cpp object/inheritance.cpp object/life_support.cpp object/pickle_support.cpp errors.cpp module.cpp converter/builtin_converters.cpp converter/arg_to_python_base.cpp object/iterator.cpp object/stl_iterator.cpp object_protocol.cpp object_operators.cpp wrapper.cpp exec.cpp import.cpp ; dll boost_python : ../src/$(sources) : $(BOOST_PYTHON_V2_PROPERTIES) BOOST_PYTHON_SOURCE $(bpl-linkflags) $(msvc-stlport-workarounds) <*>-bind_at_load <*>-bind_at_load ; template extension : boost_python : ../../.. ; lib boost_python : # sources ../src/$(sources) : # requirements $(BOOST_PYTHON_V2_PROPERTIES) BOOST_PYTHON_SOURCE BOOST_STATIC_LIB $(bpl-linkflags) $(msvc-stlport-workarounds) ; stage bin-stage : boost_python boost_python : "_debug" "_pydebug" : debug release ; install python lib : boost_python boost_python ; }