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 ;
|
2004-02-04 21:20:53 +01:00
|
|
|
|
|
|
|
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
|
|
|
|
|
2004-02-08 17:04:50 +01:00
|
|
|
use-project /boost/thread : $(BOOST_ROOT)/libs/thread/build ;
|
|
|
|
use-project /boost/filesystem : $(BOOST_ROOT)/libs/filesystem/build ;
|
|
|
|
use-project /boost/date_time : $(BOOST_ROOT)/libs/date_time/build ;
|
2004-02-04 21:20:53 +01:00
|
|
|
|
2004-02-27 12:49:12 +01:00
|
|
|
lib winsock : : <name>wsock32.lib ;
|
2004-02-04 21:20:53 +01:00
|
|
|
|
2004-02-04 12:00:29 +01:00
|
|
|
project torrent
|
2004-02-04 21:20:53 +01:00
|
|
|
: requirements
|
2004-02-22 23:40:45 +01:00
|
|
|
|
|
|
|
<include>./include
|
2004-03-28 19:45:37 +02:00
|
|
|
<include>./zlib
|
2004-02-22 23:40:45 +01:00
|
|
|
<include>$(BOOST_ROOT)
|
|
|
|
<variant>release:<define>NDEBUG
|
2004-02-26 19:55:10 +01:00
|
|
|
<define>BOOST_ALL_NO_LIB
|
2004-03-17 13:14:44 +01:00
|
|
|
<library>/boost/thread//boost_thread
|
|
|
|
<library>/boost/filesystem//boost_filesystem/<link>static
|
|
|
|
<library>/boost/date_time//boost_date_time/<link>static
|
2004-02-04 12:00:29 +01:00
|
|
|
|
2004-02-08 17:04:50 +01:00
|
|
|
# devstudio switches
|
2004-02-04 12:00:29 +01:00
|
|
|
|
2004-02-22 23:40:45 +01:00
|
|
|
<toolset>msvc-7:<cxxflags>/Zc:wchar_t
|
|
|
|
<toolset>msvc-7.1:<cxxflags>/Zc:wchar_t
|
|
|
|
<toolset>msvc:<define>WIN32
|
2004-02-04 21:20:53 +01:00
|
|
|
|
2004-02-08 17:04:50 +01:00
|
|
|
# gcc switches
|
|
|
|
|
2004-02-22 23:40:45 +01:00
|
|
|
<toolset>gcc:<cxxflags>-Wno-unused-variable
|
2004-02-08 17:04:50 +01:00
|
|
|
|
2004-03-17 13:14:44 +01:00
|
|
|
# darwin switches
|
|
|
|
|
|
|
|
<toolset>darwin:<cxxflags>-Wno-unused-variable
|
|
|
|
|
2004-03-28 19:45:37 +02:00
|
|
|
: usage-requirements
|
|
|
|
|
|
|
|
<include>./include
|
|
|
|
<include>$(BOOST_ROOT)
|
|
|
|
<variant>release:<define>NDEBUG
|
|
|
|
<define>BOOST_ALL_NO_LIB
|
|
|
|
|
2004-02-04 12:00:29 +01:00
|
|
|
;
|
|
|
|
|
|
|
|
|
2004-02-27 12:49:12 +01:00
|
|
|
LIBS = ;
|
|
|
|
|
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
|
2003-12-22 08:14:35 +01:00
|
|
|
identify_client.cpp
|
2003-10-23 01:00:57 +02:00
|
|
|
peer_connection.cpp
|
|
|
|
piece_picker.cpp
|
|
|
|
policy.cpp
|
|
|
|
session.cpp
|
2004-02-26 01:27:06 +01:00
|
|
|
socket.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
|
2003-10-23 01:00:57 +02:00
|
|
|
sha1.c
|
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
|
|
|
|
;
|
|
|
|
|
2004-02-27 13:35:44 +01:00
|
|
|
|
|
|
|
# some windows specific settings
|
2004-02-08 17:04:50 +01:00
|
|
|
|
2004-02-21 12:52:21 +01:00
|
|
|
if [ modules.peek : NT ] && toolset != msvc-6
|
|
|
|
{
|
|
|
|
SOURCES += file_win.cpp ;
|
2004-02-27 12:49:12 +01:00
|
|
|
LIBS += winsock ;
|
2004-02-21 12:52:21 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
SOURCES += file.cpp ;
|
|
|
|
}
|
2003-10-23 01:00:57 +02:00
|
|
|
|
2003-12-21 18:28:27 +01:00
|
|
|
|
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-02-27 12:49:12 +01:00
|
|
|
$(LIBS)
|
2004-03-17 13:55:26 +01:00
|
|
|
/boost/thread//boost_thread
|
|
|
|
/boost/filesystem//boost_filesystem/<link>static
|
|
|
|
/boost/date_time//boost_date_time/<link>static
|
2004-02-22 23:40:45 +01:00
|
|
|
:
|
|
|
|
<threading>multi
|
2004-02-27 13:35:44 +01:00
|
|
|
<link>static
|
2004-03-17 13:14:44 +01:00
|
|
|
<variant>debug:<define>TORRENT_VERBOSE_LOGGING
|
2003-10-23 01:00:57 +02:00
|
|
|
: debug release
|
|
|
|
;
|
|
|
|
|
|
|
|
|