-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
37 lines (29 loc) · 837 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
project('decompress-fs', 'c')
add_global_arguments('-Werror', language: 'c')
conf_data = configuration_data()
conf_data.set('version', 'v0.1')
if get_option('buildtype') == 'debug'
conf_data.set('DEBUG', true)
endif
configure_file(input: 'config.h.in',
output: 'config.h',
configuration: conf_data)
inc = [include_directories('.'), include_directories('include')]
sources = []
header_files = []
test_sources = []
subdir('src')
subdir('include')
subdir('tests')
dependencies = [dependency('fuse3'), dependency('libarchive')]
executable('decompressfs',
sources + [main],
include_directories: inc,
dependencies: dependencies)
run_target('format', command: [
'clang-format',
'-i',
'-style=file',
sources,
header_files,
test_sources])