premiere-libtorrent/Jamfile

793 lines
22 KiB
Plaintext
Raw Normal View History

# This Jamfile requires boost-build v2 to build.
# The version shipped with boost 1.34.0
2004-02-18 01:08:20 +01:00
2004-02-04 21:20:53 +01:00
import modules ;
2011-07-23 21:46:27 +02:00
import path ;
2004-02-21 12:52:21 +01:00
import os ;
2005-01-11 03:13:07 +01:00
import errors ;
import feature : feature ;
import package ;
import virtual-target ;
2004-02-04 21:20:53 +01:00
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
CXXFLAGS = [ modules.peek : CXXFLAGS ] ;
LDFLAGS = [ modules.peek : LDFLAGS ] ;
2004-02-04 21:20:53 +01:00
ECHO "CXXFLAGS =" $(CXXFLAGS) ;
ECHO "LDFLAGS =" $(LDFLAGS) ;
2004-07-25 23:44:53 +02:00
ECHO "OS =" [ os.name ] ;
if $(BOOST_ROOT)
2005-01-11 03:13:07 +01:00
{
ECHO "building boost from source directory: " $(BOOST_ROOT) ;
use-project /boost : $(BOOST_ROOT) ;
alias boost_chrono : /boost/chrono//boost_chrono : : : <include>$(BOOST_ROOT) ;
alias boost_system : /boost/system//boost_system : : : <include>$(BOOST_ROOT) ;
alias boost_random : /boost/random//boost_random : : : <include>$(BOOST_ROOT) ;
}
else
{
local boost-lib-search-path =
<search>/opt/local/lib
<search>/usr/lib
<search>/usr/local/lib
<search>/sw/lib
<search>/usr/g++/lib
;
local boost-include-path =
<include>/opt/local/include
<include>/usr/local/include
<include>/usr/sfw/include
;
# the names are decorated in MacPorts
lib boost_chrono : : <target-os>darwin <name>boost_chrono-mt $(boost-lib-search-path)
: : $(boost-include-path) ;
lib boost_system : : <target-os>darwin <name>boost_system-mt $(boost-lib-search-path)
: : $(boost-include-path) ;
lib boost_random : : <target-os>darwin <name>boost_random-mt $(boost-lib-search-path)
: : $(boost-include-path) ;
lib boost_chrono : : <name>boost_chrono $(boost-lib-search-path)
: : $(boost-include-path) ;
lib boost_system : : <name>boost_system $(boost-lib-search-path)
: : $(boost-include-path) ;
lib boost_random : : <name>boost_random $(boost-lib-search-path)
: : $(boost-include-path) ;
2005-01-11 03:13:07 +01:00
}
2017-09-04 15:35:45 +02:00
VERSION = 1.1.5 ;
# rule for linking the correct libraries depending
# on features and target-os
rule linking ( properties * )
{
local result ;
# openssl libraries, if enabled
# exclude gcc from a regular windows build to make mingw
# link against the regular unix library name
if <crypto>openssl in $(properties)
{
if <openssl-version>pre1.1 in $(properties)
&& <target-os>windows in $(properties)
&& ! <toolset>gcc in $(properties)
{
result += <library>ssleay32
<library>libeay32
;
}
else
{
# on windows the library names were changed to be in line with other
# system starting with OpenSSL 1.1
result += <library>crypto <library>ssl ;
2010-12-25 08:24:00 +01:00
}
}
# windows needs some more libraries when using openSSL
if <crypto>openssl in $(properties)
&& <target-os>windows in $(properties)
&& ! <toolset>gcc in $(properties)
{
result += <library>advapi32
<library>user32
<library>shell32
<library>gdi32
;
}
if <simulator>on in $(properties)
{
result += <library>/libsimulator//simulator ;
}
2012-08-16 05:03:29 +02:00
# dbghelp doesn't appear to exist in mingw
2012-01-26 11:33:39 +01:00
if <target-os>windows in $(properties)
2012-08-16 05:03:29 +02:00
&& ! <toolset>gcc in $(properties)
&& ( <variant>debug in $(properties)
|| <asserts>on in $(properties)
|| <asserts>production in $(properties)
2014-11-30 21:08:23 +01:00
|| <pool-allocators>debug in $(properties)
|| <allocator>debug in $(properties)
2012-01-26 11:33:39 +01:00
|| <asio-debugging>on in $(properties) )
{
result += <library>dbghelp ;
}
2009-11-08 04:09:19 +01:00
# gcrypt libraries, if enabled
if <crypto>gcrypt in $(properties)
2009-11-08 04:09:19 +01:00
{
# on mac os x, adding the /opt/local/include path
# would include openssl headers incompatible with
# the system library. Only add this include path
# if we're not using openssl (which we're most
# likely not if we're using libgcrypt)
result += <library>gcrypt <include>/opt/local/include ;
}
# socket functions on windows require winsock libraries
if <target-os>windows in $(properties)
|| <target-os>cygwin in $(properties)
{
result += <library>ws2_32
<library>wsock32
2010-11-29 02:33:05 +01:00
<library>iphlpapi
<define>WIN32_LEAN_AND_MEAN
<define>__USE_W32_SOCKETS
<define>WIN32
<define>_WIN32
;
# when DHT is enabled, we need ed25519 which in turn
# needs entropy
if ! <dht>off in $(properties)
{
result += <library>advapi32 ;
}
}
if <target-os>beos in $(properties)
{
2011-07-20 07:14:25 +02:00
result += <library>netkit <library>gcc ;
}
2009-01-27 09:24:48 +01:00
if <target-os>solaris in $(properties)
{
result += <library>libsocket <library>libnsl ;
}
2011-02-09 10:54:45 +01:00
if <iconv>on in $(properties)
{
result += <library>libiconv ;
}
if ( <toolset>gcc in $(properties)
|| <toolset>clang in $(properties) )
&& <target-os>linux in $(properties)
&& ( <variant>debug in $(properties)
2012-04-20 19:03:00 +02:00
|| <asserts>on in $(properties)
|| <asserts>production in $(properties)
2014-12-01 11:43:34 +01:00
|| <pool-allocators>debug in $(properties)
|| <allocator>debug in $(properties)
|| <asio-debugging>on in $(properties) )
{
# for backtraces in assertion failures
# which only works on ELF targets with gcc
result += <linkflags>-export-dynamic <linkflags>-rdynamic ;
}
if <boost-link>static in $(properties)
{
if <link>shared in $(properties)
{
# if libtorrent is being built as a shared library
# but we're linking against boost statically, we still
# need to make boost think it's being built as a shared
# library, so that it properly exports its symbols
result += <define>BOOST_ALL_DYN_LINK ;
result += <library>boost_system/<link>static/<define>BOOST_ALL_DYN_LINK ;
result += <library>boost_chrono/<link>static/<define>BOOST_ALL_DYN_LINK ;
result += <library>boost_random/<link>static/<define>BOOST_ALL_DYN_LINK ;
}
else
{
result += <library>boost_system/<link>static ;
result += <library>boost_chrono/<link>static ;
result += <library>boost_random/<link>static ;
}
if <toolset>gcc in $(properties)
&& ! <target-os>windows in $(properties)
&& <link>shared in $(properties)
{
result += <fpic>on ;
}
2012-07-23 18:10:34 +02:00
2008-06-07 19:36:33 +02:00
}
else if <boost-link>shared in $(properties)
{
result += <library>boost_system/<link>shared ;
result += <library>boost_chrono/<link>shared ;
result += <library>boost_random/<link>shared ;
}
else
{
result += <library>boost_system ;
result += <library>boost_chrono ;
result += <library>boost_random ;
}
result += <define>BOOST_ALL_NO_LIB
<define>BOOST_MULTI_INDEX_DISABLE_SERIALIZATION
;
2008-06-07 19:36:33 +02:00
return $(result) ;
}
rule warnings ( properties * )
{
local result ;
if <warnings>off in $(properties)
{
return $(result) ;
}
if <toolset>clang in $(properties)
|| <toolset>darwin in $(properties)
{
result += <cflags>-Weverything ;
result += <cflags>-Wno-documentation ;
result += <cxxflags>-Wno-c++98-compat-pedantic ;
result += <cflags>-Wno-padded ;
result += <cflags>-Wno-global-constructors ;
result += <cxxflags>-Wno-c++98-compat ;
2016-11-19 20:19:35 +01:00
# this warns on any global static object, which are used for error_category
# objects
result += <cflags>-Wno-exit-time-destructors ;
result += <cflags>-Wno-unused-command-line-argument ;
2016-11-19 20:19:35 +01:00
result += <cflags>-Wno-implicit-fallthrough ;
result += <cflags>-Wno-c++11-long-long ;
result += <cflags>-Wno-variadic-macros ;
2015-05-16 20:35:47 +02:00
# in C++98 mode there's no way to silence this warning
# in the code (without final)
result += <cflags>-Wno-non-virtual-dtor ;
2015-08-20 01:33:20 +02:00
# enable these warnings again, once the other ones are dealt with
2015-04-19 08:28:21 +02:00
result += <cflags>-Wno-weak-vtables ;
result += <cflags>-Wno-sign-compare ;
result += <cflags>-Wno-sign-conversion ;
result += <cflags>-Wno-conversion ;
}
2015-04-18 16:33:55 +02:00
if <toolset>gcc in $(properties)
{
result += <cflags>-Wall ;
result += <cflags>-Wextra ;
2015-08-20 01:33:20 +02:00
result += <cflags>-Wpedantic ;
# result += <cflags>-Wmisleading-indentation ;
result += <cflags>-Wparentheses ;
result += <cflags>-Wvla ;
result += <cxxflags>-Wc++11-compat ;
result += <cflags>-Wno-format-zero-length ;
result += <cflags>-Wno-long-long ;
# enable these warnings again, once the other ones are dealt with
result += <cflags>-Wno-sign-compare ;
2015-08-20 01:33:20 +02:00
result += <cflags>-Wno-unused-variable ;
2015-04-18 16:33:55 +02:00
}
if <toolset>msvc in $(properties)
{
# disable warning C4503: decorated name length exceeded, name was truncated
result += <cflags>/wd4503 ;
2015-04-27 04:21:12 +02:00
# enable these warnings again, once the other ones are dealt with
# disable warning C4389: signed/unsigned mismatch
result += <cflags>/wd4389 ;
result += <cflags>/wd4245 ;
result += <cflags>/wd4018 ;
2015-04-27 04:21:12 +02:00
# disable warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data
result += <cflags>/wd4244 ;
# disable warning C4512: assignment operator could not be generated
result += <cflags>/wd4512 ;
}
return $(result) ;
}
# rule for adding the right source files
# depending on target-os and features
rule building ( properties * )
{
local result ;
if <link>shared in $(properties) && <export-extra>on in $(properties)
{
# export some internal libtorrent functions
# in order to me able to unit test them.
# this is off by default to keep the export
# symbol table reasonably small
result += <define>TORRENT_EXPORT_EXTRA ;
}
2015-08-20 20:56:52 +02:00
if <toolset>msvc in $(properties)
{
# allow larger .obj files (with more sections)
result += <cflags>/bigobj ;
}
if ( <variant>debug in $(properties)
&& ( <toolset>clang in $(properties)
|| <toolset>gcc in $(properties)
|| <toolset>darwin in $(properties) ) )
{
result += <cflags>-ftrapv ;
}
2012-01-26 11:33:39 +01:00
if ( <variant>debug in $(properties)
|| <asserts>on in $(properties) )
2007-09-01 06:08:39 +02:00
{
result += <source>src/assert.cpp ;
}
if <encryption>on in $(properties)
{
result += <source>src/mpi.cpp ;
result += <source>src/pe_crypto.cpp ;
}
if <crypo>built-in in $(properties)
{
result += <source>src/sha1.cpp ;
}
if ( <toolset>darwin in $(properties)
|| <toolset>gcc in $(properties)
2013-04-27 21:35:41 +02:00
|| <toolset>clang in $(propertoes)
|| <toolset>clang-darwin in $(propertoes) )
&& <link>shared in $(properties)
2012-03-21 17:34:41 +01:00
# on GCC, enabling debugging in libstdc++
# breaks the ABI and its ability to appear
# in shared object interfaces, so when it's
# enabled, just export everything (since we're)
# probably not a production build anyway
2012-12-15 06:09:11 +01:00
&& ! <debug-iterators>on in $(properties)
{
# hide non-external symbols
result += <cflags>-fvisibility=hidden ;
result += <cxxflags>-fvisibility-inlines-hidden ;
if ( <toolset>gcc in $(properties) )
{
result += <linkflags>-Wl,-Bsymbolic ;
}
}
return $(result) ;
}
2004-03-17 13:14:44 +01:00
rule tag ( name : type ? : property-set )
{
name = [ virtual-target.add-prefix-and-suffix $(name) : $(type) : $(property-set) ] ;
if $(type) = SHARED_LIB &&
( ! ( [ $(property-set).get <target-os> ] in windows cygwin ) )
{
name = $(name).$(VERSION) ;
}
return $(name) ;
}
2009-11-27 19:46:29 +01:00
feature ipv6 : on off : composite propagated link-incompatible ;
feature.compose <ipv6>off : <define>TORRENT_USE_IPV6=0 ;
2015-03-16 06:49:26 +01:00
feature sanitize : off address bounds undefined thread rtc : composite propagated link-incompatible ;
# sanitize is a clang and GCC feature
2014-12-17 03:45:32 +01:00
feature.compose <sanitize>bounds : <cflags>-fsanitize=bounds <cflags>-fsanitize-undefined-trap-on-error <linkflags>-fsanitize=bounds <linkflags>-fsanitize-undefined-trap-on-error ;
feature.compose <sanitize>undefined : <cflags>-fsanitize=undefined <linkflags>-fsanitize=undefined ;
feature.compose <sanitize>thread : <cflags>-fsanitize=thread <linkflags>-fsanitize=thread ;
2015-03-16 06:49:26 +01:00
feature.compose <sanitize>address : <cflags>-fsanitize=address <linkflags>-fsanitize=address ;
# RTC (runtime check) is an msvc feature
feature.compose <sanitize>rtc : <cflags>/RTCc <cflags>/RTCsu ;
feature fiemap : off on : composite propagated ;
feature.compose <fiemap>on : <define>HAVE_LINUX_FIEMAP_H ;
2014-07-06 21:18:00 +02:00
feature file-leak-logging : off on : composite propagated ;
feature.compose <file-leak-logging>on : <define>TORRENT_DEBUG_FILE_LEAKS=1 ;
2012-07-31 18:53:37 +02:00
feature i2p : on off : composite propagated ;
feature.compose <i2p>on : <define>TORRENT_USE_I2P=1 ;
feature.compose <i2p>off : <define>TORRENT_USE_I2P=0 ;
2011-02-09 10:54:45 +01:00
feature iconv : auto on off : composite propagated ;
feature.compose <iconv>on : <define>TORRENT_USE_ICONV=1 ;
feature.compose <iconv>off : <define>TORRENT_USE_ICONV=0 ;
2014-11-09 12:17:13 +01:00
feature use-valgrind : off on : composite propagated link-incompatible ;
feature.compose <use-valgrind>on : <define>TORRENT_USE_VALGRIND=1 ;
2014-07-06 21:18:00 +02:00
feature memory-optimization : off on : composite propagated link-incompatible ;
feature.compose <memory-optimization>on : <define>TORRENT_OPTIMIZE_MEMORY_USAGE ;
feature asserts : auto on off production system : composite propagated ;
feature.compose <asserts>on : <define>TORRENT_RELEASE_ASSERTS=1 ;
2011-08-15 01:30:40 +02:00
feature.compose <asserts>production : <define>TORRENT_PRODUCTION_ASSERTS=1 <define>TORRENT_RELEASE_ASSERTS=1 ;
feature.compose <asserts>off : <define>TORRENT_USE_ASSERTS=0 ;
feature.compose <asserts>system : <define>TORRENT_USE_SYSTEM_ASSERTS=1 ;
2010-05-06 04:18:08 +02:00
feature windows-version : vista win7 xp : composite propagated link-incompatible ;
2010-12-01 06:47:18 +01:00
feature.compose <windows-version>vista : <define>_WIN32_WINNT=0x0600 ;
feature.compose <windows-version>win7 : <define>_WIN32_WINNT=0x0601 ;
feature.compose <windows-version>xp : <define>_WIN32_WINNT=0x0501 ;
2010-12-01 06:47:18 +01:00
feature extensions : on off : composite propagated link-incompatible ;
feature.compose <extensions>off : <define>TORRENT_DISABLE_EXTENSIONS ;
feature asio-debugging : off on : composite propagated link-incompatible ;
feature.compose <asio-debugging>on : <define>TORRENT_ASIO_DEBUGGING ;
2014-07-06 21:18:00 +02:00
feature picker-debugging : off on : composite propagated link-incompatible ;
feature.compose <picker-debugging>on : <define>TORRENT_DEBUG_REFCOUNTS ;
feature simulator : off on : composite propagated link-incompatible ;
feature.compose <simulator>on : <define>TORRENT_BUILD_SIMULATOR ;
# deprecated use allocator=pool instead
2014-07-06 21:18:00 +02:00
feature pool-allocators : on off debug : composite propagated link-incompatible ;
feature.compose <pool-allocators>off : <define>TORRENT_DISABLE_POOL_ALLOCATOR ;
2014-07-06 21:18:00 +02:00
feature.compose <pool-allocators>debug : <define>TORRENT_DISABLE_POOL_ALLOCATOR <define>TORRENT_DEBUG_BUFFERS ;
feature allocator : pool system debug : composite propagated ;
feature.compose <allocator>system : <define>TORRENT_DISABLE_POOL_ALLOCATOR ;
feature.compose <allocator>debug : <define>TORRENT_DISABLE_POOL_ALLOCATOR <define>TORRENT_DEBUG_BUFFERS ;
feature piece-allocator : valloc memalign posix_memalign : composite propagated ;
feature.compose <piece-allocator>memalign : <define>TORRENT_USE_MEMALIGN=1 ;
feature.compose <piece-allocator>posix_memalign : <define>TORRENT_USE_POSIX_MEMALIGN=1 ;
feature invariant-checks : on off full : composite propagated link-incompatible ;
feature.compose <invariant-checks>off : <define>TORRENT_DISABLE_INVARIANT_CHECKS ;
feature.compose <invariant-checks>full : <define>TORRENT_EXPENSIVE_INVARIANT_CHECKS ;
feature disk-stats : off on : composite propagated link-incompatible ;
feature.compose <disk-stats>on : <define>TORRENT_DISK_STATS ;
feature utp-log : off on : composite propagated link-incompatible ;
feature.compose <utp-log>on : <define>TORRENT_UTP_LOG_ENABLE ;
feature simulate-slow-read : off on : composite propagated ;
feature.compose <simulate-slow-read>on : <define>TORRENT_SIMULATE_SLOW_READ ;
feature logging : on off : composite propagated link-incompatible ;
feature.compose <logging>off : <define>TORRENT_DISABLE_LOGGING ;
2004-11-01 00:16:08 +01:00
feature dht : on off : composite propagated link-incompatible ;
feature.compose <dht>off : <define>TORRENT_DISABLE_DHT ;
2004-02-04 12:00:29 +01:00
feature encryption : on off : composite propagated link-incompatible ;
2009-11-08 04:09:19 +01:00
feature.compose <encryption>off : <define>TORRENT_DISABLE_ENCRYPTION ;
feature mutable-torrents : on off : composite propagated link-incompatible ;
feature.compose <mutable-torrents>off : <define>TORRENT_DISABLE_MUTABLE_TORRENTS ;
2015-01-04 02:04:56 +01:00
feature crypto : built-in openssl gcrypt : composite propagated ;
feature.compose <crypto>openssl : <define>TORRENT_USE_OPENSSL ;
feature.compose <crypto>gcrypt : <define>TORRENT_USE_GCRYPT ;
feature openssl-version : 1.1 pre1.1 : composite propagated ;
feature resolve-countries : on off : composite propagated link-incompatible ;
feature.compose <resolve-countries>off : <define>TORRENT_DISABLE_RESOLVE_COUNTRIES ;
2008-07-20 13:53:21 +02:00
feature character-set : unicode ansi : composite propagated link-incompatible ;
feature.compose <character-set>unicode : <define>_UNICODE <define>UNICODE ;
feature deprecated-functions : on off : composite propagated link-incompatible ;
feature.compose <deprecated-functions>off : <define>TORRENT_NO_DEPRECATE ;
feature boost-link : default static shared : propagated composite ;
feature debug-iterators : off on : composite propagated link-incompatible ;
feature.compose <debug-iterators>on : <define>_SCL_SECURE=1 <define>_GLIBCXX_DEBUG ;
feature fpic : off on : composite propagated link-incompatible ;
feature.compose <fpic>on : <cflags>-fPIC ;
2008-12-21 03:38:37 +01:00
feature.compose <fpic>off : <toolset>darwin:<cflags>-mdynamic-no-pic ;
2014-07-06 21:18:00 +02:00
feature profile-calls : off on : composite propagated link-incompatible ;
feature.compose <profile-calls>on : <define>TORRENT_PROFILE_CALLS=1 ;
# controls whether or not to export some internal
# libtorrent functions. Used for unit testing
feature export-extra : off on : composite propagated ;
2014-11-30 11:07:19 +01:00
# this is a trick to get filename paths to targets to become shorter
# making it possible to build on windows, especially mingw seems particular
2015-07-06 23:33:17 +02:00
# for release builds, disable optimizations as they bump GCC over the edge of
# allowed memory usage on travis-ci
variant test_release : release
: <asserts>production <debug-symbols>on
2015-07-06 23:33:17 +02:00
<invariant-checks>full <boost-link>shared <optimization>off
<export-extra>on <debug-iterators>on <threading>multi <inlining>on
2014-11-30 11:07:19 +01:00
;
variant test_debug : debug
: <crypto>openssl <logging>on <disk-stats>on
<allocator>debug <debug-iterators>on
2014-11-30 11:07:19 +01:00
<invariant-checks>full <boost-link>shared
2016-06-11 00:50:07 +02:00
<export-extra>on <debug-iterators>on <threading>multi <asserts>on
2014-11-30 11:07:19 +01:00
;
variant test_barebones : debug
: <ipv6>off <dht>off <extensions>off <logging>off <boost-link>shared
2014-11-30 11:07:19 +01:00
<deprecated-functions>off <invariant-checks>off
2016-06-11 00:50:07 +02:00
<export-extra>on <debug-iterators>on <threading>multi <asserts>on
2014-11-30 11:07:19 +01:00
;
# required for openssl on windows
lib ssleay32 : : <name>ssleay32 ;
lib libeay32 : : <name>libeay32 ;
lib advapi32 : : <name>advapi32 ;
lib user32 : : <name>user32 ;
lib shell32 : : <name>shell32 ;
lib gdi32 : : <name>gdi32 ;
2012-01-26 11:33:39 +01:00
lib dbghelp : : <name>dbghelp ;
# required for networking on beos
lib netkit : : <name>net <search>/boot/system/lib <link>shared ;
2011-07-20 07:14:25 +02:00
lib gcc : : <name>gcc <link>static ;
2011-02-09 10:54:45 +01:00
# when using iconv
2012-05-13 06:40:21 +02:00
lib libiconv : : <name>iconv <link>shared <search>/usr/local/lib ;
2011-02-09 10:54:45 +01:00
# openssl on linux/bsd/macos etc.
2009-11-08 04:09:19 +01:00
lib gcrypt : : <name>gcrypt <link>shared <search>/opt/local/lib ;
2013-09-01 19:39:40 +02:00
lib z : : <link>shared <name>z <search>/usr/lib ;
lib crypto : : <name>crypto <link>shared <search>/usr/lib <use>z : : <include>/opt/local/include ;
lib ssl : : <name>ssl <link>shared <use>crypto <search>/opt/local/lib : : <include>/opt/local/include ;
2011-02-14 05:12:26 +01:00
lib dl : : <link>shared <name>dl ;
# time functions used on linux require librt
lib librt : : <name>rt <link>shared ;
lib libsocket : : <use>libnsl <name>socket <link>shared <search>/usr/sfw/lib <link>shared ;
lib libnsl : : <name>nsl <link>shared <search>/usr/sfw/lib <link>shared ;
2009-01-27 09:24:48 +01:00
# socket libraries on windows
lib wsock32 : : <name>wsock32 <link>shared ;
lib ws2_32 : : <name>ws2_32 <link>shared ;
2010-11-29 02:33:05 +01:00
lib iphlpapi : : <name>iphlpapi <link>shared ;
SOURCES =
alert
alert_manager
allocator
announce_entry
assert
bandwidth_limit
bandwidth_manager
bandwidth_queue_entry
bdecode
bitfield
2014-07-06 21:18:00 +02:00
block_cache
bloom_filter
chained_buffer
choker
close_reason
cpuid
2014-07-06 21:18:00 +02:00
crc32c
create_torrent
disk_buffer_holder
2014-07-06 21:18:00 +02:00
disk_buffer_pool
disk_io_job
disk_job_pool
entry
error_code
file_storage
2008-04-11 05:41:09 +02:00
lazy_bdecode
escape_string
string_util
file
fingerprint
gzip
hasher
2015-04-21 02:23:00 +02:00
hex
http_connection
http_stream
2008-01-12 10:36:03 +01:00
http_parser
identify_client
ip_filter
ip_voter
merkle
peer_connection
2014-07-06 21:18:00 +02:00
platform_util
bt_peer_connection
web_connection_base
web_peer_connection
2008-12-30 04:54:07 +01:00
http_seed_connection
2015-07-02 06:13:26 +02:00
peer_connection_handle
2009-08-20 05:19:12 +02:00
i2p_stream
instantiate_connection
natpmp
2010-11-29 02:33:05 +01:00
packet_buffer
piece_picker
2014-10-26 08:34:31 +01:00
peer_list
2014-07-06 21:18:00 +02:00
proxy_base
2010-03-16 07:14:22 +01:00
puff
random
receive_buffer
resolve_links
2011-01-18 04:41:54 +01:00
rss
session
session_handle
session_impl
session_call
2014-07-06 21:18:00 +02:00
settings_pack
socket_io
socket_type
socks5_stream
stat
storage
torrent
torrent_handle
torrent_info
2014-07-06 21:18:00 +02:00
torrent_peer
torrent_peer_allocator
torrent_status
2009-11-25 07:55:34 +01:00
time
tracker_manager
http_tracker_connection
udp_tracker_connection
sha1
2010-11-29 02:33:05 +01:00
timestamp_history
2007-12-09 05:15:24 +01:00
udp_socket
upnp
utf8
2010-11-29 02:33:05 +01:00
utp_socket_manager
utp_stream
file_pool
lsd
disk_buffer_pool
2007-06-10 22:46:09 +02:00
disk_io_thread
enum_net
broadcast_socket
magnet_uri
parse_url
ConvertUTF
thread
2014-05-03 23:10:44 +02:00
xml_parse
version
2014-07-06 21:18:00 +02:00
peer_class
peer_class_set
part_file
stat_cache
request_blocks
session_stats
performance_counters
resolver
session_settings
proxy_settings
file_progress
# -- extensions --
metadata_transfer
ut_pex
ut_metadata
2008-11-27 21:51:59 +01:00
lt_trackers
smart_ban
;
KADEMLIA_SOURCES =
dht_storage
dht_tracker
msg
node
node_entry
refresh
rpc_manager
find_data
node_id
routing_table
traversal_algorithm
2014-07-06 21:18:00 +02:00
dos_blocker
get_peers
item
get_item
2015-09-22 20:10:57 +02:00
put_data
2004-02-21 12:52:21 +01:00
;
2004-02-08 17:04:50 +01:00
ED25519_SOURCES =
add_scalar
fe
ge
key_exchange
keypair
sc
seed
sha512
sign
verify
;
2015-05-18 01:32:13 +02:00
local usage-requirements =
<include>./include
2008-05-20 11:45:55 +02:00
<include>./include/libtorrent
2009-01-27 09:24:48 +01:00
<include>/usr/sfw/include
2012-05-13 06:40:21 +02:00
# freebsd doesn't seem to include this automatically
# and iconv.h is installed there
<include>/usr/local/include
<variant>release:<define>NDEBUG
<variant>debug:<define>TORRENT_DEBUG
<define>_FILE_OFFSET_BITS=64
<define>BOOST_EXCEPTION_DISABLE
2010-11-29 02:33:05 +01:00
# enable cancel support in asio
<define>BOOST_ASIO_ENABLE_CANCELIO
<conditional>@linking
# these compiler settings just makes the compiler standard conforming
<toolset>msvc:<cflags>/Zc:wchar_t
<toolset>msvc:<cflags>/Zc:forScope
2007-09-01 06:08:39 +02:00
# msvc optimizations
<toolset>msvc,<variant>release:<linkflags>/OPT:ICF=5
<toolset>msvc,<variant>release:<linkflags>/OPT:REF
<cxxflags>$(CXXFLAGS)
<linkflags>$(LDFLAGS)
2009-06-27 21:30:15 +02:00
# this works around a bug in asio in boost-1.39
<define>BOOST_ASIO_HASH_MAP_BUCKETS=1021
;
2008-06-23 15:17:15 +02:00
project torrent ;
2008-06-23 15:17:15 +02:00
lib torrent
: # sources
src/$(SOURCES).cpp
: # requirements
<include>./ed25519/src
<threading>multi
<define>TORRENT_BUILDING_LIBRARY
<link>shared:<define>TORRENT_BUILDING_SHARED
2014-07-06 21:18:00 +02:00
<define>BOOST_NO_DEPRECATED
2012-06-12 18:38:15 +02:00
<link>shared:<define>BOOST_SYSTEM_SOURCE
2012-04-15 06:00:58 +02:00
<dht>on:<source>src/kademlia/$(KADEMLIA_SOURCES).cpp
2014-07-12 08:20:16 +02:00
<dht>on:<source>ed25519/src/$(ED25519_SOURCES).cpp
<conditional>@building
<conditional>@warnings
<cxxflags>$(CXXFLAGS)
# disable bogus deprecation warnings on msvc8
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
<tag>@tag
$(usage-requirements)
: # default build
<threading>multi
: # usage requirements
$(usage-requirements)
2012-06-03 07:13:08 +02:00
<link>shared:<define>TORRENT_LINKING_SHARED
;
headers = [ path.glob-tree include/libtorrent : *.hpp ] ;
package.install install
: <install-source-root>libtorrent
2015-05-18 01:32:13 +02:00
:
: torrent
: $(headers)
;