Jamfile fixes for the python bindings to work with system installed boost libraries

This commit is contained in:
Arvid Norberg 2008-05-08 01:53:05 +00:00
parent 1522f52db8
commit 64cb8696cd
2 changed files with 25 additions and 4 deletions

View File

@ -89,7 +89,8 @@ rule linking ( properties * )
if <boost>system in $(properties) if <boost>system in $(properties)
{ {
result += <library>boost_filesystem result += <library>boost_filesystem
<library>boost_thread <library>boost_iostreams <library>boost_thread
<library>boost_iostreams
; ;
} }
@ -230,8 +231,9 @@ lib gdi32 : : <name>gdi32 ;
local library-search-path = <search>/opt/local/lib <search>/usr/lib <search>/usr/local/lib <search>/sw/lib ; local library-search-path = <search>/opt/local/lib <search>/usr/lib <search>/usr/local/lib <search>/sw/lib ;
lib filesystem : : <name>boost_filesystem $(library-search-path) ; lib boost_filesystem : : <name>boost_filesystem $(library-search-path) ;
lib thread : : <name>boost_thread $(library-search-path) ; lib boost_thread : : <name>boost_thread $(library-search-path) ;
lib boost_iostreams : : <name>boost_iostreams $(library-search-path) ;
# openssl on linux/bsd/macos etc. # openssl on linux/bsd/macos etc.
lib crypto : : <name>crypto ; lib crypto : : <name>crypto ;

View File

@ -2,6 +2,25 @@ import python ;
use-project /torrent : ../.. ; use-project /torrent : ../.. ;
# rule for linking the correct libraries depending
# on features and target-os
rule linking ( properties * )
{
local result ;
if <boost>system in $(properties)
{
result += <library>boost_python ;
}
if <boost>source in $(properties)
{
result += <library>/boost/python//boost_python ;
}
return $(result) ;
}
lib boost_python : : <name>boost_python $(library-search-path) ;
python-extension libtorrent python-extension libtorrent
: src/module.cpp : src/module.cpp
src/big_number.cpp src/big_number.cpp
@ -24,7 +43,7 @@ python-extension libtorrent
src/peer_info.cpp src/peer_info.cpp
src/ip_filter.cpp src/ip_filter.cpp
/torrent//torrent /torrent//torrent
/boost/python//boost_python
: <include>src : <include>src
: <conditional>@linking
; ;