premiere-libtorrent/bindings/python/Jamfile

102 lines
2.4 KiB
Plaintext
Raw Normal View History

2007-01-10 17:11:43 +01:00
import python ;
import feature : feature ;
2007-01-10 17:11:43 +01:00
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 ;
feature visibility : default hidden : composite propagated link-incompatible ;
feature.compose <visibility>hidden : <cflags>-fvisibility=hidden <cxxflags>-fvisibility-inlines-hidden ;
rule libtorrent_linking ( properties * )
{
local result ;
if <toolset>gcc in $(properties)
{
result += <fpic>on ;
}
if <toolset>gcc in $(properties)
2013-04-27 21:35:41 +02:00
|| <toolset>darwin in $(properties)
|| <toolset>clang in $(properties)
|| <toolset>clang-darwin in $(properties)
{
result += <visibility>hidden ;
if ( <toolset>gcc in $(properties) )
{
result += <linkflags>-Wl,-Bsymbolic ;
}
}
2011-07-19 03:54:57 +02:00
if <boost>source in $(properties)
{
2013-04-27 21:35:41 +02:00
if <boost-link>static in $(properties)
2011-07-19 03:54:57 +02:00
{
result += <library>/boost/python//boost_python/<link>static ;
2011-07-19 03:54:57 +02:00
}
else
{
result += <library>/boost/python//boost_python/<link>shared ;
2013-04-27 21:35:41 +02:00
}
if <link>static in $(properties)
{
result += <library>/torrent//torrent/<link>static/<boost-link>static ;
2013-04-27 21:35:41 +02:00
}
else
{
2012-03-22 21:36:22 +01:00
result += <library>/torrent//torrent/<link>shared/<boost-link>shared ;
2011-07-19 03:54:57 +02:00
}
}
else
{
result += <library>boost_python ;
if <link>static in $(properties)
{
result += <library>/torrent//torrent/<link>static/<boost-link>static ;
}
else
{
result += <library>/torrent//torrent/<link>shared/<boost-link>shared ;
}
2011-07-19 03:54:57 +02:00
}
return $(result) ;
}
2007-01-10 17:11:43 +01:00
python-extension libtorrent
: # sources
src/module.cpp
2007-01-10 17:11:43 +01:00
src/big_number.cpp
src/converters.cpp
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
2012-11-23 21:43:42 +01:00
src/string.cpp
2007-01-10 17:11:43 +01:00
src/torrent_handle.cpp
src/torrent_status.cpp
src/session_settings.cpp
src/version.cpp
src/alert.cpp
src/datetime.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
: # requirements
<include>src
<conditional>@libtorrent_linking
: # default build
<boost-link>static
2007-01-10 17:11:43 +01:00
;
install stage_module : libtorrent : <location>. ;