aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/ansi/meson.build
blob: ae1d3ad540bf93f4f316eafb5e25ed47f66a3ce9 (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
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

if disable_ansi_option
	subdir_done()
endif

ansi_sources = files(
	'generic/stdlib-stubs.cpp',
	'generic/assert-stubs.cpp',
	'generic/complex-stubs.c',

	'generic/complex/csqrt.c',
	'generic/complex/csinhf.c',
	'generic/complex/ccoshf.c',
	'generic/complex/cacosh.c',
	'generic/complex/casinf.c',
	'generic/complex/clogf.c',
	'generic/complex/csqrtf.c',
	'generic/complex/cimag.c',
	'generic/complex/catanh.c',
	'generic/complex/carg.c',
	'generic/complex/cproj.c',
	'generic/complex/cephes_subr.c',
	'generic/complex/ccos.c',
	'generic/complex/cexp.c',
	'generic/complex/crealf.c',
	'generic/complex/cabs.c',
	'generic/complex/csinh.c',
	'generic/complex/casinhf.c',
	'generic/complex/cephes_subrf.c',
	'generic/complex/creal.c',
	'generic/complex/casin.c',
	'generic/complex/conjf.c',
	'generic/complex/cpowf.c',
	'generic/complex/cacosf.c',
	'generic/complex/csinf.c',
	'generic/complex/ctanh.c',
	'generic/complex/ctanhf.c',
	'generic/complex/cargf.c',
	'generic/complex/cabsf.c',
	'generic/complex/cpow.c',
	'generic/complex/csin.c',
	'generic/complex/cprojf.c',
	'generic/complex/catan.c',
	'generic/complex/ctanf.c',
	'generic/complex/ctan.c',
	'generic/complex/clog.c',
	'generic/complex/catanf.c',
	'generic/complex/cacos.c',
	'generic/complex/cexpf.c',
	'generic/complex/ccosh.c',
	'generic/complex/cimagf.c',
	'generic/complex/cacoshf.c',
	'generic/complex/conj.c',
	'generic/complex/catanhf.c',
	'generic/complex/ccosf.c',
	'generic/complex/casinh.c',

	'generic/ctype-stubs.cpp',
	'generic/environment.cpp',
	'generic/errno-stubs.cpp',
	'generic/fenv-stubs.cpp',
	'generic/file-io.cpp',
	'generic/inttypes-stubs.cpp',
	'generic/locale-stubs.cpp',
	'generic/signal-stubs.cpp',
	'generic/stdio-stubs.cpp',
	'generic/stdlib-stubs.cpp',
	'generic/string-stubs.cpp',
	'generic/threads.cpp',
	'generic/time-stubs.cpp',
	'generic/uchar.cpp',
	'generic/wchar-stubs.cpp',
	'generic/wctype.cpp',
)

if not no_headers
	install_headers(
		'include/alloca.h',
		'include/assert.h',
		'include/complex.h',
		'include/ctype.h',
		'include/errno.h',
		'include/fenv.h',
		'include/inttypes.h',
		'include/limits.h',
		'include/locale.h',
		'include/math.h',
		'include/setjmp.h',
		'include/signal.h',
		'include/stdc-predef.h',
		'include/stdio.h',
		'include/stdlib.h',
		'include/string.h',
		'include/threads.h',
		'include/time.h',
		'include/uchar.h',
		'include/wchar.h',
		'include/wctype.h',
	)
	install_headers(
		'include/bits/ansi/timespec.h',
		'include/bits/ansi/time_t.h',
		'include/bits/ansi/fenv.h',
		subdir: 'bits/ansi'
	)
endif

if not headers_only
	libc_sublibs += static_library('mlibc-musl-math',
		'musl-generic-math/acos.c',
		'musl-generic-math/acosf.c',
		'musl-generic-math/acosh.c',
		'musl-generic-math/acoshf.c',
		'musl-generic-math/acoshl.c',
		'musl-generic-math/acosl.c',
		'musl-generic-math/asin.c',
		'musl-generic-math/asinf.c',
		'musl-generic-math/asinh.c',
		'musl-generic-math/asinhf.c',
		'musl-generic-math/asinhl.c',
		'musl-generic-math/asinl.c',
		'musl-generic-math/atan2.c',
		'musl-generic-math/atan2f.c',
		'musl-generic-math/atan2l.c',
		'musl-generic-math/atan.c',
		'musl-generic-math/atanf.c',
		'musl-generic-math/atanh.c',
		'musl-generic-math/atanhf.c',
		'musl-generic-math/atanhl.c',
		'musl-generic-math/atanl.c',
		'musl-generic-math/cbrt.c',
		'musl-generic-math/cbrtf.c',
		'musl-generic-math/cbrtl.c',
		'musl-generic-math/ceil.c',
		'musl-generic-math/ceilf.c',
		'musl-generic-math/ceill.c',
		'musl-generic-math/copysign.c',
		'musl-generic-math/copysignf.c',
		'musl-generic-math/copysignl.c',
		'musl-generic-math/__cos.c',
		'musl-generic-math/cos.c',
		'musl-generic-math/__cosdf.c',
		'musl-generic-math/cosf.c',
		'musl-generic-math/cosh.c',
		'musl-generic-math/coshf.c',
		'musl-generic-math/coshl.c',
		'musl-generic-math/__cosl.c',
		'musl-generic-math/cosl.c',
		'musl-generic-math/erf.c',
		'musl-generic-math/erff.c',
		'musl-generic-math/erfl.c',
		'musl-generic-math/exp10.c',
		'musl-generic-math/exp10f.c',
		'musl-generic-math/exp10l.c',
		'musl-generic-math/exp2.c',
		'musl-generic-math/exp2f.c',
		'musl-generic-math/exp2l.c',
		'musl-generic-math/exp.c',
		'musl-generic-math/expf.c',
		'musl-generic-math/expl.c',
		'musl-generic-math/expm1.c',
		'musl-generic-math/expm1f.c',
		'musl-generic-math/expm1l.c',
		'musl-generic-math/__expo2.c',
		'musl-generic-math/__expo2f.c',
		'musl-generic-math/fabs.c',
		'musl-generic-math/fabsf.c',
		'musl-generic-math/fabsl.c',
		'musl-generic-math/fdim.c',
		'musl-generic-math/fdimf.c',
		'musl-generic-math/fdiml.c',
		'musl-generic-math/finite.c',
		'musl-generic-math/finitef.c',
		'musl-generic-math/floor.c',
		'musl-generic-math/floorf.c',
		'musl-generic-math/floorl.c',
		'musl-generic-math/fma.c',
		'musl-generic-math/fmaf.c',
		'musl-generic-math/fmal.c',
		'musl-generic-math/fmax.c',
		'musl-generic-math/fmaxf.c',
		'musl-generic-math/fmaxl.c',
		'musl-generic-math/fmin.c',
		'musl-generic-math/fminf.c',
		'musl-generic-math/fminl.c',
		'musl-generic-math/fmod.c',
		'musl-generic-math/fmodf.c',
		'musl-generic-math/fmodl.c',
		'musl-generic-math/__fpclassify.c',
		'musl-generic-math/__fpclassifyf.c',
		'musl-generic-math/__fpclassifyl.c',
		'musl-generic-math/frexp.c',
		'musl-generic-math/frexpf.c',
		'musl-generic-math/frexpl.c',
		'musl-generic-math/hypot.c',
		'musl-generic-math/hypotf.c',
		'musl-generic-math/hypotl.c',
		'musl-generic-math/ilogb.c',
		'musl-generic-math/ilogbf.c',
		'musl-generic-math/ilogbl.c',
		'musl-generic-math/__invtrigl.c',
		'musl-generic-math/j0.c',
		'musl-generic-math/j0f.c',
		'musl-generic-math/j1.c',
		'musl-generic-math/j1f.c',
		'musl-generic-math/jn.c',
		'musl-generic-math/jnf.c',
		'musl-generic-math/ldexp.c',
		'musl-generic-math/ldexpf.c',
		'musl-generic-math/ldexpl.c',
		'musl-generic-math/lgamma.c',
		'musl-generic-math/lgammaf.c',
		'musl-generic-math/lgammaf_r.c',
		'musl-generic-math/lgammal.c',
		'musl-generic-math/lgamma_r.c',
		'musl-generic-math/llrint.c',
		'musl-generic-math/llrintf.c',
		'musl-generic-math/llrintl.c',
		'musl-generic-math/llround.c',
		'musl-generic-math/llroundf.c',
		'musl-generic-math/llroundl.c',
		'musl-generic-math/log10.c',
		'musl-generic-math/log10f.c',
		'musl-generic-math/log10l.c',
		'musl-generic-math/log1p.c',
		'musl-generic-math/log1pf.c',
		'musl-generic-math/log1pl.c',
		'musl-generic-math/log2.c',
		'musl-generic-math/log2f.c',
		'musl-generic-math/log2l.c',
		'musl-generic-math/logb.c',
		'musl-generic-math/logbf.c',
		'musl-generic-math/logbl.c',
		'musl-generic-math/log.c',
		'musl-generic-math/logf.c',
		'musl-generic-math/logl.c',
		'musl-generic-math/lrint.c',
		'musl-generic-math/lrintf.c',
		'musl-generic-math/lrintl.c',
		'musl-generic-math/lround.c',
		'musl-generic-math/lroundf.c',
		'musl-generic-math/lroundl.c',
		'musl-generic-math/modf.c',
		'musl-generic-math/modff.c',
		'musl-generic-math/modfl.c',
		'musl-generic-math/nan.c',
		'musl-generic-math/nanf.c',
		'musl-generic-math/nanl.c',
		'musl-generic-math/nearbyint.c',
		'musl-generic-math/nearbyintf.c',
		'musl-generic-math/nearbyintl.c',
		'musl-generic-math/nextafter.c',
		'musl-generic-math/nextafterf.c',
		'musl-generic-math/nextafterl.c',
		'musl-generic-math/nexttoward.c',
		'musl-generic-math/nexttowardf.c',
		'musl-generic-math/nexttowardl.c',
		'musl-generic-math/__polevll.c',
		'musl-generic-math/pow.c',
		'musl-generic-math/powf.c',
		'musl-generic-math/powl.c',
		'musl-generic-math/remainder.c',
		'musl-generic-math/remainderf.c',
		'musl-generic-math/remainderl.c',
		'musl-generic-math/__rem_pio2.c',
		'musl-generic-math/__rem_pio2f.c',
		'musl-generic-math/__rem_pio2_large.c',
		'musl-generic-math/__rem_pio2l.c',
		'musl-generic-math/remquo.c',
		'musl-generic-math/remquof.c',
		'musl-generic-math/remquol.c',
		'musl-generic-math/rint.c',
		'musl-generic-math/rintf.c',
		'musl-generic-math/rintl.c',
		'musl-generic-math/round.c',
		'musl-generic-math/roundf.c',
		'musl-generic-math/roundl.c',
		'musl-generic-math/scalb.c',
		'musl-generic-math/scalbf.c',
		'musl-generic-math/scalbln.c',
		'musl-generic-math/scalblnf.c',
		'musl-generic-math/scalblnl.c',
		'musl-generic-math/scalbn.c',
		'musl-generic-math/scalbnf.c',
		'musl-generic-math/scalbnl.c',
		'musl-generic-math/__signbit.c',
		'musl-generic-math/__signbitf.c',
		'musl-generic-math/__signbitl.c',
		'musl-generic-math/signgam.c',
		'musl-generic-math/significand.c',
		'musl-generic-math/significandf.c',
		'musl-generic-math/__sin.c',
		'musl-generic-math/sin.c',
		'musl-generic-math/sincos.c',
		'musl-generic-math/sincosf.c',
		'musl-generic-math/sincosl.c',
		'musl-generic-math/__sindf.c',
		'musl-generic-math/sinf.c',
		'musl-generic-math/sinh.c',
		'musl-generic-math/sinhf.c',
		'musl-generic-math/sinhl.c',
		'musl-generic-math/__sinl.c',
		'musl-generic-math/sinl.c',
		'musl-generic-math/sqrt.c',
		'musl-generic-math/sqrtf.c',
		'musl-generic-math/sqrtl.c',
		'musl-generic-math/__tan.c',
		'musl-generic-math/tan.c',
		'musl-generic-math/__tandf.c',
		'musl-generic-math/tanf.c',
		'musl-generic-math/tanh.c',
		'musl-generic-math/tanhf.c',
		'musl-generic-math/tanhl.c',
		'musl-generic-math/__tanl.c',
		'musl-generic-math/tanl.c',
		'musl-generic-math/tgamma.c',
		'musl-generic-math/tgammaf.c',
		'musl-generic-math/tgammal.c',
		'musl-generic-math/trunc.c',
		'musl-generic-math/truncf.c',
		'musl-generic-math/truncl.c',
		pic: true,
		include_directories: libc_include_dirs,
		dependencies: libc_deps,
		c_args: ['-Wno-unused', '-Wno-implicit', '-Wno-parentheses', '-Wno-sign-compare', '-Wno-attributes', '-Wno-unknown-pragmas', '-Wno-maybe-uninitialized'])
endif