forked from premiere/premiere-libtorrent
Fixed to make it compatible with mingw-w64 and generic linux
This commit is contained in:
parent
d84cffd7e1
commit
611d0c1c6e
19
Jamfile
19
Jamfile
|
@ -94,6 +94,7 @@ rule linking ( properties * )
|
||||||
# exclude gcc from a regular windows build to make mingw
|
# exclude gcc from a regular windows build to make mingw
|
||||||
# link against the regular unix library name
|
# link against the regular unix library name
|
||||||
if <target-os>windows in $(properties)
|
if <target-os>windows in $(properties)
|
||||||
|
&& ! <toolset>gcc in $(properties)
|
||||||
{
|
{
|
||||||
result += <library>ssleay32
|
result += <library>ssleay32
|
||||||
<library>libeay32
|
<library>libeay32
|
||||||
|
@ -105,13 +106,7 @@ rule linking ( properties * )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result += <library>crypto <library>ssl <library>z ;
|
result += <library>crypto <library>ssl ;
|
||||||
}
|
|
||||||
|
|
||||||
if <target-os>linux in $(properties)
|
|
||||||
{
|
|
||||||
# linker library on linux, required when using openssl
|
|
||||||
result += <library>dl ;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,12 +170,6 @@ rule linking ( properties * )
|
||||||
result += <library>libsocket <library>libnsl ;
|
result += <library>libsocket <library>libnsl ;
|
||||||
}
|
}
|
||||||
|
|
||||||
# clock_gettime on linux requires librt
|
|
||||||
if <target-os>linux in $(properties)
|
|
||||||
{
|
|
||||||
result += <library>librt ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if <iconv>on in $(properties)
|
if <iconv>on in $(properties)
|
||||||
{
|
{
|
||||||
result += <library>libiconv ;
|
result += <library>libiconv ;
|
||||||
|
@ -555,8 +544,8 @@ variant test_barebones : debug
|
||||||
# required for openssl on windows
|
# required for openssl on windows
|
||||||
lib ssleay32 : : <name>ssleay32 ;
|
lib ssleay32 : : <name>ssleay32 ;
|
||||||
lib libeay32 : : <name>libeay32 ;
|
lib libeay32 : : <name>libeay32 ;
|
||||||
lib advapi32 : : <name>Advapi32 ;
|
lib advapi32 : : <name>advapi32 ;
|
||||||
lib user32 : : <name>User32 ;
|
lib user32 : : <name>user32 ;
|
||||||
lib shell32 : : <name>shell32 ;
|
lib shell32 : : <name>shell32 ;
|
||||||
lib gdi32 : : <name>gdi32 ;
|
lib gdi32 : : <name>gdi32 ;
|
||||||
lib dbghelp : : <name>dbghelp ;
|
lib dbghelp : : <name>dbghelp ;
|
||||||
|
|
|
@ -15,8 +15,8 @@ using namespace Windows::Security::Cryptography;
|
||||||
using namespace Windows::Storage::Streams;
|
using namespace Windows::Storage::Streams;
|
||||||
using namespace Microsoft::WRL;
|
using namespace Microsoft::WRL;
|
||||||
#elif defined _WIN32
|
#elif defined _WIN32
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
#include <Wincrypt.h>
|
#include <wincrypt.h>
|
||||||
#else
|
#else
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -43,7 +43,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include <boost/cstdint.hpp>
|
#include <boost/cstdint.hpp>
|
||||||
|
|
||||||
#ifdef TORRENT_WINDOWS
|
#ifdef TORRENT_WINDOWS
|
||||||
#include <Winsock2.h>
|
#include <winsock2.h>
|
||||||
#else
|
#else
|
||||||
// posix header
|
// posix header
|
||||||
// for ntohl and htonl
|
// for ntohl and htonl
|
||||||
|
|
|
@ -349,7 +349,7 @@ namespace libtorrent
|
||||||
void session::start(int flags, settings_pack const& pack, io_service* ios)
|
void session::start(int flags, settings_pack const& pack, io_service* ios)
|
||||||
{
|
{
|
||||||
#if defined _MSC_VER && defined TORRENT_DEBUG
|
#if defined _MSC_VER && defined TORRENT_DEBUG
|
||||||
// workaround for microsofts
|
// workaround for microsoft's
|
||||||
// hardware exceptions that makes
|
// hardware exceptions that makes
|
||||||
// it hard to debug stuff
|
// it hard to debug stuff
|
||||||
::_set_se_translator(straight_to_debugger);
|
::_set_se_translator(straight_to_debugger);
|
||||||
|
|
Loading…
Reference in New Issue