2004-02-04 21:20:53 +01:00
|
|
|
import modules ;
|
|
|
|
|
|
|
|
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-04 12:00:29 +01:00
|
|
|
project torrent
|
2004-02-04 21:20:53 +01:00
|
|
|
: requirements
|
|
|
|
<use>/boost/thread
|
|
|
|
<use>/boost/date_time
|
|
|
|
<use>/boost/filesystem
|
|
|
|
|
|
|
|
<library>/boost/thread
|
|
|
|
<library>/boost/date_time
|
|
|
|
<library>/boost/filesystem
|
|
|
|
|
|
|
|
: usage-requirements
|
|
|
|
<use>/boost/thread
|
|
|
|
<use>/boost/date_time
|
|
|
|
<use>/boost/filesystem
|
|
|
|
|
2004-02-04 12:00:29 +01:00
|
|
|
<include>./include
|
|
|
|
<include>$(BOOST_ROOT)
|
|
|
|
|
2004-02-08 17:04:50 +01:00
|
|
|
# devstudio switches
|
2004-02-04 12:00:29 +01:00
|
|
|
|
|
|
|
<cxxflags>/Zc:wchar_t
|
|
|
|
<cxxflags>/D"WIN32"
|
2004-02-04 21:20:53 +01:00
|
|
|
|
2004-02-08 17:04:50 +01:00
|
|
|
# gcc switches
|
|
|
|
|
|
|
|
# <cxxflags>-Wno-unused-variable
|
|
|
|
|
2004-02-04 12:00:29 +01:00
|
|
|
;
|
|
|
|
|
|
|
|
|
2003-10-23 01:00:57 +02:00
|
|
|
SOURCES =
|
2004-02-08 17:04:50 +01:00
|
|
|
alert.cpp
|
2003-10-23 01:00:57 +02:00
|
|
|
entry.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
|
|
|
|
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-08 17:04:50 +01:00
|
|
|
|
|
|
|
# unix versions
|
|
|
|
|
|
|
|
# socket_bsd.cpp
|
|
|
|
# file.cpp
|
|
|
|
|
|
|
|
# windows versions
|
|
|
|
|
|
|
|
socket_win.cpp
|
|
|
|
file_win.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
|
|
|
:
|
|
|
|
zlib//zlib
|
|
|
|
src/$(SOURCES)
|
|
|
|
: <include>./include
|
2003-10-23 01:00:57 +02:00
|
|
|
<threading>multi
|
|
|
|
<link>static
|
|
|
|
: debug release
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2003-10-23 18:55:52 +02:00
|
|
|
exe client_test
|
|
|
|
: examples/client_test.cpp
|
2004-02-04 12:00:29 +01:00
|
|
|
torrent
|
2004-02-04 21:20:53 +01:00
|
|
|
:
|
2003-10-23 18:55:52 +02:00
|
|
|
: debug release
|
|
|
|
;
|
2003-10-23 01:00:57 +02:00
|
|
|
|