File: meson.build

package info (click to toggle)
muon-meson 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,532 kB
  • sloc: ansic: 67,766; python: 4,391; cpp: 1,983; sh: 709; javascript: 570; asm: 226; xml: 67; objc: 36; makefile: 29; modula3: 8; f90: 7
file content (391 lines) | stat: -rw-r--r-- 15,106 bytes parent folder | download
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
project('meson-tests')

fs = import('fs')

host_is_x86 = host_machine.cpu_family().startswith('x86')

is_git_repo = false

tests = []

foreach t : [
    ['common/1 trivial'],
    ['common/2 cpp'],
    ['common/3 static'],
    ['common/4 shared'],
    ['common/5 linkstatic'],
    ['common/6 linkshared'],
    ['common/7 mixed'],
    ['common/8 install', {'python': true}],
    ['common/9 header install'],
    ['common/10 man install'],
    ['common/11 subdir'],
    ['common/12 data'],
    ['common/13 pch', {'python': true}],
    ['common/14 configure file', {'python': true}],
    ['common/15 if'],
    ['common/16 comparison'],
    ['common/17 array'],
    ['common/18 includedir'],
    ['common/19 header in file list'],
    ['common/20 global arg'],
    ['common/21 target arg'],
    ['common/22 object extraction', {'python': true}],
    ['common/23 endian'],
    ['common/24 library versions'],
    ['common/25 config subdir'],
    ['common/26 find program', {'python': true}],
    ['common/27 multiline string'],
    ['common/28 try compile'],
    ['common/29 compiler id'],
    ['common/30 sizeof'],
    ['common/31 define10'],
    ['common/32 has header'],
    ['common/33 run program', {'python': true}],
    ['common/34 logic ops'],
    ['common/35 string operations'],
    ['common/36 has function'],
    ['common/37 has member'],
    ['common/38 alignment'],
    ['common/39 library chain'],
    ['common/40 options'],
    ['common/41 test args', {'python': true}],
    ['common/42 subproject'],
    ['common/43 subproject options'],
    ['common/44 pkgconfig-gen', {'python': true}],
    ['common/45 custom install dirs'],
    ['common/46 subproject subproject'],
    ['common/47 same file name'],
    ['common/48 file grabber'],
    ['common/49 custom target', {'python': true, 'skip_analyze': true}],
    ['common/50 custom target chain', {'python': true}],
    ['common/51 run target', {'python': true}],
    ['common/52 object generator', {'python': true}],
    ['common/53 install script', {'python': true}],
    ['common/54 custom target source output', {'python': true}],
    ['common/55 exe static shared'],
    ['common/56 array methods'],
    ['common/57 custom header generator', {'python': true}],
    ['common/58 multiple generators', {'python': true}],
    ['common/59 install subdir'],
    ['common/60 foreach'],
    ['common/61 number arithmetic'],
    ['common/62 string arithmetic'],
    ['common/63 array arithmetic'],
    ['common/64 arithmetic bidmas'],
    ['common/65 build always', {'python': true}],
    ['common/66 vcstag', {'python': true}],
    ['common/67 modules'],
    ['common/68 should fail'],
    ['common/69 configure file in custom target', {'python': true}],
    ['common/70 external test program', {'python': true}],
    ['common/71 ctarget dependency', {'python': true}],
    ['common/72 shared subproject'],
    ['common/73 shared subproject 2'],
    ['common/74 file object'],
    ['common/75 custom subproject dir'],
    ['common/76 has type'],
    ['common/77 extract from nested subdir'],
    ['common/78 internal dependency'],
    ['common/79 same basename'],
    ['common/80 declare dep'],
    ['common/81 extract all'],
    ['common/82 add language'],
    ['common/83 identical target name in subproject', {'python': true}],
    ['common/84 plusassign'],
    ['common/85 skip subdir'],
    ['common/86 private include', {'python': true}],
    ['common/87 default options'],
    ['common/88 dep fallback', {'python': true}],
    ['common/89 default library'],
    ['common/90 gen extra', {'python': true}],
    ['common/91 benchmark'],
    ['common/92 test workdir', {'python': true}],
    ['common/93 suites'],
    ['common/94 threads'],
    ['common/95 manygen', {'python': true}],
    ['common/96 stringdef'],
    ['common/97 find program path', {'python': true}],
    ['common/98 subproject subdir'],
    ['common/99 postconf', {'python': true}],
    ['common/100 postconf with args', {'python': true}],
    ['common/101 testframework options'],
    ['common/102 extract same name'],
    ['common/103 has header symbol'],
    ['common/104 has arg'],
    ['common/105 generatorcustom', {'python': true}],
    ['common/106 multiple dir configure file', {'python': true}],
    ['common/107 spaces backslash'],
    ['common/108 ternary'],
    ['common/109 custom target capture', {'python': true}],
    ['common/110 allgenerate', {'python': true}],
    ['common/111 pathjoin'],
    ['common/112 subdir subproject'],
    ['common/113 interpreter copy mutable var on assignment'],
    ['common/114 skip'],
    ['common/115 subproject project arguments'],
    ['common/116 test skip'],
    ['common/117 shared module'],
    ['common/118 llvm ir and assembly'],
    ['common/119 cpp and asm'],
    ['common/120 extract all shared library'],
    ['common/121 object only target', {'python': true}],
    ['common/122 no buildincdir'],
    ['common/123 custom target directory install', {'python': true}],
    ['common/124 dependency file generation'],
    ['common/125 configure file in generator', {'python': true}],
    ['common/126 generated llvm ir', {'python': true}],
    ['common/127 generated assembly', {'python': true}],
    ['common/128 build by default targets in tests', {'python': true}],
    ['common/129 build by default', {'python': true}],
    ['common/130 include order', {'python': true}],
    ['common/131 override options'],
    ['common/132 get define'],
    ['common/133 c cpp and asm'],
    ['common/134 compute int'],
    ['common/135 custom target object output', {'python': true}],
    ['common/136 empty build file'],
    ['common/137 whole archive'],
    ['common/138 C and CPP link'],
    ['common/139 mesonintrospect from scripts', {'python': true}],
    ['common/140 custom target multiple outputs', {'python': true}],
    ['common/141 special characters', {'python': true}],
    ['common/142 nested links'],
    ['common/143 list of file sources', {'python': true}],
    ['common/144 link depends custom target', {'python': true}],
    ['common/145 recursive linking'],
    ['common/146 library at root'],
    ['common/147 simd', {'failing': true}],
    ['common/148 shared module resolving symbol in executable'],
    ['common/149 dotinclude'],
    ['common/150 reserved targets', {'python': true}],
    ['common/151 duplicate source names'],
    ['common/152 index customtarget', {'python': true}],
    ['common/153 wrap file should not failed', {'git_clean': is_git_repo}],
    ['common/154 includedir subproj'],
    ['common/155 subproject dir name collision'],
    ['common/156 config tool variable', {'failing': true}],
    ['common/157 custom target subdir depend files', {'python': true}],
    ['common/158 disabler', {'skip_analyze': true}],
    ['common/159 array option'],
    ['common/160 custom target template substitution', {'python': true}],
    ['common/161 not-found dependency'],
    ['common/162 subdir if_found'],
    ['common/163 default options prefix dependent defaults'],
    ['common/164 dependency factory'],
    ['common/165 get project license'],
    ['common/166 yield'],
    ['common/167 subproject nested subproject dirs'],
    ['common/168 preserve gendir', {'python': true}],
    ['common/169 source in dep', {'python': true}],
    ['common/170 generator link whole', {'python': true}],
    ['common/171 initial c_args'],
    ['common/172 identical target name in subproject flat layout'],
    ['common/173 as-needed'],
    ['common/174 ndebug if-release enabled'],
    ['common/175 ndebug if-release disabled'],
    ['common/176 subproject version'],
    ['common/177 subdir_done'],
    ['common/178 bothlibraries', {'python': true}],
    ['common/179 escape and unicode', {'python': true}],
    ['common/180 has link arg'],
    ['common/181 same target name flat layout'],
    ['common/182 find override', {'python': true}],
    ['common/183 partial dependency'],
    ['common/184 openmp', {'failing': true}],
    ['common/185 same target name'],
    ['common/186 test depends', {'python': true}],
    ['common/187 args flattening'],
    ['common/188 dict'],
    ['common/189 check header'],
    ['common/190 install_mode'],
    ['common/191 subproject array version'],
    ['common/192 feature option'],
    ['common/193 feature option disabled'],
    ['common/194 static threads'],
    ['common/195 generator in subdir', {'python': true}],
    ['common/196 subproject with features'],
    ['common/197 function attributes'],
    ['common/198 broken subproject'],
    ['common/199 argument syntax'],
    ['common/200 install name_prefix name_suffix'],
    ['common/201 kwarg entry'],
    ['common/202 custom target build by default', {'python': true}],
    ['common/203 find_library and headers'],
    ['common/204 line continuation'],
    ['common/205 native file path override'],
    ['common/206 tap tests'],
    ['common/207 warning level 0'],
    ['common/208 link custom', {'python': true}],
    ['common/209 link custom_i single from multiple', {'python': true}],
    ['common/210 link custom_i multiple from multiple', {'python': true}],
    ['common/211 dependency get_variable method'],
    ['common/212 source set configuration_data'],
    ['common/213 source set dictionary'],
    ['common/214 source set custom target', {'python': true}],
    ['common/215 source set realistic example'],
    ['common/216 custom target input extracted objects', {'python': true}],
    ['common/217 test priorities', {'python': true}],
    ['common/218 include_dir dot'],
    ['common/219 include_type dependency'],
    ['common/220 fs module'],
    ['common/221 zlib'],
    [
        'common/222 native prop',
        {'failing': true, 'skip': 'requires machine files'},
    ],
    ['common/223 persubproject options'],
    ['common/224 arithmetic operators'],
    ['common/225 link language'],
    ['common/226 link depends indexed custom target', {'python': true}],
    [
        'common/227 very long command line',
        {'python': true, 'skip': 'wasteful of cpu resources'},
    ],
    ['common/228 custom_target source', {'python': true}],
    ['common/229 disabler array addition'],
    ['common/230 external project', {'failing': true}],
    ['common/231 subdir files'],
    ['common/232 dependency allow_fallback'],
    ['common/233 wrap case'],
    ['common/234 get_file_contents'],
    ['common/235 invalid standard overridden to valid'],
    [
        'common/236 proper args splitting',
        {'kwargs': {'env': {'CFLAGS': '-DFOO -DBAR'}}},
    ],
    ['common/237 fstrings'],
    ['common/238 dependency include_type inconsistency'],
    ['common/239 includedir violation'],
    ['common/240 dependency native host == build'],
    ['common/241 set and get variable'],
    ['common/242 custom target feed', {'python': true}],
    ['common/243 escape++'],
    ['common/244 variable scope'],
    ['common/245 custom target index source', {'python': true}],
    ['common/246 dependency fallbacks'],
    ['common/247 deprecated option', {'python': true}],
    ['common/248 install_emptydir'],
    ['common/249 install_symlink'],
    ['common/250 system include dir'],
    ['common/251 add_project_dependencies'],
    ['common/252 install data structured', {'python': true}],
    ['common/253 subproject dependency variables'],
    ['common/254 long output'],
    ['common/255 module warnings', {'skip': 'not relevant to muon'}],
    ['common/256 subproject extracted objects'],
    ['common/257 generated header dep'],
    ['common/258 subsubproject inplace'],
    ['common/259 preprocess'],
    ['common/260 declare_dependency objects'],
    [
        'common/261 testcase clause',
        {'skip': 'requires testcase language feature'},
    ],
    ['common/262 generator chain', {'python': true}],
    ['common/263 internal dependency includes in checks'],
    ['common/264 required keyword in has functions'],
    ['common/265 default_options dict'],
    ['common/266 format string'],
    ['common/267 default_options in find_program'],
    [
        'common/268 install functions and follow symlinks',
        {
            'skip': 'depends on symlinks being created prior to the test being run',
        },
    ],
    ['common/269 configure file output format', {'python': true}],
    ['common/270 int_to_str_fill'],
    ['common/271 env in generator.process', {'python': true}],
    ['common/272 unity', {'unity': 'requires unity'}],
    [
        'common/273 both libraries',
        {
            'option_matrix': {
                'use_dep': [true, false],
                'default_library': ['both', 'shared', 'static'],
                'default_both_libraries': ['auto', 'shared', 'static'],
            },
        },
    ],
    ['common/274 customtarget exe for test', {'python': true}],
    ['common/275 environment', {'python': true}],
    ['common/276 required keyword in compiles functions'],
    ['common/277 generator custom_tgt subdir'],
    ['common/278 custom target private dir'],
    ['common/279 pkgconfig override'],
    ['common/280 pkgconfig-gen'],

    # python
    ['python/1 basic', {'python': true}],
    ['python/2 extmodule', {'python': true, 'failing': true}],
    ['python/3 cython', {'python': true, 'failing': true}],
    [
        'python/4 custom target depends extmodule',
        {'python': true, 'failing': true},
    ],
    [
        'python/8 different python versions',
        {'python': true, 'failing': true},
    ],
    ['python/5 modules kwarg', {'python': true}],
    ['python/6 failing subproject', {'python': true, 'failing': true}],
    ['python/7 install path', {'python': true}],
    ['python/9 extmodule limited api', {'python': true, 'failing': true}],
    [
        'python/10 extmodule limited api disabled',
        {'python': true, 'failing': true},
    ],

    # native
    ['native/1 trivial'],
    ['native/2 global arg'],
    ['native/3 pipeline', {'python': true}],
    ['native/4 tryrun'],
    ['native/5 install script', {'python': true}],
    ['native/6 add language'],
    ['native/7 selfbuilt custom'],
    ['native/8 external program shebang parsing'],
    ['native/9 override with exe'],

    # nasm
    ['nasm/1 configure file'],
    ['nasm/2 asm language', {'failing': not host_is_x86}],
    ['nasm/3 nasm only'],
    ['nasm/4 through configure'],

    # keyval
    ['keyval/1 basic'],
    ['keyval/2 subdir'],
    ['keyval/3 load_config files'],
    ['keyval/4 load_config builddir'],

    # frameworks
    ['frameworks/6 gettext', {'python': true}],
    ['frameworks/7 gnome', {'python': true}],

    # objc
    ['objc/1 simple', {'objc': true}],
    ['objc/2 nsstring', {'objc': true}],
    ['objc/3 objc args', {'objc': true}],
    ['objc/4 c++ project objc subproject', {'objc': true}],
    ['objc/5 objfw', {'objc': true}],

    # objcpp
    ['objcpp/1 simple', {'objc': true}],
    ['objcpp/2 objc++ args', {'objc': true}],
    ['objcpp/3 objfw', {'objc': true}],
]
    name = t[0]
    props = t.get(1, {})

    if get_option('print-tests')
        message(name)
    endif

    props += {
        'source_root': meson.current_source_dir(),
    }

    tests += [[name, props]]
endforeach