# Boost.Iostreams Library zlib Jamfile # (C) Copyright Jonathan Turkanis 2004 # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) # See http://www.boost.org/libs/iostreams for documentation. # For use in conjunction with the zlib data compression library by # Jean-loup Gailly and Mark Adler. See http://www.zlib.org/ to obtain zlib # if it is not installed on your system, or if you wish to build it with # different compiler or linker options. rule zlib_config { if $(NO_COMPRESSION) { NO_ZLIB = 1 ; } if $(NT) && ! $(ZLIB_SOURCE) && ! $(ZLIB_INCLUDE) { ECHO ****************************************************** ; ECHO Building Boost.Iostreams with zlib and gzip support disabled. ; ECHO To enable zlib and gzip, consult the Boost.Iostreams documentation ; ECHO ****************************************************** ; NO_ZLIB = 1 ; } if ! $(NO_ZLIB) { local SOURCES = adler32 compress crc32 deflate inffast inflate inftrees trees uncompr zutil ; ZLIB_INCLUDE ?= $(ZLIB_SOURCE) ; # define ZLIB_BINARY if ! $(ZLIB_SOURCE) && ! $(ZLIB_BINARY) { if $(NT) && ! [ MATCH (.*gcc.*) : $(TOOLS) ] { ZLIB_BINARY = "zdll" ; } else { ZLIB_BINARY = "z" ; } } # declare boost_zlib boost_zlib if $(ZLIB_SOURCE) { template zlib_common : # sources $(ZLIB_SOURCE)/$(SOURCES).c : # build requirements [ common-names ] # magic for install and auto-link features $(ZLIB_INCLUDE) : # build variants debug release ; lib boost_zlib : # sources