-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rosen Penev <[email protected]>
- Loading branch information
Showing
4 changed files
with
137 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -459,6 +459,7 @@ | |
"fuse" | ||
], | ||
"versions": [ | ||
"2.9.9-2", | ||
"2.9.9-1" | ||
] | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,63 @@ | ||
libfuse_sources = [ | ||
'fuse.c', | ||
'fuse_i.h', | ||
'fuse_kern_chan.c', | ||
'fuse_loop.c', | ||
'fuse_loop_mt.c', | ||
'fuse_lowlevel.c', | ||
'fuse_misc.h', | ||
'fuse_mt.c', | ||
'fuse_opt.c', | ||
'fuse_session.c', | ||
'fuse_signals.c', | ||
'buffer.c', | ||
'cuse_lowlevel.c', | ||
'helper.c', | ||
'modules/subdir.c', | ||
] | ||
libfuse_sources = files( | ||
'fuse.c', | ||
'fuse_kern_chan.c', | ||
'fuse_loop.c', | ||
'fuse_loop_mt.c', | ||
'fuse_lowlevel.c', | ||
'fuse_misc.h', | ||
'fuse_mt.c', | ||
'fuse_opt.c', | ||
'fuse_session.c', | ||
'fuse_signals.c', | ||
'buffer.c', | ||
'cuse_lowlevel.c', | ||
'helper.c', | ||
'modules/subdir.c', | ||
) | ||
|
||
if host_machine.system().startswith('linux') | ||
libfuse_sources += [ 'mount.c', 'mount_util.c' ] | ||
else | ||
libfuse_sources += [ 'mount_bsd.c' ] | ||
endif | ||
libfuse_sources += host_machine.system() == 'linux' ? files('mount.c', 'mount_util.c') : files('mount_bsd.c') | ||
|
||
deps = [ thread_dep ] | ||
if cfg.get('HAVE_ICONV') | ||
libfuse_sources += [ 'modules/iconv.c' ] | ||
libiconv = cc.find_library('iconv', required: false) | ||
if libiconv.found() | ||
deps += [ libiconv ] | ||
endif | ||
libfuse_sources += files('modules/iconv.c') | ||
deps += iconv_dep | ||
endif | ||
|
||
libdl = cc.find_library('dl', required: false) | ||
if meson.version().version_compare('>= 0.62') | ||
libdl = dependency('dl') | ||
else | ||
libdl = cc.find_library('dl', required: false) | ||
endif | ||
if libdl.found() | ||
deps += [ libdl ] | ||
deps += libdl | ||
endif | ||
|
||
if host_machine.system().startswith('netbsd') | ||
deps += [ cc.find_library('perfuse'), | ||
cc.find_library('puffs') ] | ||
deps += cc.find_library('perfuse') | ||
deps += cc.find_library('puffs') | ||
else | ||
# Required for clock_gettime before glibc 2.17 | ||
deps += cc.find_library('rt') | ||
# Required for clock_gettime before glibc 2.17 | ||
deps += cc.find_library('rt') | ||
endif | ||
|
||
fusermount_path = join_paths(get_option('prefix'), get_option('bindir')) | ||
libfuse = library('fuse', libfuse_sources, version: meson.project_version(), | ||
soversion: '2', include_directories: include_dirs, | ||
dependencies: deps, install: true, | ||
link_depends: 'fuse_versionscript', | ||
c_args: [ '-DFUSE_USE_VERSION=35', | ||
'-DFUSERMOUNT_DIR="@0@"'.format(fusermount_path) ], | ||
link_args: ['-Wl,--version-script,' + meson.current_source_dir() | ||
+ '/fuse_versionscript' ]) | ||
libfuse = library( | ||
'fuse', | ||
libfuse_sources, | ||
version: meson.project_version(), | ||
include_directories: include_dirs, | ||
dependencies: deps, | ||
install: true, | ||
link_depends: 'fuse_versionscript', | ||
c_args: ['-DFUSE_USE_VERSION=26', '-DFUSERMOUNT_DIR="@0@"'.format(fusermount_path)], | ||
link_args: ['-Wl,--version-script,' + meson.current_source_dir() + '/fuse_versionscript'], | ||
) | ||
|
||
pkg = import('pkgconfig') | ||
pkg.generate(libraries: [ libfuse, '-lpthread' ], | ||
libraries_private: '-ldl', | ||
version: meson.project_version(), | ||
name: 'fuse', | ||
description: 'Filesystem in Userspace', | ||
subdirs: 'fuse') | ||
pkg.generate( | ||
libfuse, | ||
description: 'Filesystem in Userspace', | ||
subdirs: 'fuse', | ||
) | ||
|
||
libfuse_dep = declare_dependency(include_directories: include_dirs, | ||
link_with: libfuse, dependencies: deps) | ||
libfuse_dep = declare_dependency(include_directories: include_dirs, link_with: libfuse, dependencies: deps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters