*** empty log message ***

This commit is contained in:
Arvid Norberg 2004-02-21 11:52:21 +00:00
parent 8d9e73cf76
commit f656b34d63
2 changed files with 51 additions and 27 deletions

53
Jamfile
View File

@ -1,6 +1,7 @@
#This Jamfile requires boost-build v2 to build.
import modules ;
import os ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
@ -20,21 +21,19 @@ project torrent
<library>/boost/filesystem
: usage-requirements
# <use>/boost/thread
# <use>/boost/date_time
# <use>/boost/filesystem
<include>./include
<include>$(BOOST_ROOT)
# devstudio switches
<cxxflags>/Zc:wchar_t
<cxxflags>/D"WIN32"
<toolset>msvc-7:<cxxflags>/Zc:wchar_t
<toolset>msvc-7.1:<cxxflags>/Zc:wchar_t
<toolset>msvc:<define>WIN32
# gcc switches
# <cxxflags>-Wno-unused-variable
<toolset>gcc:<cxxflags>-Wno-unused-variable
;
@ -57,25 +56,32 @@ SOURCES =
http_tracker_connection.cpp
udp_tracker_connection.cpp
sha1.c
# unix versions
# socket_bsd.cpp
# file.cpp
# windows versions
socket_win.cpp
file_win.cpp
;
# use different versions of some files for
# windows
if [ modules.peek : NT ]
{
SOURCES += socket_win.cpp ;
}
else
{
SOURCES += socket_bsd.cpp ;
}
if [ modules.peek : NT ] && toolset != msvc-6
{
SOURCES += file_win.cpp ;
}
else
{
SOURCES += file.cpp ;
}
lib torrent
:
# /boost/thread
# /boost/filesystem
# /boost/date_time
zlib//zlib
src/$(SOURCES)
: <include>./include
@ -85,10 +91,3 @@ lib torrent
;
exe client_test
: examples/client_test.cpp
torrent
:
: debug release
;

25
examples/Jamfile Executable file
View File

@ -0,0 +1,25 @@
exe client_test
: client_test.cpp
..//torrent
:
: debug release
;
exe simple_client
: simple_client.cpp
..//torrent
:
: debug release
;
exe dump_torrent
: dump_torrent.cpp
..//torrent
:
: debug release
;