1 | # Boost serialization Library Build Jamfile |
---|
2 | # (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 |
---|
5 | # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
6 | # |
---|
7 | # See http://www.boost.org/libs/serialization for the library home page. |
---|
8 | |
---|
9 | subproject libs/serialization/build ; |
---|
10 | |
---|
11 | import ./serialization ; |
---|
12 | |
---|
13 | { |
---|
14 | |
---|
15 | SOURCES = |
---|
16 | basic_archive |
---|
17 | basic_archive_impl |
---|
18 | basic_iarchive |
---|
19 | basic_oarchive |
---|
20 | basic_iserializer |
---|
21 | basic_oserializer |
---|
22 | basic_pointer_iserializer |
---|
23 | basic_pointer_oserializer |
---|
24 | basic_serializer_map |
---|
25 | basic_text_iprimitive |
---|
26 | basic_text_oprimitive |
---|
27 | basic_xml_archive |
---|
28 | binary_iarchive |
---|
29 | binary_oarchive |
---|
30 | extended_type_info |
---|
31 | extended_type_info_no_rtti |
---|
32 | extended_type_info_typeid |
---|
33 | polymorphic_iarchive |
---|
34 | polymorphic_oarchive |
---|
35 | stl_port |
---|
36 | text_iarchive |
---|
37 | text_oarchive |
---|
38 | void_cast |
---|
39 | xml_grammar |
---|
40 | xml_iarchive |
---|
41 | xml_oarchive |
---|
42 | ; |
---|
43 | |
---|
44 | WSOURCES = |
---|
45 | codecvt_null |
---|
46 | utf8_codecvt_facet |
---|
47 | basic_text_wiprimitive |
---|
48 | basic_text_woprimitive |
---|
49 | binary_wiarchive |
---|
50 | binary_woarchive |
---|
51 | text_wiarchive |
---|
52 | text_woarchive |
---|
53 | xml_wgrammar |
---|
54 | xml_wiarchive |
---|
55 | xml_woarchive |
---|
56 | ; |
---|
57 | |
---|
58 | template boost_serialization_base |
---|
59 | : ## sources ## |
---|
60 | : ## requirements ## |
---|
61 | std::locale-support |
---|
62 | toolset::require-boost-spirit-support |
---|
63 | toolset::suppress-warnings |
---|
64 | toolset::optimizations |
---|
65 | # the common names rule ensures that the library will |
---|
66 | # be named according to the rules used by the install |
---|
67 | # and auto-link features: |
---|
68 | common-variant-tag |
---|
69 | <sysinclude>$(BOOST_ROOT) |
---|
70 | <stlport-iostream>on |
---|
71 | <msvc><*><cxxflags>-Gy |
---|
72 | <vc*><*><cxxflags>-Gy |
---|
73 | <define>BOOST_LIB_DIAGNOSTIC=1 |
---|
74 | : ## default build |
---|
75 | debug release |
---|
76 | ; |
---|
77 | |
---|
78 | lib boost_serialization |
---|
79 | : ## sources ## |
---|
80 | <template>boost_serialization_base |
---|
81 | ../src/$(SOURCES).cpp |
---|
82 | ; |
---|
83 | |
---|
84 | lib boost_wserialization |
---|
85 | : ## sources ## |
---|
86 | <template>boost_serialization_base |
---|
87 | ../src/$(WSOURCES).cpp |
---|
88 | <lib>boost_serialization |
---|
89 | : ## requirements ## |
---|
90 | toolset::require-wide-char-io-support |
---|
91 | ; |
---|
92 | |
---|
93 | dll boost_serialization |
---|
94 | : ## sources ## |
---|
95 | <template>boost_serialization_base |
---|
96 | ../src/$(SOURCES).cpp |
---|
97 | : ## requirements ## |
---|
98 | toolset::require-shared-libraries-support |
---|
99 | # this suppress the --a switch in the como toolset |
---|
100 | # without this one gets compile errors ! with "dllexport" |
---|
101 | # however, it doesn't link anyway so comment it out |
---|
102 | # <como-4_3_3-vc7_1><*><no-warn>$(SOURCES).cpp |
---|
103 | <define>BOOST_SERIALIZATION_DYN_LINK=1 |
---|
104 | <runtime-link>dynamic |
---|
105 | ; |
---|
106 | |
---|
107 | dll boost_wserialization |
---|
108 | : ## sources ## |
---|
109 | <template>boost_serialization_base |
---|
110 | ../src/$(WSOURCES).cpp |
---|
111 | <dll>boost_serialization |
---|
112 | : ## requirements ## |
---|
113 | toolset::require-wide-char-io-support |
---|
114 | toolset::require-shared-libraries-support |
---|
115 | # this suppress the --a switch in the como toolset |
---|
116 | # without this one gets compile errors ! with "dllexport" |
---|
117 | # however, it doesn't link anyway so comment it out |
---|
118 | # <como-4_3_3-vc7_1><*><no-warn>$(WSOURCES).cpp |
---|
119 | <define>BOOST_WSERIALIZATION_DYN_LINK=1 |
---|
120 | <define>BOOST_SERIALIZATION_DYN_LINK=1 |
---|
121 | <runtime-link>dynamic |
---|
122 | ; |
---|
123 | |
---|
124 | install serialization lib |
---|
125 | : |
---|
126 | <lib>boost_serialization |
---|
127 | <lib>boost_wserialization |
---|
128 | <dll>boost_serialization |
---|
129 | <dll>boost_wserialization |
---|
130 | ; |
---|
131 | |
---|
132 | stage stage/lib |
---|
133 | : |
---|
134 | <lib>boost_serialization |
---|
135 | <lib>boost_wserialization |
---|
136 | <dll>boost_serialization |
---|
137 | <dll>boost_wserialization |
---|
138 | : |
---|
139 | # copy to a path rooted at BOOST_ROOT: |
---|
140 | <locate>$(BOOST_ROOT) |
---|
141 | # the common names rule ensures that the library will |
---|
142 | # be named according to the rules used by the install |
---|
143 | # and auto-link features: |
---|
144 | common-variant-tag |
---|
145 | # add this target to the "stage" and "all" psuedo-targets: |
---|
146 | <target>stage |
---|
147 | <target>all |
---|
148 | : |
---|
149 | debug release |
---|
150 | ; |
---|
151 | |
---|
152 | } |
---|