attempted fix for link issue
This commit is contained in:
24
test/Jamfile
24
test/Jamfile
@@ -7,39 +7,19 @@ exe test_natpmp : test_natpmp.cpp /torrent//torrent
|
|||||||
|
|
||||||
explicit test_natpmp ;
|
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
|
lib libtorrent_test
|
||||||
: # sources
|
: # sources
|
||||||
setup_transfer.cpp
|
setup_transfer.cpp
|
||||||
dht_server.cpp
|
dht_server.cpp
|
||||||
peer_server.cpp
|
peer_server.cpp
|
||||||
: # requirements
|
: # requirements
|
||||||
<conditional>@libtorrent_dependency
|
<library>/torrent//torrent/<link>shared/<boost-link>shared/<export-extra>on
|
||||||
;
|
;
|
||||||
|
|
||||||
project
|
project
|
||||||
: requirements
|
: requirements
|
||||||
<source>main.cpp
|
<source>main.cpp
|
||||||
<conditional>@libtorrent_dependency
|
<library>/torrent//torrent/<link>shared/<boost-link>shared/<export-extra>on
|
||||||
<library>libtorrent_test/<link>shared
|
<library>libtorrent_test/<link>shared
|
||||||
: default-build
|
: default-build
|
||||||
<threading>multi
|
<threading>multi
|
||||||
|
Reference in New Issue
Block a user