make python bindings build with visibility=hidden by default

This commit is contained in:
Arvid Norberg 2012-03-22 04:37:32 +00:00
parent a63ae0650f
commit 21d3a75c41
2 changed files with 8 additions and 1 deletions

View File

@ -38,10 +38,12 @@ rule libtorrent_linking ( properties * )
if <boost-link>static in $(properties) || <link>static in $(properties)
{
result += <library>/boost/python//boost_python/<link>static ;
result += <library>/torrent//torrent/<link>static ;
}
else
{
result += <library>/boost/python//boost_python/<link>shared ;
result += <library>/torrent//torrent/<link>shared ;
}
}
else
@ -75,8 +77,9 @@ python-extension libtorrent
src/magnet_uri.cpp
src/error_code.cpp
: <include>src
<library>/torrent//torrent
<conditional>@libtorrent_linking
:
<boost-link>static
;
install stage_module : libtorrent : <location>. ;

View File

@ -2,6 +2,10 @@
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifdef __GNUC__
#define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1
#endif
#include <boost/python/module.hpp>
void bind_utility();