2004-02-18 00:08:20 +00:00
|
|
|
#This Jamfile requires boost-build v2 to build.
|
|
|
|
|
2004-02-04 20:20:53 +00:00
|
|
|
import modules ;
|
2004-02-21 11:52:21 +00:00
|
|
|
import os ;
|
2005-01-11 02:13:07 +00:00
|
|
|
import errors ;
|
2004-02-04 20:20:53 +00:00
|
|
|
|
|
|
|
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
|
|
|
|
|
2004-07-25 21:44:53 +00:00
|
|
|
ECHO "BOOST_ROOT =" $(BOOST_ROOT) ;
|
|
|
|
ECHO "OS =" [ os.name ] ;
|
|
|
|
|
2005-01-11 02:13:07 +00:00
|
|
|
if ! $(BOOST_ROOT)
|
|
|
|
{
|
|
|
|
errors.user-error
|
|
|
|
"BOOST_ROOT must be set to your boost installation path." ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-31 23:16:08 +00:00
|
|
|
use-project /boost : $(BOOST_ROOT) ;
|
|
|
|
|
|
|
|
project torrent
|
|
|
|
|
|
|
|
: requirements
|
2004-02-04 20:20:53 +00:00
|
|
|
|
2004-02-22 22:40:45 +00:00
|
|
|
<include>./include
|
2004-03-28 17:45:37 +00:00
|
|
|
<include>./zlib
|
2004-02-22 22:40:45 +00:00
|
|
|
<include>$(BOOST_ROOT)
|
|
|
|
<variant>release:<define>NDEBUG
|
2004-02-26 18:55:10 +00:00
|
|
|
<define>BOOST_ALL_NO_LIB
|
2004-10-18 10:46:55 +00:00
|
|
|
<define>_FILE_OFFSET_BITS=64
|
2005-09-14 19:33:16 +00:00
|
|
|
<define>BOOST_THREAD_USE_LIB
|
2005-08-18 20:38:03 +00:00
|
|
|
<library>/boost/thread//boost_thread/<link>static
|
2004-03-17 12:14:44 +00:00
|
|
|
<library>/boost/filesystem//boost_filesystem/<link>static
|
|
|
|
<library>/boost/date_time//boost_date_time/<link>static
|
2004-10-31 23:16:08 +00:00
|
|
|
<threading>multi
|
2005-02-23 09:24:36 +00:00
|
|
|
<toolset>msvc:<cxxflags>/Zc:wchar_t
|
2005-04-01 16:51:04 +00:00
|
|
|
<toolset>msvc:<cxxflags>/Zc:forScope
|
2005-11-01 18:30:39 +00:00
|
|
|
<link>shared:<define>TORRENT_BUILDING_SHARED
|
2004-02-04 20:20:53 +00:00
|
|
|
|
2004-10-31 23:16:08 +00:00
|
|
|
: usage-requirements
|
2004-03-17 12:14:44 +00:00
|
|
|
|
2004-03-28 17:45:37 +00:00
|
|
|
<include>./include
|
|
|
|
<include>$(BOOST_ROOT)
|
|
|
|
<variant>release:<define>NDEBUG
|
|
|
|
<define>BOOST_ALL_NO_LIB
|
2005-11-01 18:30:39 +00:00
|
|
|
<link>shared:<define>TORRENT_LINKING_SHARED
|
2004-10-31 23:16:08 +00:00
|
|
|
|
2004-02-04 11:00:29 +00:00
|
|
|
;
|
|
|
|
|
2003-10-22 23:00:57 +00:00
|
|
|
SOURCES =
|
2004-02-18 00:08:20 +00:00
|
|
|
allocate_resources.cpp
|
2004-02-08 16:04:50 +00:00
|
|
|
alert.cpp
|
2005-08-08 23:32:38 +00:00
|
|
|
async_gethostbyname.cpp
|
2003-10-22 23:00:57 +00:00
|
|
|
entry.cpp
|
2004-03-26 11:39:17 +00:00
|
|
|
escape_string.cpp
|
2005-01-11 02:13:07 +00:00
|
|
|
file.cpp
|
2003-12-22 07:14:35 +00:00
|
|
|
identify_client.cpp
|
2005-07-06 00:58:23 +00:00
|
|
|
ip_filter.cpp
|
2003-10-22 23:00:57 +00:00
|
|
|
peer_connection.cpp
|
|
|
|
piece_picker.cpp
|
|
|
|
policy.cpp
|
|
|
|
session.cpp
|
2004-02-26 00:27:06 +00:00
|
|
|
socket.cpp
|
2003-10-22 23:00:57 +00:00
|
|
|
stat.cpp
|
|
|
|
storage.cpp
|
|
|
|
torrent.cpp
|
2003-10-29 23:28:09 +00:00
|
|
|
torrent_handle.cpp
|
2003-10-22 23:00:57 +00:00
|
|
|
torrent_info.cpp
|
2004-02-01 10:32:40 +00:00
|
|
|
tracker_manager.cpp
|
|
|
|
http_tracker_connection.cpp
|
|
|
|
udp_tracker_connection.cpp
|
2004-08-01 22:15:44 +00:00
|
|
|
sha1.cpp
|
2004-02-21 11:52:21 +00:00
|
|
|
;
|
2004-02-08 16:04:50 +00:00
|
|
|
|
2004-03-28 17:45:37 +00: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-04-17 13:27:58 +00:00
|
|
|
LIBS = ;
|
2004-02-27 12:35:44 +00:00
|
|
|
|
|
|
|
# some windows specific settings
|
2004-02-08 16:04:50 +00:00
|
|
|
|
2004-04-14 03:32:02 +00:00
|
|
|
if [ os.name ] = NT
|
2004-02-21 11:52:21 +00:00
|
|
|
{
|
2004-04-17 13:27:58 +00:00
|
|
|
lib wsock32 : : <name>wsock32.lib ;
|
|
|
|
LIBS += wsock32 ;
|
2004-02-21 11:52:21 +00:00
|
|
|
}
|
2003-12-21 17:28:27 +00:00
|
|
|
|
2005-07-06 00:58:23 +00:00
|
|
|
variant release_vlog : release : <define>TORRENT_VERBOSE_LOGGING ;
|
|
|
|
variant release_log : release : <define>TORRENT_LOGGING ;
|
|
|
|
variant debug_vlog : debug : <define>TORRENT_VERBOSE_LOGGING ;
|
|
|
|
variant debug_log : debug : <define>TORRENT_LOGGING ;
|
2005-03-20 10:34:07 +00:00
|
|
|
|
|
|
|
|
2003-10-22 23:00:57 +00:00
|
|
|
lib torrent
|
2004-02-04 11:00:29 +00:00
|
|
|
:
|
2004-02-22 22:40:45 +00:00
|
|
|
src/$(SOURCES)
|
2004-03-28 17:45:37 +00:00
|
|
|
zlib/$(ZLIB_SOURCES)
|
2004-04-17 13:27:58 +00:00
|
|
|
$(LIBS)
|
2003-10-22 23:00:57 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
|