11project (' squashfs-mount' , [' c' ],
2- default_options : [' c_std=c99' , ' default_library=static ' ],
2+ default_options : [' c_std=c99' , ' default_library=shared ' ],
33 version : files (' VERSION' ),
44 meson_version : ' >=0.57' )
55
@@ -13,7 +13,7 @@ version = meson.project_version()
1313exec = executable (' squashfs-mount' ,
1414 sources : [' squashfs-mount.c' , ' utils.c' ],
1515 dependencies : [dep_libmount],
16- c_args : [' -DVERSION ="@0@"' .format(version)],
16+ c_args : [' -DSQFS_MOUNT_VERSION ="@0@"' .format(version)],
1717 # equivalent to: `chown root:root $exec; chmod u+s $exec;` before installation.
1818 install_mode : [' rwsr-xr-x' , ' root' , ' root' ],
1919 install : true )
@@ -22,24 +22,24 @@ if rootless
2222 default_library = get_option (' default_library' )
2323 deps = []
2424 if default_library == ' static'
25- deps += dependency (' squashfuse_ll' , static : true )
25+ sqfs_ll = dependency (' squashfuse_ll' , static : true )
26+ deps += sqfs_ll
2627 deps += dependency (get_option (' fuse_version' ), method : ' pkg-config' , static : true )
27- # TODO: this needs to be passed as arguments
2828 deps += dependency (' liblz4' , static : true )
2929 deps += dependency (' libzstd' , static : true )
3030 deps += dependency (' liblzma' , static : true )
3131 deps += dependency (' lzo2' , static : true )
3232 deps += dependency (' zlib' , static : true )
33-
3433 else
35- deps + = dependency (' squashfuse_ll' , static : false )
34+ sqfs_ll = dependency (' squashfuse_ll' , static : false )
3635 deps += dependency (get_option (' fuse_version' ), method : ' pkg-config' , static : false )
36+ deps += sqfs_ll
3737 endif
3838
3939 executable (' squashfs-mount-rootless' ,
4040 sources : [' squashfs-mount-rootless.c' , ' rootless.c' , ' utils.c' ],
4141 dependencies : deps,
42- c_args : [' -DVERSION ="@0@"' .format(version)],
42+ c_args : [' -DSQFS_MOUNT_VERSION ="@0@"' .format(version)],
4343 install_mode : [],
4444 install : true )
4545endif
0 commit comments