]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | project boost/serialization | |
10 | : source-location ../src | |
11 | : requirements | |
12 | <conditional>@include-spirit | |
13 | ; | |
14 | ||
15 | SPIRIT_ROOT = [ modules.peek : SPIRIT_ROOT ] ; | |
16 | rule include-spirit ( properties * ) | |
17 | { | |
18 | local old-compiler ; | |
19 | if <toolset>borland in $(properties) | |
20 | { | |
21 | if ! <toolset-borland:version>6.1.0 in $(properties) | |
22 | { | |
23 | old-compiler = true ; | |
24 | } | |
25 | ||
26 | } | |
27 | else if <toolset>msvc in $(properties) | |
28 | { | |
29 | if <toolset-msvc:version>6.5 in $(properties) | |
30 | || <toolset-msvc:version>7.0 in $(properties) | |
31 | { | |
32 | old-compiler = true ; | |
33 | } | |
34 | } | |
35 | ||
36 | local result ; | |
37 | if $(old-compiler) | |
38 | { | |
39 | if $(SPIRIT_ROOT) | |
40 | { | |
41 | # note - we can't use <include>$(SPIRIT_ROOT) because | |
42 | # it puts -I$(SPIRIT_ROOT) AFTER the "../../.." in the command line. | |
43 | # so use these instead | |
44 | result = <cxxflags>-I$(SPIRIT_ROOT) ; | |
45 | } | |
46 | else | |
47 | { | |
48 | echo **** spirit 1.6x required to build library with this compiler **** ; | |
49 | result = <build>no ; | |
50 | } | |
51 | } | |
52 | return $(result) ; | |
53 | } | |
54 | ||
55 | SOURCES = | |
56 | basic_archive | |
57 | basic_iarchive | |
58 | basic_iserializer | |
59 | basic_oarchive | |
60 | basic_oserializer | |
61 | basic_pointer_iserializer | |
62 | basic_pointer_oserializer | |
63 | basic_serializer_map | |
64 | basic_text_iprimitive | |
65 | basic_text_oprimitive | |
66 | basic_xml_archive | |
67 | binary_iarchive | |
68 | binary_oarchive | |
69 | extended_type_info | |
70 | extended_type_info_typeid | |
71 | extended_type_info_no_rtti | |
72 | polymorphic_iarchive | |
73 | polymorphic_oarchive | |
74 | stl_port | |
75 | text_iarchive | |
76 | text_oarchive | |
77 | void_cast | |
78 | archive_exception | |
79 | xml_grammar | |
80 | xml_iarchive | |
81 | xml_oarchive | |
82 | xml_archive_exception | |
83 | codecvt_null | |
84 | utf8_codecvt_facet | |
b32b8144 | 85 | ; |
7c673cae FG |
86 | |
87 | WSOURCES = | |
88 | basic_text_wiprimitive | |
89 | basic_text_woprimitive | |
90 | text_wiarchive | |
91 | text_woarchive | |
92 | xml_wgrammar | |
93 | xml_wiarchive | |
94 | xml_woarchive | |
95 | ; | |
96 | ||
97 | lib boost_serialization | |
98 | : $(SOURCES).cpp | |
99 | : | |
100 | <toolset>msvc:<cxxflags>/Gy | |
101 | <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS | |
102 | <toolset>clang:<cxxflags>"-fvisibility=hidden -fvisibility-inlines-hidden" | |
103 | <toolset>gcc:<cxxflags>"-fvisibility=hidden -fvisibility-inlines-hidden" | |
104 | <toolset>darwin:<cxxflags>"-fvisibility=hidden -fvisibility-inlines-hidden" | |
105 | <toolset>gcc:<cxxflags>"-ftemplate-depth-255" | |
106 | <toolset>clang:<cxxflags>"-ftemplate-depth-255" | |
107 | <toolset>darwin:<cxxflags>"-ftemplate-depth-255" | |
108 | <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1 | |
109 | ; | |
110 | ||
111 | lib boost_wserialization | |
112 | : $(WSOURCES).cpp boost_serialization | |
113 | : | |
114 | <toolset>msvc:<cxxflags>/Gy | |
115 | <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS | |
116 | <toolset>clang:<cxxflags>"-fvisibility=hidden -fvisibility-inlines-hidden" | |
117 | <toolset>gcc:<cxxflags>"-fvisibility=hidden -fvisibility-inlines-hidden" | |
118 | <toolset>darwin:<cxxflags>"-fvisibility=hidden -fvisibility-inlines-hidden" | |
119 | <toolset>gcc:<cxxflags>"-ftemplate-depth-255" | |
120 | <toolset>clang:<cxxflags>"-ftemplate-depth-255" | |
121 | <toolset>darwin:<cxxflags>"-ftemplate-depth-255" | |
b32b8144 FG |
122 | # note: both serialization and wserialization are conditioned on the this |
123 | # switch - don't change it to BOOST_WSERIALIZATION_DYN_LINK | |
7c673cae FG |
124 | <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1 |
125 | ; | |
126 | ||
127 | boost-install boost_serialization boost_wserialization ; |