2017-08-11 16:41:58 +08:00
|
|
|
examples = [ 'passthrough', 'passthrough_fh',
|
2024-06-21 04:12:29 +08:00
|
|
|
'hello', 'hello_ll',
|
2023-01-10 18:04:35 +08:00
|
|
|
'printcap', 'ioctl_client', 'poll_client',
|
|
|
|
'ioctl', 'cuse', 'cuse_client' ]
|
2017-08-11 16:41:58 +08:00
|
|
|
|
2018-03-29 03:32:59 +08:00
|
|
|
if not platform.endswith('bsd') and platform != 'dragonfly'
|
2024-06-21 04:12:29 +08:00
|
|
|
examples += [ 'passthrough_ll', 'hello_ll_uds' ]
|
2017-08-25 15:46:50 +08:00
|
|
|
|
2017-08-25 16:48:09 +08:00
|
|
|
# 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' ]
|
2017-08-11 16:41:58 +08:00
|
|
|
endif
|
2017-01-06 01:37:00 +08:00
|
|
|
|
|
|
|
threaded_examples = [ 'notify_inval_inode',
|
2017-08-24 20:23:13 +08:00
|
|
|
'invalidate_path',
|
2017-01-06 01:37:00 +08:00
|
|
|
'notify_store_retrieve',
|
|
|
|
'notify_inval_entry',
|
|
|
|
'poll' ]
|
|
|
|
|
|
|
|
foreach ex : examples
|
|
|
|
executable(ex, ex + '.c',
|
2018-08-21 03:32:10 +08:00
|
|
|
dependencies: [ libfuse_dep ],
|
2017-01-06 01:37:00 +08:00
|
|
|
install: false)
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
|
|
|
|
foreach ex : threaded_examples
|
|
|
|
executable(ex, ex + '.c',
|
2018-08-21 03:32:10 +08:00
|
|
|
dependencies: [ thread_dep, libfuse_dep ],
|
2017-01-06 01:37:00 +08:00
|
|
|
install: false)
|
|
|
|
endforeach
|
|
|
|
|
2020-04-21 03:20:19 +08:00
|
|
|
if not platform.endswith('bsd') and platform != 'dragonfly' and add_languages('cpp', required : false)
|
2019-05-06 01:11:03 +08:00
|
|
|
executable('passthrough_hp', 'passthrough_hp.cc',
|
|
|
|
dependencies: [ thread_dep, libfuse_dep ],
|
|
|
|
install: false)
|
|
|
|
endif
|
|
|
|
|
2017-01-06 01:37:00 +08:00
|
|
|
# TODO: Link passthrough_fh with ulockmgr if available
|