From f656b34d6320df0e111f8da3adbcd034755cf460 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 21 Feb 2004 11:52:21 +0000 Subject: [PATCH] *** empty log message *** --- Jamfile | 53 ++++++++++++++++++++++++------------------------ examples/Jamfile | 25 +++++++++++++++++++++++ 2 files changed, 51 insertions(+), 27 deletions(-) create mode 100755 examples/Jamfile diff --git a/Jamfile b/Jamfile index 6ff70a1c0..bca1e7074 100755 --- a/Jamfile +++ b/Jamfile @@ -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 /boost/filesystem : usage-requirements -# /boost/thread -# /boost/date_time -# /boost/filesystem ./include $(BOOST_ROOT) # devstudio switches - /Zc:wchar_t - /D"WIN32" + msvc-7:/Zc:wchar_t + msvc-7.1:/Zc:wchar_t + msvc:WIN32 # gcc switches -# -Wno-unused-variable + gcc:-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 @@ -85,10 +91,3 @@ lib torrent ; -exe client_test - : examples/client_test.cpp - torrent - : - : debug release - ; - diff --git a/examples/Jamfile b/examples/Jamfile new file mode 100755 index 000000000..9ef4a85f4 --- /dev/null +++ b/examples/Jamfile @@ -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 + ; +