• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1examples = [ 'passthrough', 'passthrough_fh',
2             'hello', 'hello_ll', 'hello_ll_uds',
3             'printcap', 'ioctl_client', 'poll_client',
4             'ioctl', 'cuse', 'cuse_client' ]
5
6if not platform.endswith('bsd') and platform != 'dragonfly'
7    examples += 'passthrough_ll'
8
9    # According to Conrad Meyer <cem@freebsd.org>, FreeBSD doesn't
10    # support mounting files, This is enforced in vfs_domount_first()
11    # with the v_type != VDIR check.
12    examples += [ 'null' ]
13endif
14
15threaded_examples = [ 'notify_inval_inode',
16                      'invalidate_path',
17                      'notify_store_retrieve',
18                      'notify_inval_entry',
19                      'poll' ]
20
21foreach ex : examples
22    executable(ex, ex + '.c',
23               dependencies: [ libfuse_dep ],
24               install: false)
25endforeach
26
27
28foreach ex : threaded_examples
29    executable(ex, ex + '.c',
30               dependencies: [ thread_dep, libfuse_dep ],
31               install: false)
32endforeach
33
34if not platform.endswith('bsd') and platform != 'dragonfly' and add_languages('cpp', required : false)
35    executable('passthrough_hp', 'passthrough_hp.cc',
36               dependencies: [ thread_dep, libfuse_dep ],
37               install: false)
38endif
39
40# TODO: Link passthrough_fh with ulockmgr if available
41