2009-04-06 06:55:15 +02:00
|
|
|
use-project /torrent : ../.. ;
|
|
|
|
|
|
|
|
rule libtorrent_linking ( properties * )
|
|
|
|
{
|
|
|
|
local result ;
|
|
|
|
|
|
|
|
if <toolset>gcc in $(properties) && <link>shared in $(properties)
|
|
|
|
{
|
|
|
|
result += <fpic>on ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# if <toolset>gcc in $(properties) || <toolset>darwin in $(properties)
|
|
|
|
# {
|
|
|
|
# result += <visibility>hidden ;
|
|
|
|
# }
|
|
|
|
|
|
|
|
return $(result) ;
|
|
|
|
}
|
|
|
|
|
2009-04-07 17:55:05 +02:00
|
|
|
lib torrentc
|
2009-04-06 06:55:15 +02:00
|
|
|
|
|
|
|
: # sources
|
|
|
|
library.cpp
|
|
|
|
|
|
|
|
: # requirements
|
|
|
|
<conditional>@libtorrent_linking
|
|
|
|
<library>/torrent//torrent/<link>static
|
|
|
|
<include>.
|
|
|
|
|
|
|
|
: # default build
|
|
|
|
<link>static
|
|
|
|
|
|
|
|
: # usage-requirements
|
|
|
|
<include>.
|
|
|
|
;
|
|
|
|
|
2009-04-07 17:55:05 +02:00
|
|
|
exe simple_client : simple_client.c torrentc ;
|
2009-04-06 06:55:15 +02:00
|
|
|
|