attempted fix for link issue
This commit is contained in:
parent
d8820a31fc
commit
d77e3cb59f
24
test/Jamfile
24
test/Jamfile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue