2
0
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:
Vladimir Prus
2003-01-13 10:05:01 +00:00
parent e13a11eb7f
commit ba4906d05c
2 changed files with 18 additions and 8 deletions

View File

@@ -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
;
}

View File

@@ -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 ;