11# Boost serialization Library Build Jamfile
22# (C) Copyright Robert Ramey 2002-2004.
3- # Use, modification, and distribution are subject to the
4- # Boost Software License, Version 1.0. (See accompanying file
3+ # Use, modification, and distribution are subject to the
4+ # Boost Software License, Version 1.0. (See accompanying file
55# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
66#
77# See http://www.boost.org/libs/serialization for the library home page.
88
9- project boost/serialization
9+ require-b2 5.0.1 ;
10+ import-search /boost/config/checks ;
11+ import config : requires ;
12+
13+ constant boost_dependencies_private :
14+ /boost/function//boost_function
15+ ;
16+
17+ project
1018 : source-location ../src
19+ : common-requirements <library>$(boost_dependencies)
1120 : requirements
1221 <conditional>@include-spirit
22+ <library>$(boost_dependencies_private)
23+ : usage-requirements
24+ <define>BOOST_SERIALIZATION_NO_LIB=1
1325;
1426
15- import ../../config/checks/config : requires ;
16-
1727SPIRIT_ROOT = [ modules.peek : SPIRIT_ROOT ] ;
1828rule include-spirit ( properties * )
1929{
2030 local old-compiler ;
2131 if <toolset>borland in $(properties)
2232 {
23- if ! <toolset-borland:version>6.1.0 in $(properties)
24- {
25- old-compiler = true ;
26- }
33+ if ! <toolset-borland:version>6.1.0 in $(properties)
34+ {
35+ old-compiler = true ;
36+ }
2737
2838 }
2939 else if <toolset>msvc in $(properties)
3040 {
3141 if <toolset-msvc:version>6.5 in $(properties)
3242 || <toolset-msvc:version>7.0 in $(properties)
33- {
43+ {
3444 old-compiler = true ;
35- }
45+ }
3646 }
37-
47+
3848 local result ;
3949 if $(old-compiler)
40- {
50+ {
4151 if $(SPIRIT_ROOT)
4252 {
43- # note - we can't use <include>$(SPIRIT_ROOT) because
53+ # note - we can't use <include>$(SPIRIT_ROOT) because
4454 # it puts -I$(SPIRIT_ROOT) AFTER the "../../.." in the command line.
45- # so use these instead
55+ # so use these instead
4656 result = <cxxflags>-I$(SPIRIT_ROOT) ;
4757 }
48- else
58+ else
4959 {
5060 echo **** spirit 1.6x required to build library with this compiler **** ;
5161 result = <build>no ;
5262 }
53- }
63+ }
5464 return $(result) ;
5565}
5666
57- SOURCES =
67+ SOURCES =
5868 archive_exception
5969 basic_archive
6070 basic_iarchive
@@ -90,12 +100,12 @@ SOURCES =
90100 codecvt_null
91101 ;
92102
93- SOURCES_HAS_STD_WSTREAMBUF =
103+ SOURCES_HAS_STD_WSTREAMBUF =
94104 xml_oarchive
95105 utf8_codecvt_facet
96106;
97107
98- WSOURCES =
108+ WSOURCES =
99109 basic_text_wiprimitive
100110 basic_text_woprimitive
101111 text_wiarchive
@@ -110,27 +120,25 @@ WSOURCES =
110120 codecvt_null
111121;
112122
113- lib boost_serialization
123+ lib boost_serialization
114124 : ## sources ##
115125 $(SOURCES).cpp
116126 : ## requirements ##
117- [ check-target-builds ../.. /config/checks//std_wstreambuf : <source>../src/$(SOURCES_HAS_STD_WSTREAMBUF).cpp ]
127+ [ check-target-builds /boost /config/checks//std_wstreambuf : <source>../src/$(SOURCES_HAS_STD_WSTREAMBUF).cpp ]
118128 <toolset>msvc:<cxxflags>/Gy
119129 <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
120130 <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
121131 <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
122132 ;
123133
124- lib boost_wserialization
125- : $(WSOURCES).cpp boost_serialization
126- :
134+ lib boost_wserialization
135+ : $(WSOURCES).cpp boost_serialization
136+ :
127137 [ requires std_wstreambuf ]
128- <toolset>msvc:<cxxflags>/Gy
138+ <toolset>msvc:<cxxflags>/Gy
129139 <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
130140 <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
131141 # note: both serialization and wserialization are conditioned on the this
132142 # switch - don't change it to BOOST_WSERIALIZATION_DYN_LINK
133143 <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
134144 ;
135-
136- boost-install boost_serialization boost_wserialization ;
0 commit comments