mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
Update V2 Jamfile for Boost.
[SVN r16882]
This commit is contained in:
@@ -13,15 +13,23 @@ else if [ GLOB /usr/include/python2.2 : * ]
|
||||
PYTHON_PATH = /usr ;
|
||||
}
|
||||
|
||||
PYTHON_LIB = python2.2 ;
|
||||
|
||||
if [ os.name ] in CYGWIN NT
|
||||
{
|
||||
lib_condition = <shared>true: ;
|
||||
lib_condition = <link>shared: ;
|
||||
defines = USE_DL_IMPORT ;
|
||||
PYTHON_LIB = python2.2.dll ;
|
||||
|
||||
# Declare a target for the python interpreter library
|
||||
lib python : : <name>python2.2.dll ;
|
||||
PYTHON_LIB = python ;
|
||||
}
|
||||
else
|
||||
{
|
||||
lib python : : <name>python2.2 ;
|
||||
PYTHON_LIB = python ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if $(PYTHON_PATH) {
|
||||
|
||||
|
||||
@@ -29,7 +37,7 @@ project boost/python
|
||||
: source-location ../src
|
||||
: requirements <include>$(PYTHON_PATH)/include/python2.2
|
||||
$(lib_condition)<library-path>$(PYTHON_PATH)/lib/python2.2/config
|
||||
<shared>true:<find-library>$(PYTHON_LIB)
|
||||
<link>shared:<library>$(PYTHON_LIB)
|
||||
<define>$(defines)
|
||||
: use-requirements # requirement that will be propageted to *users* of this library
|
||||
<include>$(PYTHON_PATH)/include/python2.2
|
||||
@@ -40,7 +48,7 @@ project boost/python
|
||||
# <shared>true:<find-library>$(PYTHON_LIB)
|
||||
|
||||
<library-path>$(PYTHON_PATH)/lib/python2.2/config
|
||||
<find-library>$(PYTHON_LIB)
|
||||
<library>$(PYTHON_LIB)
|
||||
;
|
||||
|
||||
lib boost_python
|
||||
@@ -70,8 +78,8 @@ lib boost_python
|
||||
object/iterator.cpp
|
||||
object_protocol.cpp
|
||||
object_operators.cpp
|
||||
: <shared>false:<define>BOOST_PYTHON_STATIC_LIB
|
||||
: <link>static:<define>BOOST_PYTHON_STATIC_LIB
|
||||
<define>BOOST_PYTHON_SOURCE
|
||||
: <shared>true
|
||||
: <link>shared
|
||||
;
|
||||
}
|
||||
|
||||
@@ -7,4 +7,6 @@ project
|
||||
|
||||
python-extension getting_started1 : getting_started1.cpp : <shared>true ;
|
||||
python-extension getting_started2 : getting_started2.cpp : <shared>true ;
|
||||
|
||||
exe embedding_test : embedding_test.cpp : <define>BOOST_PYTHON_DYNAMIC_LIB <shared>true ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user