]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #~ Copyright Rene Rivera 2008 |
2 | #~ Distributed under the Boost Software License, Version 1.0. | |
3 | #~ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
4 | ||
5 | import testing ; | |
6 | ||
7 | project preprocessor_tests : requirements <warnings>on | |
8 | <toolset>gcc-4.3.0:<warnings>all | |
9 | <toolset>gcc-4.3.0:<cxxflags>-Wno-variadic-macros | |
10 | <toolset>gcc-4.4.0:<warnings>all | |
11 | <toolset>gcc-4.4.0:<cxxflags>-Wno-variadic-macros | |
12 | <toolset>gcc-4.5.0:<warnings>all | |
13 | <toolset>gcc-4.5.0:<cxxflags>-Wno-variadic-macros | |
14 | <toolset>gcc-4.5.0:<linkflags>"-Wl,--enable-auto-import" | |
15 | <toolset>gcc-4.5.2:<warnings>all | |
16 | <toolset>gcc-4.5.2:<cxxflags>-Wno-variadic-macros | |
17 | <toolset>msvc:<warnings>all | |
18 | ; | |
19 | ||
b32b8144 FG |
20 | alias preprocessor : : |
21 | <toolset>gcc | |
22 | <toolset-gcc:version>3.4 | |
23 | ; | |
24 | ||
25 | alias preprocessor : : | |
26 | <toolset>gcc | |
27 | <toolset-gcc:version>4.1 | |
28 | ; | |
29 | ||
30 | alias preprocessor : : | |
31 | <toolset>gcc | |
32 | <toolset-gcc:version>4.2 | |
33 | ; | |
34 | ||
35 | alias preprocessor | |
7c673cae | 36 | : |
b32b8144 FG |
37 | [ compile arithmetic.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] |
38 | [ compile array.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
39 | [ compile comparison.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
40 | [ compile control.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
41 | [ compile debug.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
42 | [ compile facilities.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
43 | [ compile iteration.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
44 | [ compile list.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
45 | [ compile logical.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
46 | [ compile punctuation.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
47 | [ compile repetition.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
48 | [ compile selection.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
49 | [ compile seq.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
50 | [ compile slot.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
51 | [ compile tuple.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
52 | [ compile variadic.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
7c673cae FG |
53 | ; |
54 | ||
b32b8144 | 55 | alias preprocessor_nvm |
7c673cae FG |
56 | : |
57 | [ compile arithmetic.cpp : <define>BOOST_PP_VARIADICS=0 : arithmetic_nvm ] | |
58 | [ compile array.cpp : <define>BOOST_PP_VARIADICS=0 : array_nvm ] | |
59 | [ compile comparison.cpp : <define>BOOST_PP_VARIADICS=0 : comparison_nvm ] | |
60 | [ compile control.cpp : <define>BOOST_PP_VARIADICS=0 : control_nvm ] | |
61 | [ compile debug.cpp : <define>BOOST_PP_VARIADICS=0 : debug_nvm ] | |
62 | [ compile facilities.cpp : <define>BOOST_PP_VARIADICS=0 : facilities_nvm ] | |
63 | [ compile iteration.cpp : <define>BOOST_PP_VARIADICS=0 : iteration_nvm ] | |
64 | [ compile list.cpp : <define>BOOST_PP_VARIADICS=0 : list_nvm ] | |
65 | [ compile logical.cpp : <define>BOOST_PP_VARIADICS=0 : logical_nvm ] | |
66 | [ compile repetition.cpp : <define>BOOST_PP_VARIADICS=0 : repetition_nvm ] | |
67 | [ compile selection.cpp : <define>BOOST_PP_VARIADICS=0 : selection_nvm ] | |
68 | [ compile seq.cpp : <define>BOOST_PP_VARIADICS=0 : seq_nvm ] | |
69 | [ compile slot.cpp : <define>BOOST_PP_VARIADICS=0 : slot_nvm ] | |
70 | [ compile tuple.cpp : <define>BOOST_PP_VARIADICS=0 : tuple_nvm ] | |
71 | ; | |
72 | ||
b32b8144 | 73 | alias preprocessor_c |
7c673cae FG |
74 | : |
75 | [ compile arithmetic.c | |
b32b8144 | 76 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
77 | : arithmetic_c |
78 | ] | |
79 | [ compile array.c | |
b32b8144 | 80 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
81 | : array_c |
82 | ] | |
83 | [ compile comparison.c | |
b32b8144 | 84 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
85 | : comparison_c |
86 | ] | |
87 | [ compile control.c | |
b32b8144 | 88 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
89 | : control_c |
90 | ] | |
91 | [ compile debug.c | |
b32b8144 | 92 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
93 | : debug_c |
94 | ] | |
95 | [ compile facilities.c | |
b32b8144 | 96 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
97 | : facilities_c |
98 | ] | |
99 | [ compile list.c | |
b32b8144 | 100 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
101 | : list_c |
102 | ] | |
103 | [ compile logical.c | |
b32b8144 | 104 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
105 | : logical_c |
106 | ] | |
107 | [ compile punctuation.c | |
b32b8144 | 108 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
109 | : punctuation_c |
110 | ] | |
111 | [ compile selection.c | |
b32b8144 | 112 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
113 | : selection_c |
114 | ] | |
115 | [ compile seq.c | |
b32b8144 | 116 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
117 | : seq_c |
118 | ] | |
119 | [ compile slot.c | |
b32b8144 | 120 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
121 | : slot_c |
122 | ] | |
123 | [ compile tuple.c | |
b32b8144 | 124 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
125 | : tuple_c |
126 | ] | |
127 | [ compile variadic.c | |
b32b8144 | 128 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
129 | : variadic_c |
130 | ] | |
131 | ; | |
132 | ||
b32b8144 | 133 | alias preprocessor_c_nvm |
7c673cae FG |
134 | : |
135 | [ compile arithmetic.c | |
136 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 137 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
138 | : arithmetic_c_nvm |
139 | ] | |
140 | [ compile array.c | |
141 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 142 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
143 | : array_c_nvm |
144 | ] | |
145 | [ compile comparison.c | |
146 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 147 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
148 | : comparison_c_nvm |
149 | ] | |
150 | [ compile control.c | |
151 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 152 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
153 | : control_c_nvm |
154 | ] | |
155 | [ compile debug.c | |
156 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 157 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
158 | : debug_c_nvm |
159 | ] | |
160 | [ compile facilities.c | |
161 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 162 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
163 | : facilities_c_nvm |
164 | ] | |
165 | [ compile list.c | |
166 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 167 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
168 | : list_c_nvm |
169 | ] | |
170 | [ compile logical.c | |
171 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 172 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
173 | : logical_c_nvm |
174 | ] | |
175 | [ compile selection.c | |
176 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 177 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
178 | : selection_c_nvm |
179 | ] | |
180 | [ compile seq.c | |
181 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 182 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
183 | : seq_c_nvm |
184 | ] | |
185 | [ compile slot.c | |
186 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 187 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
188 | : slot_c_nvm |
189 | ] | |
190 | [ compile tuple.c | |
191 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 192 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
193 | : tuple_c_nvm |
194 | ] | |
195 | ; | |
196 | ||
b32b8144 FG |
197 | alias preprocessor_isempty : : |
198 | <toolset>gcc | |
199 | <toolset-gcc:version>3.4 | |
200 | ; | |
201 | ||
202 | alias preprocessor_isempty : : | |
203 | <toolset>gcc | |
204 | <toolset-gcc:version>4.1 | |
205 | ; | |
206 | ||
207 | alias preprocessor_isempty : : | |
208 | <toolset>gcc | |
209 | <toolset-gcc:version>4.2 | |
210 | ; | |
211 | ||
212 | alias preprocessor_isempty | |
7c673cae | 213 | : |
b32b8144 FG |
214 | [ compile isempty.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] |
215 | [ compile-fail isempty_variadic_standard_failure.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
216 | [ compile-fail isempty_variadic_standard_failure2.cpp : <toolset>gcc:<cxxflags>-std=c++0x <toolset>clang-linux:<cxxflags>-std=c++0x ] | |
7c673cae FG |
217 | ; |
218 | ||
b32b8144 | 219 | alias preprocessor_isempty_nvm |
7c673cae FG |
220 | : |
221 | [ compile isempty.cpp : <define>BOOST_PP_VARIADICS=0 : isempty_nvm ] | |
222 | ; | |
223 | ||
b32b8144 | 224 | alias preprocessor_isempty_c |
7c673cae FG |
225 | : |
226 | [ compile isempty.c | |
b32b8144 | 227 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
228 | : isempty_c |
229 | ] | |
230 | [ compile-fail isempty_variadic_standard_failure.c | |
b32b8144 | 231 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
232 | : isempty_variadic_standard_failure_c |
233 | ] | |
234 | [ compile-fail isempty_variadic_standard_failure2.c | |
b32b8144 | 235 | : <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
236 | : isempty_variadic_standard_failure2_c |
237 | ] | |
238 | ; | |
239 | ||
b32b8144 | 240 | alias preprocessor_isempty_c_nvm |
7c673cae FG |
241 | : |
242 | [ compile isempty.c | |
243 | : <define>BOOST_PP_VARIADICS=0 | |
b32b8144 | 244 | <toolset>gcc:<cflags>-std=c99 <toolset>clang-linux:<cflags>-std=c99 |
7c673cae FG |
245 | : isempty_c_nvm |
246 | ] | |
247 | ; | |
b32b8144 FG |
248 | |
249 | alias preprocessor_config | |
250 | : | |
251 | [ run config_info.cpp ] | |
252 | ; |