attempted fix for link issue

This commit is contained in:
Arvid Norberg 2013-06-23 08:14:18 +00:00
parent d8820a31fc
commit d77e3cb59f
1 changed files with 2 additions and 22 deletions

View File

@ -7,39 +7,19 @@ exe test_natpmp : test_natpmp.cpp /torrent//torrent
explicit test_natpmp ;
rule libtorrent_dependency ( properties * )
{
local result ;
# if <toolset>msvc in $(properties)
# {
# for some reason, the visual studio debugger seems
# to get very confused with the dynamic linking.
# since debugging unit tests is common, just link
# statically with msvc
# result += <library>/torrent//torrent/<link>static/<boost-link>static/<export-extra>on ;
# }
# else
# {
result += <library>/torrent//torrent/<link>shared/<boost-link>shared/<export-extra>on ;
# }
return $(result) ;
}
lib libtorrent_test
: # sources
setup_transfer.cpp
dht_server.cpp
peer_server.cpp
: # requirements
<conditional>@libtorrent_dependency
<library>/torrent//torrent/<link>shared/<boost-link>shared/<export-extra>on
;
project
: requirements
<source>main.cpp
<conditional>@libtorrent_dependency
<library>/torrent//torrent/<link>shared/<boost-link>shared/<export-extra>on
<library>libtorrent_test/<link>shared
: default-build
<threading>multi