2007-01-10 17:11:43 +01:00
|
|
|
import python ;
|
|
|
|
|
2007-06-13 06:22:06 +02:00
|
|
|
use-project /torrent : ../.. ;
|
|
|
|
|
2009-03-02 06:43:56 +01:00
|
|
|
lib boost_python : : <target-os>darwin <name>boost_python-mt $(boost-library-search-path) ;
|
|
|
|
lib boost_python : : <name>boost_python ;
|
2008-05-08 03:53:05 +02:00
|
|
|
|
2008-11-23 21:41:24 +01:00
|
|
|
rule libtorrent_linking ( properties * )
|
|
|
|
{
|
|
|
|
local result ;
|
|
|
|
|
|
|
|
if <toolset>gcc in $(properties)
|
|
|
|
{
|
2008-12-21 00:30:53 +01:00
|
|
|
result += <fpic>on ;
|
2008-11-23 21:41:24 +01:00
|
|
|
}
|
|
|
|
|
2012-03-22 04:33:54 +01:00
|
|
|
if <toolset>gcc in $(properties)
|
|
|
|
|| <toolset>darwin in $(properties)
|
|
|
|
|| <toolset>clang in $(properties)
|
|
|
|
{
|
|
|
|
result += <cxxflags>-fvisibility=hidden ;
|
|
|
|
}
|
2008-12-20 22:12:39 +01:00
|
|
|
|
2008-11-23 21:41:24 +01:00
|
|
|
# when building peer_plugin.cpp on msvc-7.1 it fails
|
|
|
|
# running out of internal heap space. Don't add it
|
|
|
|
# to windows build, since it's not critical anyway
|
|
|
|
if <toolset>msvc in $(properties)
|
|
|
|
{
|
|
|
|
result += <define>TORRENT_NO_PYTHON_PLUGINS ;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
result += <source>src/peer_plugin.cpp ;
|
|
|
|
}
|
2011-07-19 03:54:57 +02:00
|
|
|
|
|
|
|
if <boost>source in $(properties)
|
|
|
|
{
|
|
|
|
if <boost-link>static in $(properties) || <link>static in $(properties)
|
|
|
|
{
|
2012-03-22 04:33:54 +01:00
|
|
|
result += <library>/boost/python//boost_python/<link>static ;
|
2012-03-22 05:37:32 +01:00
|
|
|
result += <library>/torrent//torrent/<link>static ;
|
2011-07-19 03:54:57 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-03-22 04:33:54 +01:00
|
|
|
result += <library>/boost/python//boost_python/<link>shared ;
|
2012-03-22 05:37:32 +01:00
|
|
|
result += <library>/torrent//torrent/<link>shared ;
|
2011-07-19 03:54:57 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
result += <library>boost_python ;
|
|
|
|
}
|
|
|
|
|
2008-11-23 21:41:24 +01:00
|
|
|
return $(result) ;
|
|
|
|
}
|
|
|
|
|
2007-01-10 17:11:43 +01:00
|
|
|
python-extension libtorrent
|
|
|
|
: src/module.cpp
|
|
|
|
src/big_number.cpp
|
2009-02-20 09:58:36 +01:00
|
|
|
src/converters.cpp
|
2009-02-21 09:39:26 +01:00
|
|
|
src/create_torrent.cpp
|
2007-01-10 17:11:43 +01:00
|
|
|
src/fingerprint.cpp
|
|
|
|
src/utility.cpp
|
|
|
|
src/session.cpp
|
|
|
|
src/entry.cpp
|
|
|
|
src/torrent_info.cpp
|
|
|
|
src/torrent_handle.cpp
|
|
|
|
src/torrent_status.cpp
|
|
|
|
src/session_settings.cpp
|
|
|
|
src/version.cpp
|
|
|
|
src/alert.cpp
|
|
|
|
src/datetime.cpp
|
|
|
|
src/extensions.cpp
|
|
|
|
src/torrent.cpp
|
|
|
|
src/peer_info.cpp
|
2008-02-17 22:17:43 +01:00
|
|
|
src/ip_filter.cpp
|
2008-10-02 07:00:40 +02:00
|
|
|
src/magnet_uri.cpp
|
2011-06-25 22:11:31 +02:00
|
|
|
src/error_code.cpp
|
2007-01-10 17:11:43 +01:00
|
|
|
: <include>src
|
2008-11-23 21:41:24 +01:00
|
|
|
<conditional>@libtorrent_linking
|
2012-03-22 05:37:32 +01:00
|
|
|
:
|
|
|
|
<boost-link>static
|
2007-01-10 17:11:43 +01:00
|
|
|
;
|
|
|
|
|
2010-03-28 04:06:50 +02:00
|
|
|
install stage_module : libtorrent : <location>. ;
|
|
|
|
|