Jamfile fixes for the python bindings to work with system installed boost libraries
This commit is contained in:
@@ -2,6 +2,25 @@ import python ;
|
||||
|
||||
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
|
||||
: src/module.cpp
|
||||
src/big_number.cpp
|
||||
@@ -24,7 +43,7 @@ python-extension libtorrent
|
||||
src/peer_info.cpp
|
||||
src/ip_filter.cpp
|
||||
/torrent//torrent
|
||||
/boost/python//boost_python
|
||||
: <include>src
|
||||
: <conditional>@linking
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user