]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/iostreams/build/Jamfile.v2
1f30ac2d7cdfd62305d75f58b83330d69bae834b
[ceph.git] / ceph / src / boost / libs / iostreams / build / Jamfile.v2
1 # Boost.Iostreams Library Build Jamfile
2
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.)
7
8 # See http://www.boost.org/libs/iostreams for documentation.
9
10 project /boost/iostreams : source-location ../src ;
11
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
15 # in user-config.jam.
16
17 # For each library with either link to existing binary, or build
18 # a library from the sources.
19
20 import modules ;
21 import os ;
22 import path ;
23 import ac ;
24 local debug = [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] ;
25
26 for local v in NO_COMPRESSION
27 NO_ZLIB
28 NO_BZIP2
29 NO_LZMA
30 {
31 $(v) = [ modules.peek : $(v) ] ;
32 }
33
34 if $(NO_COMPRESSION) != 1 && $(NO_ZLIB) != 1
35 {
36 using zlib : : <build-name>boost_zlib <tag>@tag : : true ;
37 zlib-requirements =
38 [ ac.check-library /zlib//zlib : <library>/zlib//zlib
39 <source>zlib.cpp <source>gzip.cpp ] ;
40 }
41 else
42 {
43 if $(debug)
44 {
45 ECHO "notice: iostreams: not using zlib compression " ;
46 }
47 }
48
49 if $(NO_COMPRESSION) != 1 && $(NO_BZIP2) != 1
50 {
51 using bzip2 : : <build-name>boost_bzip2 <tag>@tag : : true ;
52 bzip2-requirements =
53 [ ac.check-library /bzip2//bzip2 : <library>/bzip2//bzip2
54 <source>bzip2.cpp ] ;
55 }
56 else
57 {
58 if $(debug)
59 {
60 ECHO "notice: iostreams: not using bzip compression " ;
61 }
62 }
63
64 if $(NO_COMPRESSION) != 1 && $(NO_LZMA) != 1
65 {
66 using lzma : : <build-name>boost_lzma <tag>@tag : : true ;
67 lzma-requirements =
68 [ ac.check-library /lzma//lzma : <library>/lzma//lzma
69 <source>lzma.cpp ] ;
70 }
71 else
72 {
73 if $(debug)
74 {
75 ECHO "notice: iostreams: not using lzma compression " ;
76 }
77 }
78
79 local sources = file_descriptor.cpp mapped_file.cpp ;
80
81 lib boost_iostreams
82 : $(sources)
83 : <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
84 <define>BOOST_IOSTREAMS_USE_DEPRECATED
85 $(zlib-requirements)
86 $(bzip2-requirements)
87 $(lzma-requirements)
88 :
89 : <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
90 ;
91
92 boost-install boost_iostreams ;
93
94
95
96
97
98
99