premiere-libtorrent/tools/Jamfile

43 lines
890 B
Plaintext

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 <link>shared in $(properties)
{
result +=
<library>/torrent//torrent/<link>shared/<boost-link>shared ;
}
else
{
result +=
<library>/torrent//torrent/<link>static/<boost-link>static ;
}
return $(result) ;
}
project tools
: requirements
<threading>multi
# disable warning C4275: non DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
<toolset>msvc:<cflags>/wd4275
<conditional>@link_libtorrent
: default-build
<link>static
;
exe fuzz_torrent : fuzz_torrent.cpp ;
exe parse_access_log : parse_access_log.cpp ;
exe dht : dht_put.cpp : <include>../ed25519/src ;
exe session_log_alerts : session_log_alerts.cpp ;