forked from premiere/premiere-libtorrent
112 lines
1.8 KiB
Plaintext
Executable File
112 lines
1.8 KiB
Plaintext
Executable File
#This Jamfile requires boost-build v2 to build.
|
|
|
|
import modules ;
|
|
import os ;
|
|
|
|
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
|
|
|
|
ECHO "BOOST_ROOT =" $(BOOST_ROOT) ;
|
|
ECHO "OS =" [ os.name ] ;
|
|
|
|
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 ;
|
|
|
|
REQUIREMENTS =
|
|
<include>./include
|
|
<include>./zlib
|
|
<include>$(BOOST_ROOT)
|
|
<variant>release:<define>NDEBUG
|
|
<define>BOOST_ALL_NO_LIB
|
|
<library>/boost/thread//boost_thread
|
|
<library>/boost/filesystem//boost_filesystem/<link>static
|
|
<library>/boost/date_time//boost_date_time/<link>static
|
|
|
|
# devstudio switches
|
|
|
|
<toolset>msvc-7:<cxxflags>/Zc:wchar_t
|
|
<toolset>msvc-7.1:<cxxflags>/Zc:wchar_t
|
|
|
|
;
|
|
|
|
USAGE_REQUIREMENTS =
|
|
<include>./include
|
|
<include>$(BOOST_ROOT)
|
|
<variant>release:<define>NDEBUG
|
|
<define>BOOST_ALL_NO_LIB
|
|
;
|
|
|
|
SOURCES =
|
|
allocate_resources.cpp
|
|
alert.cpp
|
|
entry.cpp
|
|
escape_string.cpp
|
|
identify_client.cpp
|
|
peer_connection.cpp
|
|
piece_picker.cpp
|
|
policy.cpp
|
|
session.cpp
|
|
socket.cpp
|
|
stat.cpp
|
|
storage.cpp
|
|
torrent.cpp
|
|
torrent_handle.cpp
|
|
torrent_info.cpp
|
|
tracker_manager.cpp
|
|
http_tracker_connection.cpp
|
|
udp_tracker_connection.cpp
|
|
sha1.cpp
|
|
;
|
|
|
|
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
|
|
;
|
|
|
|
LIBS = ;
|
|
|
|
# some windows specific settings
|
|
|
|
if [ os.name ] = NT
|
|
{
|
|
lib wsock32 : : <name>wsock32.lib ;
|
|
LIBS += wsock32 ;
|
|
SOURCES += file_win.cpp ;
|
|
}
|
|
else
|
|
{
|
|
SOURCES += file.cpp ;
|
|
}
|
|
|
|
project torrent
|
|
: requirements
|
|
$(REQUIREMENTS)
|
|
: usage-requirements
|
|
$(USAGE_REQUIREMENTS)
|
|
;
|
|
|
|
|
|
lib torrent
|
|
:
|
|
src/$(SOURCES)
|
|
zlib/$(ZLIB_SOURCES)
|
|
$(LIBS)
|
|
:
|
|
<threading>multi
|
|
<link>static
|
|
# <variant>debug:<define>TORRENT_VERBOSE_LOGGING
|
|
: debug release
|
|
;
|
|
|
|
|