#This Jamfile requires boost-build v2 to build. import modules ; import os ; import errors ; BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ; ECHO "BOOST_ROOT =" $(BOOST_ROOT) ; ECHO "OS =" [ os.name ] ; if ! $(BOOST_ROOT) { errors.user-error "BOOST_ROOT must be set to your boost installation path." ; } use-project /boost : $(BOOST_ROOT) ; project torrent : requirements ./include ./zlib $(BOOST_ROOT) release:NDEBUG BOOST_ALL_NO_LIB _FILE_OFFSET_BITS=64 /boost/thread//boost_thread /boost/filesystem//boost_filesystem/static /boost/date_time//boost_date_time/static static multi msvc:/Zc:wchar_t : usage-requirements ./include $(BOOST_ROOT) release:NDEBUG BOOST_ALL_NO_LIB ; SOURCES = allocate_resources.cpp alert.cpp entry.cpp escape_string.cpp file.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 : : wsock32.lib ; LIBS += wsock32 ; } variant release_log : release : TORRENT_VERBOSE_LOGGING ; variant debug_log : debug : TORRENT_VERBOSE_LOGGING ; lib torrent : src/$(SOURCES) zlib/$(ZLIB_SOURCES) $(LIBS) ;