mirror of
https://github.com/openharmony/third_party_libfuse.git
synced 2026-07-21 09:05:22 -04:00
c99f6182b4
Signed-off-by: psycho <wangmingxuan6@h-partners.com>
41 lines
1.3 KiB
Meson
41 lines
1.3 KiB
Meson
examples = [ 'passthrough', 'passthrough_fh',
|
|
'hello', 'hello_ll', 'hello_ll_uds',
|
|
'printcap', 'ioctl_client', 'poll_client',
|
|
'ioctl', 'cuse', 'cuse_client' ]
|
|
|
|
if not platform.endswith('bsd') and platform != 'dragonfly'
|
|
examples += 'passthrough_ll'
|
|
|
|
# According to Conrad Meyer <cem@freebsd.org>, FreeBSD doesn't
|
|
# support mounting files, This is enforced in vfs_domount_first()
|
|
# with the v_type != VDIR check.
|
|
examples += [ 'null' ]
|
|
endif
|
|
|
|
threaded_examples = [ 'notify_inval_inode',
|
|
'invalidate_path',
|
|
'notify_store_retrieve',
|
|
'notify_inval_entry',
|
|
'poll' ]
|
|
|
|
foreach ex : examples
|
|
executable(ex, ex + '.c',
|
|
dependencies: [ libfuse_dep ],
|
|
install: false)
|
|
endforeach
|
|
|
|
|
|
foreach ex : threaded_examples
|
|
executable(ex, ex + '.c',
|
|
dependencies: [ thread_dep, libfuse_dep ],
|
|
install: false)
|
|
endforeach
|
|
|
|
if not platform.endswith('bsd') and platform != 'dragonfly' and add_languages('cpp', required : false)
|
|
executable('passthrough_hp', 'passthrough_hp.cc',
|
|
dependencies: [ thread_dep, libfuse_dep ],
|
|
install: false)
|
|
endif
|
|
|
|
# TODO: Link passthrough_fh with ulockmgr if available
|