minimal support for building tests with static linking

This commit is contained in:
Arvid Norberg 2013-09-18 08:42:30 +00:00
parent b754e5391a
commit 40682837c9
2 changed files with 7 additions and 2 deletions

View File

@ -43,6 +43,9 @@ lib libtorrent_test
: # default build
<link>shared
: # user-requirements
<link>shared:<define>TORRENT_LINK_TEST_SHARED
;
lib advapi32 : : <name>Advapi32 ;

View File

@ -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.