summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/preprocessor/test/Jamfile.v2
blob: fbda6c0f31b6d4ff7450169a8e95792a6b9680f7 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
#~ Copyright Rene Rivera 2008
#~ 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)

import testing ;
import cast ;

project preprocessor_tests : requirements <warnings>on
                                          <toolset>gcc-4.3.0:<warnings>all
                                          <toolset>gcc-4.3.0:<cxxflags>-Wno-variadic-macros
                                          <toolset>gcc-4.4.0:<warnings>all
                                          <toolset>gcc-4.4.0:<cxxflags>-Wno-variadic-macros 
                                          <toolset>gcc-4.5.0:<warnings>all
                                          <toolset>gcc-4.5.0:<cxxflags>-Wno-variadic-macros
                                          <toolset>gcc-4.5.0:<linkflags>"-Wl,--enable-auto-import"
                                          <toolset>gcc-4.5.2:<warnings>all
                                          <toolset>gcc-4.5.2:<cxxflags>-Wno-variadic-macros
                                          <toolset>msvc:<warnings>all
                                          ;

alias preprocessor : : 
        <toolset>gcc
        <toolset-gcc:version>3.4
    ;
    
alias preprocessor : : 
        <toolset>gcc
        <toolset-gcc:version>4.1
    ;
    
alias preprocessor : : 
        <toolset>gcc
        <toolset-gcc:version>4.2
    ;
    
alias preprocessor
   :   
        [ compile arithmetic.cpp ]
        [ compile array.cpp ]
        [ compile comparison.cpp ]
        [ compile control.cpp ]
        [ compile debug.cpp ]
        [ compile facilities.cpp ]
        [ compile iteration.cpp ]
        [ compile list.cpp ]
        [ compile logical.cpp ]
        [ compile punctuation.cpp ]
        [ compile repetition.cpp ]
        [ compile selection.cpp ]
        [ compile seq.cpp ]
        [ compile slot.cpp ]
        [ compile stringize.cpp ]
        [ compile tuple.cpp ]
        [ compile variadic.cpp ]
  ;

alias preprocessor_nvm
   :   
        [ compile arithmetic.cpp : <define>BOOST_PP_VARIADICS=0 : arithmetic_nvm ]
        [ compile array.cpp : <define>BOOST_PP_VARIADICS=0 : array_nvm ]
        [ compile comparison.cpp : <define>BOOST_PP_VARIADICS=0 : comparison_nvm ]
        [ compile control.cpp : <define>BOOST_PP_VARIADICS=0 : control_nvm ]
        [ compile debug.cpp : <define>BOOST_PP_VARIADICS=0 : debug_nvm ]
        [ compile facilities.cpp : <define>BOOST_PP_VARIADICS=0 : facilities_nvm ]
        [ compile iteration.cpp : <define>BOOST_PP_VARIADICS=0 : iteration_nvm ]
        [ compile list.cpp : <define>BOOST_PP_VARIADICS=0 : list_nvm ]
        [ compile logical.cpp : <define>BOOST_PP_VARIADICS=0 : logical_nvm ]
        [ compile repetition.cpp : <define>BOOST_PP_VARIADICS=0 : repetition_nvm ]
        [ compile selection.cpp : <define>BOOST_PP_VARIADICS=0 : selection_nvm ]
        [ compile seq.cpp : <define>BOOST_PP_VARIADICS=0 : seq_nvm ]
        [ compile slot.cpp : <define>BOOST_PP_VARIADICS=0 : slot_nvm ]
        [ compile stringize.cpp : <define>BOOST_PP_VARIADICS=0 : stringize_nvm ]
        [ compile tuple.cpp : <define>BOOST_PP_VARIADICS=0 : tuple_nvm ]
  ;

alias preprocessor_c
   :   
        [ compile arithmetic.c 
          : 
          : arithmetic_c 
        ]
        [ compile array.c 
          : 
          : array_c 
        ]
        [ compile comparison.c 
          : 
          : comparison_c 
        ]
        [ compile control.c 
          : 
          : control_c 
        ]
        [ compile debug.c 
          : 
          : debug_c 
        ]
        [ compile facilities.c 
          : 
          : facilities_c 
        ]
        [ compile list.c 
          : 
          : list_c 
        ]
        [ compile logical.c 
          : 
          : logical_c 
        ]
        [ compile punctuation.c 
          : 
          : punctuation_c 
        ]
        [ compile selection.c 
          : 
          : selection_c 
        ]
        [ compile seq.c 
          : 
          : seq_c 
        ]
        [ compile slot.c 
          : 
          : slot_c 
        ]
        [ compile stringize.c 
          : 
          : stringize_c 
        ]
        [ compile tuple.c 
          : 
          : tuple_c 
        ]
        [ compile variadic.c 
          : 
          : variadic_c 
        ]
  ;

alias preprocessor_c_nvm
   :   
        [ compile arithmetic.c 
          : <define>BOOST_PP_VARIADICS=0            
          : arithmetic_c_nvm 
        ]
        [ compile array.c 
          : <define>BOOST_PP_VARIADICS=0            
          : array_c_nvm 
        ]
        [ compile comparison.c 
          : <define>BOOST_PP_VARIADICS=0
          : comparison_c_nvm 
        ]
        [ compile control.c 
          : <define>BOOST_PP_VARIADICS=0
          : control_c_nvm 
        ]
        [ compile debug.c 
          : <define>BOOST_PP_VARIADICS=0
          : debug_c_nvm 
        ]
        [ compile facilities.c 
          : <define>BOOST_PP_VARIADICS=0
          : facilities_c_nvm 
        ]
        [ compile list.c 
          : <define>BOOST_PP_VARIADICS=0
          : list_c_nvm 
        ]
        [ compile logical.c 
          : <define>BOOST_PP_VARIADICS=0
          : logical_c_nvm 
        ]
        [ compile selection.c 
          : <define>BOOST_PP_VARIADICS=0
          : selection_c_nvm 
        ]
        [ compile seq.c 
          : <define>BOOST_PP_VARIADICS=0
          : seq_c_nvm 
        ]
        [ compile slot.c 
          : <define>BOOST_PP_VARIADICS=0
          : slot_c_nvm 
        ]
        [ compile stringize.c 
          : <define>BOOST_PP_VARIADICS=0
          : stringize_c_nvm 
        ]
        [ compile tuple.c 
          : <define>BOOST_PP_VARIADICS=0
          : tuple_c_nvm 
        ]
  ;
  
alias preprocessor_isempty : : 
        <toolset>gcc
        <toolset-gcc:version>3.4
    ;
    
alias preprocessor_isempty : : 
        <toolset>gcc
        <toolset-gcc:version>4.1
    ;
    
alias preprocessor_isempty : : 
        <toolset>gcc
        <toolset-gcc:version>4.2
    ;
    
alias preprocessor_isempty
  :   
       [ compile isempty.cpp ]
       [ compile checkempty.cpp ]
       [ compile-fail isempty_variadic_standard_failure.cpp : <define>BOOST_PP_VARIADICS=1 ]
       [ compile-fail isempty_variadic_standard_failure2.cpp : <define>BOOST_PP_VARIADICS=1 ]
       [ compile vaopt.cpp ]
 ; 
  
alias preprocessor_isempty_nvm
   :   
       [ compile isempty.cpp : <define>BOOST_PP_VARIADICS=0 : isempty_nvm ]
  ;
  
alias preprocessor_isempty_c
  :   
       [ compile isempty.c 
         : 
         : isempty_c 
       ]
       [ compile-fail isempty_variadic_standard_failure.c 
         : <define>BOOST_PP_VARIADICS=1
         : isempty_variadic_standard_failure_c 
       ]
       [ compile-fail isempty_variadic_standard_failure2.c 
         : <define>BOOST_PP_VARIADICS=1
         : isempty_variadic_standard_failure2_c 
       ]
 ;
  
alias preprocessor_isempty_c_nvm
   :   
        [ compile isempty.c 
          : <define>BOOST_PP_VARIADICS=0
          : isempty_c_nvm 
        ]
  ;

alias preprocessor_config
   :   
        [ run config_info.cpp ]
  ;
  
alias test_clang_cuda
   :   
        [ compile [ cast _ cpp : clang_cuda.cu ]
          : <cxxflags>-nocudalib
            <cxxflags>-nocudainc
            <cxxflags>"-x cuda"
          : clang_cuda_cu
        ]
  ;

explicit test_clang_cuda ;