forked from premiere/premiere-libtorrent
merged windows test build fix from libtorrent_aio
This commit is contained in:
parent
63532b2c9b
commit
a649346b43
22
test/Jamfile
22
test/Jamfile
|
@ -7,9 +7,29 @@ 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) ;
|
||||||
|
}
|
||||||
|
|
||||||
project
|
project
|
||||||
: requirements
|
: requirements
|
||||||
<library>/torrent//torrent/<link>shared/<boost-link>shared/<export-extra>on
|
<conditional>@libtorrent_dependency
|
||||||
<source>main.cpp
|
<source>main.cpp
|
||||||
<source>setup_transfer.cpp
|
<source>setup_transfer.cpp
|
||||||
: default-build
|
: default-build
|
||||||
|
|
Loading…
Reference in New Issue