-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
46 lines (41 loc) · 884 Bytes
/
meson.build
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
project(
'encoding',
'c',
license: '0BSD',
version: '1.0.0',
default_options: [
'c_std=c11',
'warning_level=3',
],
)
srcs = files(
'base32/base32.c',
'base32/base32.h',
'base64/base64.c',
'base64/base64.h',
'hex/hex.c',
'hex/hex.h',
'utf16/utf16.c',
'utf16/utf16.h',
'utf8/utf8.c',
'utf8/utf8.h',
)
# Generate the amalgamations
amalgamate_exe = executable(
'amalgamate_exe',
files('tools/amalgamate.c'),
)
amalgamate_srcs = []
foreach file : ['base32', 'base64', 'hex', 'utf8', 'utf16']
amalgamate_srcs += custom_target(
file + '.c',
input: srcs,
output: file + '.c',
command: [
amalgamate_exe,
meson.source_root() / file,
file,
],
)
endforeach
subdir('tests')