]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/iostreams/build/Jamfile.v2
7e4bf7307808568dd9d540d9c59ba75bce60f21a
[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 {
30 $(v) = [ modules.peek : $(v) ] ;
31 }
32
33 if $(NO_COMPRESSION) != 1 && $(NO_ZLIB) != 1
34 {
35 using zlib : : <build-name>boost_zlib <tag>@tag : : true ;
36 zlib-requirements =
37 [ ac.check-library /zlib//zlib : <library>/zlib//zlib
38 <source>zlib.cpp <source>gzip.cpp ] ;
39 }
40 else
41 {
42 if $(debug)
43 {
44 ECHO "notice: iostreams: not using zlib compression " ;
45 }
46 }
47
48 if $(NO_COMPRESSION) != 1 && $(NO_BZIP2) != 1
49 {
50 using bzip2 : : <build-name>boost_bzip2 <tag>@tag : : true ;
51 bzip2-requirements =
52 [ ac.check-library /bzip2//bzip2 : <library>/bzip2//bzip2
53 <source>bzip2.cpp ] ;
54 }
55 else
56 {
57 if $(debug)
58 {
59 ECHO "notice: iostreams: not using bzip compression " ;
60 }
61 }
62
63 local sources = file_descriptor.cpp mapped_file.cpp ;
64
65 lib boost_iostreams
66 : $(sources)
67 : <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
68 <define>BOOST_IOSTREAMS_USE_DEPRECATED
69 $(zlib-requirements)
70 $(bzip2-requirements)
71 :
72 : <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
73 ;
74
75 boost-install boost_iostreams ;
76
77
78
79
80
81
82