import python ; use-project /torrent : ../.. ; lib boost_python : : darwin boost_python-mt $(boost-library-search-path) ; lib boost_python : : boost_python ; rule libtorrent_linking ( properties * ) { local result ; if gcc in $(properties) { result += on ; } if gcc in $(properties) || darwin in $(properties) || clang in $(properties) { result += -fvisibility=hidden ; } if source in $(properties) { if static in $(properties) || static in $(properties) { result += /boost/python//boost_python/static ; result += /torrent//torrent/static ; } else { result += /boost/python//boost_python/shared ; result += /torrent//torrent/shared/shared ; } } else { result += boost_python ; result += /torrent//torrent/shared/shared ; } return $(result) ; } python-extension libtorrent : src/module.cpp src/big_number.cpp src/converters.cpp src/create_torrent.cpp src/fingerprint.cpp src/utility.cpp src/session.cpp src/entry.cpp src/torrent_info.cpp src/string.cpp src/torrent_handle.cpp src/torrent_status.cpp src/session_settings.cpp src/version.cpp src/alert.cpp src/datetime.cpp src/torrent.cpp src/peer_info.cpp src/ip_filter.cpp src/magnet_uri.cpp src/error_code.cpp : src @libtorrent_linking : static ; install stage_module : libtorrent : . ;