import modules ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
use-project /torrent : .. ;
if $(BOOST_ROOT)
{
use-project /boost : $(BOOST_ROOT) ;
}
rule link_libtorrent ( properties * )
{
local result ;
if shared in $(properties)
{
result +=
/torrent//torrent/shared/shared ;
}
else
{
result +=
/torrent//torrent/static/static ;
}
return $(result) ;
}
project tools
: requirements
multi
# disable warning C4275: non DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
msvc:/wd4275
# C4268: 'identifier' : 'const' static/global data initialized
# with compiler generated default constructor fills the object with zeros
msvc:/wd4268
@link_libtorrent
: default-build
static
;
exe dht : dht_put.cpp : ../ed25519/src ;
exe session_log_alerts : session_log_alerts.cpp ;