forked from premiere/premiere-libtorrent
minimal support for building tests with static linking
This commit is contained in:
parent
b754e5391a
commit
40682837c9
|
@ -43,6 +43,9 @@ lib libtorrent_test
|
|||
|
||||
: # default build
|
||||
<link>shared
|
||||
|
||||
: # user-requirements
|
||||
<link>shared:<define>TORRENT_LINK_TEST_SHARED
|
||||
;
|
||||
|
||||
lib advapi32 : : <name>Advapi32 ;
|
||||
|
|
|
@ -39,10 +39,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#include "libtorrent/config.hpp"
|
||||
|
||||
#ifdef TORRENT_BUILDING_TEST_SHARED
|
||||
#if defined TORRENT_BUILDING_TEST_SHARED
|
||||
#define EXPORT BOOST_SYMBOL_EXPORT
|
||||
#else
|
||||
#elif defined TORRENT_LINK_TEST_SHARED
|
||||
#define EXPORT BOOST_SYMBOL_IMPORT
|
||||
#else
|
||||
#define EXPORT
|
||||
#endif
|
||||
|
||||
// the unit tests need access to these.
|
||||
|
|
Loading…
Reference in New Issue