-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
meson.build
79 lines (66 loc) · 1.6 KB
/
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
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
project(
'sqsh-tools',
'c',
default_options: [
'c_std=c11',
'optimization=0',
'warning_level=3',
],
version: '1.5.0',
license: 'BSD-2-Clause',
)
threads_dep = dependency('threads', required: get_option('threads'))
curl_dep = dependency(
'libcurl',
version: '>=7.83.0',
required: get_option('curl'),
)
fuse3_dep = dependency(
'fuse3',
required: get_option('fuse'),
)
fuse2_dep = dependency(
'fuse',
version: '>=2.8.0',
required: get_option('fuse-old'),
)
lz4_dep = dependency('liblz4', required: get_option('lz4'))
lzma_dep = dependency('liblzma', required: get_option('lzma'))
zlib_dep = dependency('zlib', required: get_option('zlib'))
zstd_dep = dependency('libzstd', required: get_option('zstd'))
cextras_dep = subproject('cextras').get_variable('cextras_dep')
extractor_count = 0
extractors = [lz4_dep, lzma_dep, zlib_dep, zstd_dep]
extractors_str = ''
foreach dep : extractors
extractors_str += '\n - ' + dep.name()
if dep.found()
extractor_count += 1
endif
endforeach
if extractor_count == 0
warning(
'No compression library has been enabled. Please make sure you enable at least on of them:' +
extractors_str,
)
endif
pkg_mod = import('pkgconfig')
subdir('include')
subdir('common')
subdir('libsqsh')
subdir('libmksqsh')
if get_option('examples')
subdir('examples')
endif
if get_option('tools')
subdir('tools')
endif
if get_option('test') != 'false'
subdir('test')
endif
if get_option('fuzzer')
subdir('fuzzer')
endif
if get_option('doc') != 'false'
subdir('doc')
endif