2004-02-18 01:08:20 +01:00
|
|
|
#This Jamfile requires boost-build v2 to build.
|
|
|
|
|
2004-02-04 21:20:53 +01:00
|
|
|
import modules ;
|
2004-02-21 12:52:21 +01:00
|
|
|
import os ;
|
2005-01-11 03:13:07 +01:00
|
|
|
import errors ;
|
2006-08-31 02:26:41 +02:00
|
|
|
import feature : feature ;
|
2004-02-04 21:20:53 +01:00
|
|
|
|
|
|
|
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
|
|
|
|
|
2004-07-25 23:44:53 +02:00
|
|
|
ECHO "BOOST_ROOT =" $(BOOST_ROOT) ;
|
|
|
|
ECHO "OS =" [ os.name ] ;
|
|
|
|
|
2005-01-11 03:13:07 +01:00
|
|
|
if ! $(BOOST_ROOT)
|
|
|
|
{
|
|
|
|
errors.user-error
|
|
|
|
"BOOST_ROOT must be set to your boost installation path." ;
|
|
|
|
}
|
|
|
|
|
2004-11-01 00:16:08 +01:00
|
|
|
use-project /boost : $(BOOST_ROOT) ;
|
|
|
|
|
2004-03-17 13:14:44 +01:00
|
|
|
|
2006-09-01 05:06:00 +02:00
|
|
|
feature logging : none default verbose : composite propagated symmetric link-incompatible ;
|
|
|
|
feature.compose <logging>none : ;
|
|
|
|
feature.compose <logging>default : <define>TORRENT_LOGGING ;
|
|
|
|
feature.compose <logging>verbose : <define>TORRENT_VERBOSE_LOGGING ;
|
2004-11-01 00:16:08 +01:00
|
|
|
|
2006-09-01 05:06:00 +02:00
|
|
|
feature dht-support : on off logging : composite propagated symmetric link-incompatible ;
|
|
|
|
feature.compose <dht-support>on : ;
|
|
|
|
feature.compose <dht-support>off : <define>TORRENT_DISABLE_DHT ;
|
|
|
|
feature.compose <dht-support>logging : <define>TORRENT_DHT_VERBOSE_LOGGING ;
|
2004-02-04 12:00:29 +01:00
|
|
|
|
2003-10-23 01:00:57 +02:00
|
|
|
SOURCES =
|
2004-02-18 01:08:20 +01:00
|
|
|
allocate_resources.cpp
|
2004-02-08 17:04:50 +01:00
|
|
|
alert.cpp
|
2003-10-23 01:00:57 +02:00
|
|
|
entry.cpp
|
2004-03-26 12:39:17 +01:00
|
|
|
escape_string.cpp
|
2005-01-11 03:13:07 +01:00
|
|
|
file.cpp
|
2003-12-22 08:14:35 +01:00
|
|
|
identify_client.cpp
|
2005-07-06 02:58:23 +02:00
|
|
|
ip_filter.cpp
|
2003-10-23 01:00:57 +02:00
|
|
|
peer_connection.cpp
|
2006-04-25 23:04:48 +02:00
|
|
|
bt_peer_connection.cpp
|
|
|
|
web_peer_connection.cpp
|
2003-10-23 01:00:57 +02:00
|
|
|
piece_picker.cpp
|
|
|
|
policy.cpp
|
|
|
|
session.cpp
|
2006-10-12 00:04:45 +02:00
|
|
|
session_impl.cpp
|
2003-10-23 01:00:57 +02:00
|
|
|
stat.cpp
|
|
|
|
storage.cpp
|
|
|
|
torrent.cpp
|
2003-10-30 00:28:09 +01:00
|
|
|
torrent_handle.cpp
|
2003-10-23 01:00:57 +02:00
|
|
|
torrent_info.cpp
|
2004-02-01 11:32:40 +01:00
|
|
|
tracker_manager.cpp
|
|
|
|
http_tracker_connection.cpp
|
|
|
|
udp_tracker_connection.cpp
|
2004-08-02 00:15:44 +02:00
|
|
|
sha1.cpp
|
2006-11-14 01:08:16 +01:00
|
|
|
metadata_transfer.cpp
|
2006-11-26 18:44:51 +01:00
|
|
|
ut_pex.cpp
|
2006-11-14 01:08:16 +01:00
|
|
|
logger.cpp
|
2006-11-14 14:36:10 +01:00
|
|
|
file_pool.cpp
|
2006-09-01 05:06:00 +02:00
|
|
|
;
|
2006-08-01 17:27:08 +02:00
|
|
|
|
2006-09-01 05:06:00 +02:00
|
|
|
KADEMLIA_SOURCES =
|
2006-08-01 17:27:08 +02:00
|
|
|
kademlia/closest_nodes.cpp
|
|
|
|
kademlia/dht_tracker.cpp
|
|
|
|
kademlia/node.cpp
|
|
|
|
kademlia/refresh.cpp
|
|
|
|
kademlia/rpc_manager.cpp
|
|
|
|
kademlia/find_data.cpp
|
|
|
|
kademlia/node_id.cpp
|
|
|
|
kademlia/routing_table.cpp
|
|
|
|
kademlia/traversal_algorithm.cpp
|
2004-02-21 12:52:21 +01:00
|
|
|
;
|
2004-02-08 17:04:50 +01:00
|
|
|
|
2004-03-28 19:45:37 +02:00
|
|
|
ZLIB_SOURCES =
|
|
|
|
adler32.c
|
|
|
|
compress.c
|
|
|
|
crc32.c
|
|
|
|
deflate.c
|
|
|
|
gzio.c
|
|
|
|
infback.c
|
|
|
|
inffast.c
|
|
|
|
inflate.c
|
|
|
|
inftrees.c
|
|
|
|
trees.c
|
|
|
|
uncompr.c
|
|
|
|
zutil.c
|
|
|
|
;
|
|
|
|
|
2006-11-22 18:54:02 +01:00
|
|
|
DEFINES = ;
|
|
|
|
LIBS = ;
|
|
|
|
|
|
|
|
if [ os.name ] = CYGWIN
|
|
|
|
{
|
|
|
|
DEFINES += __USE_W32_SOCKETS ;
|
|
|
|
DEFINES += _WIN32_WINNT ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# some windows specific settings
|
|
|
|
|
|
|
|
if [ os.name ] = NT
|
|
|
|
{
|
|
|
|
lib wsock32 : : <name>wsock32.lib ;
|
|
|
|
LIBS += wsock32 ;
|
|
|
|
DEFINES += _WIN32_WINNT ;
|
|
|
|
}
|
|
|
|
|
2006-09-01 05:06:00 +02:00
|
|
|
|
|
|
|
project torrent
|
|
|
|
|
|
|
|
: requirements
|
|
|
|
|
|
|
|
<include>./include
|
|
|
|
<include>./include/libtorrent
|
|
|
|
<include>./zlib
|
|
|
|
<include>$(BOOST_ROOT)
|
|
|
|
<variant>release:<define>NDEBUG
|
|
|
|
<define>BOOST_ALL_NO_LIB
|
|
|
|
<define>_FILE_OFFSET_BITS=64
|
|
|
|
<define>BOOST_THREAD_USE_LIB
|
2006-11-22 18:54:02 +01:00
|
|
|
<define>$(DEFINES)
|
2006-09-01 05:06:00 +02:00
|
|
|
<library>/boost/thread//boost_thread #/<link>static
|
|
|
|
<library>/boost/filesystem//boost_filesystem #/<link>static
|
|
|
|
<library>/boost/date_time//boost_date_time #/<link>static
|
|
|
|
<threading>multi
|
|
|
|
<toolset>msvc:<define>_WIN32_WINNT=0x0500
|
|
|
|
# WIN32 makes sure the win32 socket api is used
|
|
|
|
# instead of win16
|
|
|
|
<toolset>msvc:<define>WIN32
|
|
|
|
# without WIN32_LEAN_AND_MEAN there will be conflicts between
|
|
|
|
# winsock.h and winsock2.h
|
|
|
|
<toolset>msvc:<define>WIN32_LEAN_AND_MEAN
|
|
|
|
# these compiler settings just makes the compiler standard conforming
|
|
|
|
<toolset>msvc:<cxxflags>/Zc:wchar_t
|
|
|
|
<toolset>msvc:<cxxflags>/Zc:forScope
|
2006-11-02 13:44:33 +01:00
|
|
|
# disable bogus deprecation warnings on msvc8
|
|
|
|
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
|
|
|
|
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
|
|
|
|
|
2006-09-01 05:06:00 +02:00
|
|
|
# this should be defined when libtorrent is built as
|
|
|
|
# a dll. It will make sure the functions and classes
|
|
|
|
# are exported (GCC 4 and msvc)
|
|
|
|
<link>shared:<define>TORRENT_BUILDING_SHARED
|
|
|
|
|
|
|
|
<link>shared:<define>TORRENT_LINKING_SHARED
|
|
|
|
|
|
|
|
: usage-requirements
|
|
|
|
|
|
|
|
<include>./include
|
2006-10-24 01:18:35 +02:00
|
|
|
<include>./include/libtorrent
|
2006-09-01 05:06:00 +02:00
|
|
|
<include>$(BOOST_ROOT)
|
|
|
|
<variant>release:<define>NDEBUG
|
|
|
|
<define>BOOST_ALL_NO_LIB
|
2006-11-22 18:54:02 +01:00
|
|
|
<define>$(DEFINES)
|
2006-09-01 05:06:00 +02:00
|
|
|
<link>shared:<define>TORRENT_LINKING_SHARED
|
|
|
|
|
|
|
|
;
|
|
|
|
|
2003-10-23 01:00:57 +02:00
|
|
|
lib torrent
|
2004-02-04 12:00:29 +01:00
|
|
|
:
|
2004-02-22 23:40:45 +01:00
|
|
|
src/$(SOURCES)
|
2004-03-28 19:45:37 +02:00
|
|
|
zlib/$(ZLIB_SOURCES)
|
2004-04-17 15:27:58 +02:00
|
|
|
$(LIBS)
|
2006-09-01 05:06:00 +02:00
|
|
|
:
|
2006-09-02 09:33:01 +02:00
|
|
|
<dht-support>on:<source>src/$(KADEMLIA_SOURCES)
|
|
|
|
<dht-support>logging:<source>src/$(KADEMLIA_SOURCES)
|
2003-10-23 01:00:57 +02:00
|
|
|
;
|
|
|
|
|