1 # Boost.Iostreams Library Build Jamfile
3 # (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
4 # (C) Copyright 2004-2007 Jonathan Turkanis
5 # Distributed under the Boost Software License, Version 1.0. (See accompanying
6 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
8 # See http://www.boost.org/libs/iostreams for documentation.
10 project /boost/iostreams : source-location ../src ;
12 # The biggest trick in this Jamfile is to link to zlib and bzip2 when
13 # needed. To configure that, a number of variables are used, which must
14 # be set by user with 'path-constant' either in Boost's root Jamfile, or
17 # For each library with either link to existing binary, or build
18 # a library from the sources.
24 local debug = [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] ;
26 for local v in NO_COMPRESSION
30 $(v) = [ modules.peek : $(v) ] ;
33 if $(NO_COMPRESSION) != 1 && $(NO_ZLIB) != 1
35 using zlib : : <build-name>boost_zlib <tag>@tag : : true ;
37 [ ac.check-library /zlib//zlib : <library>/zlib//zlib
38 <source>zlib.cpp <source>gzip.cpp ] ;
44 ECHO "notice: iostreams: not using zlib compression " ;
48 if $(NO_COMPRESSION) != 1 && $(NO_BZIP2) != 1
50 using bzip2 : : <build-name>boost_bzip2 <tag>@tag : : true ;
52 [ ac.check-library /bzip2//bzip2 : <library>/bzip2//bzip2
59 ECHO "notice: iostreams: not using bzip compression " ;
63 local sources = file_descriptor.cpp mapped_file.cpp ;
67 : <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
68 <define>BOOST_IOSTREAMS_USE_DEPRECATED
72 : <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
75 boost-install boost_iostreams ;