-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
52 lines (44 loc) · 1.11 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
project('modularRuntime', ['c'],
version : '0.0.2',
license : 'MIT',
meson_version : '>=0.58.0',
default_options : [
'b_lto=true',
'default_library=static',
'warning_level=3',
'werror=true',
'debug=false',
'optimization=s',
'fuse:warning_level=0',
'fuse3:warning_level=0',
'liblzma:warning_level=0',
'lz4:warning_level=0',
'zlib:warning_level=0',
'zstd:warning_level=0',
'fuse:werror=false',
'fuse3:werror=false',
'liblzma:werror=false',
'lz4:werror=false',
'zlib:werror=false',
'zstd:werror=false',
],
)
add_project_link_arguments('-static', language: 'c')
add_project_arguments('-DFUSE_USE_VERSION=26', language: 'c')
cc = meson.get_compiler('c')
sf_sp = subproject(
'squashfuse',
default_options: [
'warning_level=0',
'werror=false',
'use_lzo=disabled',
'enable_demo=false',
'fuse_version=2',
],
)
sf_dep = sf_sp.get_variable('libsquashfuse_ll_dep').as_system('system')
dd_prog = find_program('dd')
objcopy_prog = find_program('objcopy')
patcher_prog = find_program('patch_binary.sh')
subdir('lib')
subdir('src')