Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83691 - trunk/libs/iostreams/build
From: steven_at_[hidden]
Date: 2013-04-01 16:45:34


Author: steven_watanabe
Date: 2013-04-01 16:45:33 EDT (Mon, 01 Apr 2013)
New Revision: 83691
URL: http://svn.boost.org/trac/boost/changeset/83691

Log:
Use the new zlib module in Boost.Iostreams.
Text files modified:
   trunk/libs/iostreams/build/Jamfile.v2 | 25 +++++++++++++++----------
   1 files changed, 15 insertions(+), 10 deletions(-)

Modified: trunk/libs/iostreams/build/Jamfile.v2
==============================================================================
--- trunk/libs/iostreams/build/Jamfile.v2 (original)
+++ trunk/libs/iostreams/build/Jamfile.v2 2013-04-01 16:45:33 EDT (Mon, 01 Apr 2013)
@@ -20,6 +20,7 @@
 import modules ;
 import os ;
 import path ;
+import ac ;
 local debug = [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] ;
 
 for local v in NO_COMPRESSION
@@ -29,6 +30,18 @@
     $(v) = [ modules.peek : $(v) ] ;
 }
 
+if $(NO_COMPRESSION) != 1 && $(NO_ZLIB) != 1
+{
+ using zlib : : <build-name>boost_zlib <tag>@tag ;
+}
+else
+{
+ if $(debug)
+ {
+ ECHO "notice: iostreams: not using zlib compression " ;
+ }
+}
+
 
 # Given a name of library, either 'zlib', or 'bzip2', creates the necessary
 # main target and returns it. If compression is disabled, returns nothing.
@@ -133,16 +146,6 @@
 
 
 local sources = file_descriptor.cpp mapped_file.cpp ;
-local z = [ create-library zlib : zll z : adler32 compress
- crc32 deflate gzclose gzio gzlib gzread gzwrite
- infback inffast inflate inftrees trees uncompr zutil :
- <link>shared:<define>ZLIB_DLL ] ;
-
-if $(z)
-{
- sources += boost_zlib zlib.cpp gzip.cpp ;
-}
-
 local bz2 = [ create-library bzip2 : libbz2 bz2 :
     blocksort bzlib compress crctable decompress huffman randtable :
     <link>shared:<def-file>$(BZIP2_SOURCE)/libbz2.def ] ;
@@ -156,6 +159,8 @@
     : $(sources)
     : <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
       <define>BOOST_IOSTREAMS_USE_DEPRECATED
+ [ ac.check-library /zlib//zlib : <library>/zlib//zlib
+ <source>zlib.cpp <source>gzip.cpp ]
     :
     : <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
     ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk