-
Notifications
You must be signed in to change notification settings - Fork 118
/
build.jam
69 lines (61 loc) · 1.87 KB
/
build.jam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright René Ferdinand Rivera Morell 2023-2024
# 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)
require-b2 5.2 ;
import os ;
constant boost_dependencies :
/boost/assert//boost_assert
/boost/config//boost_config
/boost/core//boost_core
/boost/detail//boost_detail
/boost/function//boost_function
/boost/integer//boost_integer
/boost/iterator//boost_iterator
/boost/mpl//boost_mpl
/boost/numeric_conversion//boost_numeric_conversion
/boost/preprocessor//boost_preprocessor
/boost/random//boost_random
/boost/range//boost_range
/boost/regex//boost_regex
/boost/smart_ptr//boost_smart_ptr
/boost/static_assert//boost_static_assert
/boost/throw_exception//boost_throw_exception
/boost/type_traits//boost_type_traits
/boost/utility//boost_utility ;
project /boost/iostreams
: common-requirements
<include>include
;
local compression-libs-to-install ;
for local v in NO_COMPRESSION NO_ZLIB NO_BZIP2
{
$(v) = [ modules.peek : $(v) ] ;
}
if $(NO_COMPRESSION) != 1 && $(NO_ZLIB) != 1
{
constant has_zlib : true ;
if [ os.environ ZLIB_SOURCE ]
{
constant install_zlib : true ;
explicit [ alias boost_zlib : build//boost_zlib ] ;
compression-libs-to-install += boost_zlib ;
}
}
if $(NO_COMPRESSION) != 1 && $(NO_BZIP2) != 1
{
constant has_bzip2 : true ;
if [ os.environ BZIP2_SOURCE ]
{
constant install_bzip2 : true ;
explicit [ alias boost_bzip2 : build//boost_bzip2 ] ;
compression-libs-to-install += boost_bzip2 ;
}
}
explicit
[ alias boost_iostreams : build//boost_iostreams ]
[ alias all : boost_iostreams example test ]
;
call-if : boost-library iostreams
: install boost_iostreams $(compression-libs-to-install)
;