2012-04-11 06:53:45 +02:00
|
|
|
import modules ;
|
|
|
|
|
|
|
|
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
|
|
|
|
|
|
|
|
use-project /torrent : .. ;
|
|
|
|
|
|
|
|
if $(BOOST_ROOT)
|
|
|
|
{
|
|
|
|
use-project /boost : $(BOOST_ROOT) ;
|
|
|
|
}
|
|
|
|
|
2014-03-06 10:45:16 +01:00
|
|
|
rule link_libtorrent ( properties * )
|
|
|
|
{
|
|
|
|
local result ;
|
|
|
|
if <link>shared in $(properties)
|
|
|
|
{
|
|
|
|
result +=
|
2014-03-30 22:11:01 +02:00
|
|
|
<library>/torrent//torrent/<link>shared/<boost-link>shared ;
|
2014-03-06 10:45:16 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
result +=
|
2014-03-30 22:11:01 +02:00
|
|
|
<library>/torrent//torrent/<link>static/<boost-link>static ;
|
2014-03-06 10:45:16 +01:00
|
|
|
}
|
|
|
|
return $(result) ;
|
|
|
|
}
|
|
|
|
|
2012-04-11 06:53:45 +02:00
|
|
|
project tools
|
|
|
|
: requirements
|
2014-03-06 10:45:16 +01:00
|
|
|
<threading>multi
|
2016-04-25 23:22:09 +02:00
|
|
|
# disable warning C4275: non DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
|
|
|
|
<toolset>msvc:<cflags>/wd4275
|
2018-11-16 16:19:12 +01:00
|
|
|
# C4268: 'identifier' : 'const' static/global data initialized
|
|
|
|
# with compiler generated default constructor fills the object with zeros
|
|
|
|
<toolset>msvc:<cflags>/wd4268
|
2014-03-06 10:45:16 +01:00
|
|
|
<conditional>@link_libtorrent
|
2012-04-11 06:53:45 +02:00
|
|
|
: default-build
|
|
|
|
<link>static
|
|
|
|
;
|
|
|
|
|
2014-03-03 00:35:35 +01:00
|
|
|
exe dht : dht_put.cpp : <include>../ed25519/src ;
|
2017-04-07 23:53:12 +02:00
|
|
|
exe session_log_alerts : session_log_alerts.cpp ;
|
2012-04-11 06:53:45 +02:00
|
|
|
|