# 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) import os ; import modules ; import python ; if [ python.configured ] { project boost/python : source-location ../src : requirements #$(PYTHON_PATH)/include # $(lib_condition)$(PYTHON_PATH)/libs # shared:$(PYTHON_LIB) # $(defines) #: usage-requirements # requirement that will be propageted to *users* of this library # $(PYTHON_PATH)/include # We have a bug which causes us to conclude that conditionalized # properties in this section are not free. # $(lib_condition)$(PYTHON_PATH)/lib/python2.2/config # true:$(PYTHON_LIB) # $(PYTHON_PATH)/lib/python2.2/config # $(PYTHON_LIB) ; lib boost_python : # 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 import.cpp exec.cpp : # requirements static:BOOST_PYTHON_STATIC_LIB BOOST_PYTHON_SOURCE # On Linux, we don't link to Python library itself. If # Boost.Python is used for extension, all Python # symbols are available in Python interpreter. # If Boost.Python is used for extending, client # is required to link to /python//python itself. # On Windows, all code using Python has to link # to python import library. The 'python_for_extension' # is the target that's setup to provide either just # include paths, or import library. /python//python_for_extensions : # default build shared : # usage requirements static:BOOST_PYTHON_STATIC_LIB shared:BOOST_PYTHON_DYNAMIC_LIB ; } else { ECHO "warning: Python location is not configured" ; ECHO "warning: the Boost.Python library won't be built" ; }